@@ -229,7 +229,7 @@ protected function _getRelatedModels(array $associationTypes = []): array
229229 foreach ($ associationTypes as $ assocType ) {
230230 $ associations = array_merge (
231231 $ associations ,
232- $ this ->_model ()->associations ()->getByType ($ assocType )
232+ $ this ->_model ()->associations ()->getByType ($ assocType ),
233233 );
234234 }
235235 }
@@ -273,7 +273,7 @@ protected function _getPageVariables(): array
273273 $ data = [
274274 'modelClass ' => $ modelClass ,
275275 'singularHumanName ' => Inflector::humanize (
276- Inflector::underscore (Inflector::singularize ($ modelClass ))
276+ Inflector::underscore (Inflector::singularize ($ modelClass )),
277277 ),
278278 'pluralHumanName ' => Inflector::humanize (Inflector::underscore ($ controller ->getName ())),
279279 'singularVar ' => Inflector::singularize ($ controller ->getName ()),
@@ -310,7 +310,7 @@ protected function _scaffoldFields(array $associations = []): array
310310 $ action = $ this ->_action ();
311311 $ scaffoldFields = Hash::normalize (
312312 (array )$ action ->getConfig ('scaffold.fields ' ),
313- default: []
313+ default: [],
314314 );
315315
316316 if (empty ($ scaffoldFields ) || $ action ->getConfig ('scaffold.autoFields ' )) {
@@ -342,7 +342,7 @@ protected function _scaffoldFields(array $associations = []): array
342342
343343 $ fieldSettings = Hash::normalize (
344344 (array )$ action ->getConfig ('scaffold.field_settings ' ),
345- default: []
345+ default: [],
346346 );
347347 $ fieldSettings = array_intersect_key ($ fieldSettings , $ scaffoldFields );
348348 $ scaffoldFields = Hash::merge ($ scaffoldFields , $ fieldSettings );
@@ -467,7 +467,7 @@ protected function _getControllerActionConfiguration(string $actionName, array $
467467 'method ' => $ method ,
468468 'options ' => array_diff_key (
469469 $ config ,
470- array_flip (['method ' , 'scope ' , 'link_title ' , 'url ' , 'scaffold ' , 'callback ' ])
470+ array_flip (['method ' , 'scope ' , 'link_title ' , 'url ' , 'scaffold ' , 'callback ' ]),
471471 ),
472472 ];
473473 if (!empty ($ config ['callback ' ])) {
@@ -493,7 +493,7 @@ protected function _getAllowedActions(): array
493493
494494 $ allActions = array_merge (
495495 Hash::normalize ($ actions , default: []),
496- Hash::normalize ($ extraActions , default: [])
496+ Hash::normalize ($ extraActions , default: []),
497497 );
498498
499499 $ blacklist = (array )$ this ->_action ()->getConfig ('scaffold.actions_blacklist ' );
@@ -547,13 +547,13 @@ protected function _associations(array $whitelist = []): array
547547 $ associationConfiguration [$ type ][$ assocKey ]['plugin ' ] = pluginSplit ($ association ->getClassName ())[0 ];
548548 $ associationConfiguration [$ type ][$ assocKey ]['controller ' ] = $ assocKey ;
549549 $ associationConfiguration [$ type ][$ assocKey ]['entity ' ] = Inflector::singularize (
550- Inflector::underscore ($ assocKey )
550+ Inflector::underscore ($ assocKey ),
551551 );
552552 $ associationConfiguration [$ type ][$ assocKey ]['entities ' ] = Inflector::underscore ($ assocKey );
553553
554554 $ associationConfiguration [$ type ][$ assocKey ] = array_merge (
555555 $ associationConfiguration [$ type ][$ assocKey ],
556- $ this ->_action ()->getConfig ('association. ' . $ assocKey ) ?: []
556+ $ this ->_action ()->getConfig ('association. ' . $ assocKey ) ?: [],
557557 );
558558 }
559559
0 commit comments