@@ -78,7 +78,7 @@ public function renderWebpackScriptTags(ScriptTag $scriptTag): void
7878 }
7979
8080 // We do not want to replace null values in $attributes
81- $ parameters = array_filter ($ parameters , static fn ($ param ) => null !== $ param );
81+ $ parameters = array_filter ($ parameters , static fn ($ param ) => $ param !== null );
8282
8383 foreach ($ files as $ index => $ file ) {
8484 $ this ->addAdditionalAbsRefPrefixDirectories ($ file );
@@ -108,7 +108,7 @@ public function renderWebpackScriptTags(ScriptTag $scriptTag): void
108108
109109 $ attributes = array_values ($ attributes );
110110
111- $ pageRendererMethodName = 'addJS ' . (self :: POSITION_FOOTER === $ scriptTag ->getPosition () ? 'Footer ' : '' );
111+ $ pageRendererMethodName = 'addJS ' . ($ scriptTag ->getPosition () === self :: POSITION_FOOTER ? 'Footer ' : '' );
112112
113113 if ($ scriptTag ->isLibrary ()) {
114114 $ pageRendererMethodName .= 'Library ' ;
@@ -119,7 +119,7 @@ public function renderWebpackScriptTags(ScriptTag $scriptTag): void
119119 $ pageRenderer ->{$ pageRendererMethodName }(...$ attributes );
120120 }
121121
122- if (true === $ scriptTag ->isRegisterFile ()) {
122+ if ($ scriptTag ->isRegisterFile () === true ) {
123123 $ this ->assetRegistry ->registerFile (new File ($ file , FileType::createScript (), [
124124 'integrity ' => $ integrityHashes [$ file ] ?? false ,
125125 ]));
@@ -181,7 +181,7 @@ public function renderWebpackLinkTags(LinkTag $linkTag): void
181181
182182 $ pageRenderer ->addCssFile (...$ attributes );
183183
184- if (true === $ linkTag ->isRegisterFile ()) {
184+ if ($ linkTag ->isRegisterFile () === true ) {
185185 $ this ->assetRegistry ->registerFile (new File ($ file , FileType::createStyle ()));
186186 }
187187 }
@@ -205,7 +205,7 @@ private function addAdditionalAbsRefPrefixDirectories(string $file): void
205205
206206 $ newDir = basename (dirname ($ file )) . '/ ' ;
207207
208- if (false === in_array ($ newDir , $ directories , true )) {
208+ if (in_array ($ newDir , $ directories , true ) === false ) {
209209 $ GLOBALS ['TYPO3_CONF_VARS ' ]['FE ' ]['additionalAbsRefPrefixDirectories ' ] .= ', ' . $ newDir ;
210210 }
211211 }
@@ -217,19 +217,19 @@ private function removeLeadingSlash(string $file, array $parameters): bool
217217 return true ;
218218 }
219219
220- if (null === $ this ->applicationType ) {
220+ if ($ this ->applicationType === null ) {
221221 return false ;
222222 }
223223
224224 if (! $ this ->applicationType ->isFrontend ()) {
225225 return false ;
226226 }
227227
228- if ('' === $ this ->getTypoScriptFrontendController ()->absRefPrefix ) {
228+ if ($ this ->getTypoScriptFrontendController ()->absRefPrefix === '' ) {
229229 return false ;
230230 }
231231
232- if (' / ' === $ this ->getTypoScriptFrontendController ()->absRefPrefix ) {
232+ if ($ this ->getTypoScriptFrontendController ()->absRefPrefix === ' / ' ) {
233233 return true ;
234234 }
235235
@@ -251,15 +251,15 @@ private function removeType(array $parameters): bool
251251 return false ;
252252 }
253253
254- if (null === $ this ->applicationType ) {
254+ if ($ this ->applicationType === null ) {
255255 return false ;
256256 }
257257
258258 if (! $ this ->applicationType ->isFrontend ()) {
259259 return false ;
260260 }
261261
262- if (! isset ($ this ->getTypoScriptFrontendController ()->config ['config ' ]['doctype ' ]) || ' html5 ' !== $ this ->getTypoScriptFrontendController ()->config ['config ' ]['doctype ' ]) {
262+ if (! isset ($ this ->getTypoScriptFrontendController ()->config ['config ' ]['doctype ' ]) || $ this ->getTypoScriptFrontendController ()->config ['config ' ]['doctype ' ] !== ' html5 ' ) {
263263 return false ;
264264 }
265265
0 commit comments