@@ -348,7 +348,7 @@ protected function prepareConfiguration(string $vendorName, string $extensionNam
348348 // Find all used fields in elements and foreign tables
349349 $ columns = [];
350350 $ closure = null ;
351- $ closure = function ($ value ) use ($ aggregatedConfiguration , &$ columns , &$ closure ) {
351+ $ closure = static function ($ value ) use ($ aggregatedConfiguration , &$ columns , &$ closure ) {
352352 foreach (($ value ['columns ' ] ?? []) as $ field ) {
353353 $ columns [] = $ field ;
354354 if (!empty ($ aggregatedConfiguration [$ field ]['tca ' ])) {
@@ -510,17 +510,21 @@ protected function replaceExtensionKey($vendorName, $extensionKey, $string)
510510 */
511511 protected function sortFiles (array $ files )
512512 {
513- uksort ($ files , function ($ a , $ b ) {
513+ uksort ($ files , static function ($ a , $ b ) {
514514 if (substr_count ($ a , '/ ' ) === 0 && substr_count ($ b , '/ ' ) > 0 ) {
515515 return -1 ;
516- } elseif (substr_count ($ a , '/ ' ) > 0 && substr_count ($ b , '/ ' ) === 0 ) {
516+ }
517+
518+ if (substr_count ($ a , '/ ' ) > 0 && substr_count ($ b , '/ ' ) === 0 ) {
517519 return 1 ;
518520 }
519521
520522 if (strpos ($ b , dirname ($ a )) === 0 || strpos ($ a , dirname ($ b )) === 0 ) {
521523 if (substr_count ($ a , '/ ' ) > substr_count ($ b , '/ ' )) {
522524 return 1 ;
523- } elseif (substr_count ($ a , '/ ' ) < substr_count ($ b , '/ ' )) {
525+ }
526+
527+ if (substr_count ($ a , '/ ' ) < substr_count ($ b , '/ ' )) {
524528 return -1 ;
525529 }
526530 }
0 commit comments