Commit d149168d authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Cleanup

parent b60a05e5
......@@ -63,7 +63,7 @@ class TcaProvider implements SingletonInterface{
*
* @return array
*/
public static function getAllowedTypesForTcaDisplayCond() {
public static function getAllowedTypesForTcaDisplayCond(): array {
$conditions = array();
foreach (self::$allowedTypesForContentLink as $allowedTypeForContentLink) {
$conditions[] = 'FIELD:CType:=:' . $allowedTypeForContentLink;
......@@ -77,7 +77,7 @@ class TcaProvider implements SingletonInterface{
/**
* @return array
*/
public static function getAllowedTypesForContentLink() {
public static function getAllowedTypesForContentLink(): array {
return self::$allowedTypesForContentLink;
}
......
......@@ -43,7 +43,7 @@ class ContentElementRendering {
* @param string $content
* @return string
*/
public function wrapContentLinkAroundContent($content) {
public function wrapContentLinkAroundContent($content): string {
if (!$this->cObj->data || !$this->cObj->data['tx_sgcontentlink_contentlink']) {
return $content;
}
......@@ -60,11 +60,11 @@ class ContentElementRendering {
*
* @return array
*/
protected function getParameters() {
protected function getParameters(): array {
$overwrites = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_sgcontentlink.']['settings.']['link.']['overwrite.'];
$additions = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_sgcontentlink.']['settings.']['link.']['add.'];
$parameters = str_getcsv($this->cObj->data['tx_sgcontentlink_contentlink'], ' ', '"');
$parameters = str_getcsv($this->cObj->data['tx_sgcontentlink_contentlink'], ' ');
$defaultTarget = $overwrites['defaultTarget'];
if ($defaultTarget) {
$parameters[1] = $defaultTarget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment