@@ -28,5 +28,5 @@ |
||
| 28 | 28 | * @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $parentObject Parent content object |
| 29 | 29 | * @return string cObject output |
| 30 | 30 | */ |
| 31 | - public function getSingleContentObject($contentObjectName, array $configuration, $TypoScriptKey, ContentObjectRenderer &$parentObject); |
|
| 31 | + public function getSingleContentObject($contentObjectName, array $configuration, $TypoScriptKey, ContentObjectRenderer & $parentObject); |
|
| 32 | 32 | } |
@@ -29,5 +29,5 @@ |
||
| 29 | 29 | * @internal param array $configuration Array with the Source Configuration |
| 30 | 30 | * @return string HTML Content for oneSourceCollection |
| 31 | 31 | */ |
| 32 | - public function getOneSourceCollection(array $sourceRenderConfiguration, array $sourceConfiguration, $oneSourceCollection, ContentObjectRenderer &$parentObject); |
|
| 32 | + public function getOneSourceCollection(array $sourceRenderConfiguration, array $sourceConfiguration, $oneSourceCollection, ContentObjectRenderer & $parentObject); |
|
| 33 | 33 | } |
@@ -25,5 +25,5 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $parentObject Parent content object |
| 27 | 27 | */ |
| 28 | - public function postProcessContentObjectInitialization(ContentObjectRenderer &$parentObject); |
|
| 28 | + public function postProcessContentObjectInitialization(ContentObjectRenderer & $parentObject); |
|
| 29 | 29 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @param ContentObjectRenderer $parentObject Parent content object |
| 28 | 28 | * @return string Further processed $content |
| 29 | 29 | */ |
| 30 | - public function stdWrapPreProcess($content, array $configuration, ContentObjectRenderer &$parentObject); |
|
| 30 | + public function stdWrapPreProcess($content, array $configuration, ContentObjectRenderer & $parentObject); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Hook for modifying $content after core's stdWrap has processed setContentToCurrent, setCurrent, lang, data, field, current, cObject, numRows, filelist and/or preUserFunc |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param ContentObjectRenderer $parentObject Parent content object |
| 38 | 38 | * @return string Further processed $content |
| 39 | 39 | */ |
| 40 | - public function stdWrapOverride($content, array $configuration, ContentObjectRenderer &$parentObject); |
|
| 40 | + public function stdWrapOverride($content, array $configuration, ContentObjectRenderer & $parentObject); |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Hook for modifying $content after core's stdWrap has processed override, preIfEmptyListNum, ifEmpty, ifBlank, listNum, trim and/or more (nested) stdWraps |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param ContentObjectRenderer $parentObject Parent content object |
| 48 | 48 | * @return string Further processed $content |
| 49 | 49 | */ |
| 50 | - public function stdWrapProcess($content, array $configuration, ContentObjectRenderer &$parentObject); |
|
| 50 | + public function stdWrapProcess($content, array $configuration, ContentObjectRenderer & $parentObject); |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Hook for modifying $content after core's stdWrap has processed anything but debug |
@@ -57,5 +57,5 @@ discard block |
||
| 57 | 57 | * @param ContentObjectRenderer $parentObject Parent content object |
| 58 | 58 | * @return string Further processed $content |
| 59 | 59 | */ |
| 60 | - public function stdWrapPostProcess($content, array $configuration, ContentObjectRenderer &$parentObject); |
|
| 60 | + public function stdWrapPostProcess($content, array $configuration, ContentObjectRenderer & $parentObject); |
|
| 61 | 61 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | @usort( |
| 29 | 29 | $parameters['items'], |
| 30 | - function ($item1, $item2) { |
|
| 30 | + function($item1, $item2) { |
|
| 31 | 31 | return strcasecmp($this->getLanguageService()->sL($item1[0]), $this->getLanguageService()->sL($item2[0])); |
| 32 | 32 | } |
| 33 | 33 | ); |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | if ($sortingProperty !== '' && count($this->files) > 1) { |
| 211 | 211 | @usort( |
| 212 | 212 | $this->files, |
| 213 | - function ( |
|
| 213 | + function( |
|
| 214 | 214 | FileInterface $a, |
| 215 | 215 | FileInterface $b |
| 216 | 216 | ) use ($sortingProperty) { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | foreach ($reverseSortedParameters as $key => &$value) { |
| 52 | 52 | $value = isset($typoLinkParts[$key]) ? $typoLinkParts[$key] : ''; |
| 53 | 53 | // escape special character \ and " |
| 54 | - $value = str_replace([ '\\', '"' ], [ '\\\\', '\\"' ], $value); |
|
| 54 | + $value = str_replace(['\\', '"'], ['\\\\', '\\"'], $value); |
|
| 55 | 55 | // enclose with quotes if a string contains the delimiter |
| 56 | 56 | if (strpos($value, static::$partDelimiter) !== false) { |
| 57 | 57 | $value = '"' . $value . '"'; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | { |
| 79 | 79 | $typoLink = trim($typoLink); |
| 80 | 80 | if ($typoLink !== '') { |
| 81 | - $parts = str_replace([ '\\\\', '\\"' ], [ '\\', '"' ], str_getcsv($typoLink, static::$partDelimiter)); |
|
| 81 | + $parts = str_replace(['\\\\', '\\"'], ['\\', '"'], str_getcsv($typoLink, static::$partDelimiter)); |
|
| 82 | 82 | } else { |
| 83 | 83 | $parts = ''; |
| 84 | 84 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * @param string $title Title of the extension |
| 62 | 62 | * @param string $icon Icon representing the extension |
| 63 | 63 | */ |
| 64 | - public function __construct($key = '', $title= '', $icon = '') |
|
| 64 | + public function __construct($key = '', $title = '', $icon = '') |
|
| 65 | 65 | { |
| 66 | 66 | $this->setKey($key); |
| 67 | 67 | $this->setTitle($title); |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | $this->registryService->get($locale) |
| 116 | 116 | ); |
| 117 | 117 | } |
| 118 | - usort($this->languages, function ($a, $b) { |
|
| 118 | + usort($this->languages, function($a, $b) { |
|
| 119 | 119 | /** @var $a \TYPO3\CMS\Lang\Domain\Model\Language */ |
| 120 | 120 | /** @var $b \TYPO3\CMS\Lang\Domain\Model\Language */ |
| 121 | 121 | if ($a->getLabel() == $b->getLabel()) { |