@@ -55,10 +55,6 @@ class ContentRenderingAggregate extends AbstractOverridesAggregate implements Pl
5555 */
5656 protected $ partialPath = 'Partials/ ' ;
5757
58- /**
59- * @param array $maskConfiguration
60- * @param HtmlCodeGenerator $htmlCodeGenerator
61- */
6258 public function __construct (array $ maskConfiguration , HtmlCodeGenerator $ htmlCodeGenerator = null )
6359 {
6460 $ this ->htmlCodeGenerator = (null !== $ htmlCodeGenerator ) ? $ htmlCodeGenerator : GeneralUtility::makeInstance (HtmlCodeGenerator::class);
@@ -69,7 +65,7 @@ public function __construct(array $maskConfiguration, HtmlCodeGenerator $htmlCod
6965 /**
7066 * Adds TypoScript and Fluid information
7167 */
72- protected function process ()
68+ protected function process (): void
7369 {
7470 if (empty ($ this ->maskConfiguration [$ this ->table ]['elements ' ])) {
7571 return ;
@@ -113,10 +109,7 @@ protected function process()
113109 }
114110 }
115111
116- /**
117- * @param array $element
118- */
119- protected function addTypoScript (array $ element )
112+ protected function addTypoScript (array $ element ): void
120113 {
121114 $ resourcesPath = 'EXT:mask/ ' . $ this ->resourcePath ;
122115 $ layoutsPath = $ resourcesPath . $ this ->layoutPath ;
@@ -157,12 +150,7 @@ protected function addTypoScript(array $element)
157150 );
158151 }
159152
160- /**
161- * @param string $table
162- * @param array $fields
163- * @return string
164- */
165- protected function addDataProcessing ($ table , array $ fields )
153+ protected function addDataProcessing (string $ table , array $ fields ): string
166154 {
167155 $ dataProcessing = '' ;
168156 $ index = 10 ;
@@ -206,13 +194,7 @@ protected function addDataProcessing($table, array $fields)
206194 return $ dataProcessing ;
207195 }
208196
209- /**
210- * @param string $table
211- * @param string $columnName
212- * @param int $index
213- * @return string
214- */
215- protected function addFileProcessorForField ($ table , $ columnName , $ index )
197+ protected function addFileProcessorForField (string $ table , string $ columnName , int $ index ): string
216198 {
217199 return <<<EOS
218200 dataProcessing. {$ index } = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
@@ -228,13 +210,7 @@ protected function addFileProcessorForField($table, $columnName, $index)
228210EOS ;
229211 }
230212
231- /**
232- * @param string $table
233- * @param string $columnName
234- * @param int $index
235- * @return string
236- */
237- protected function addDatabaseQueryProcessorForField ($ table , $ columnName , $ index )
213+ protected function addDatabaseQueryProcessorForField (string $ table , string $ columnName , int $ index ): string
238214 {
239215 $ where = $ GLOBALS ['TCA ' ][$ table ]['columns ' ][$ columnName ]['config ' ]['foreign_field ' ] . '=###uid### AND deleted=0 AND hidden=0 ' ;
240216 $ markerArray = [
@@ -307,10 +283,7 @@ static function ($key, $value) {
307283EOS ;
308284 }
309285
310- /**
311- * @param array $element
312- */
313- protected function addFluidTemplate (array $ element )
286+ protected function addFluidTemplate (array $ element ): void
314287 {
315288 $ key = $ element ['key ' ];
316289 $ templateSubFolder = 'tt_content ' === $ this ->table ? 'Content ' : GeneralUtility::underscoredToUpperCamelCase ($ this ->table );
0 commit comments