Browse Source

Merge pull request #17833 from cakephp/fix-phpcs

Fix phpcs spacing issue
Mark Story 1 year ago
parent
commit
17ada7f963
1 changed files with 10 additions and 8 deletions
  1. 10 8
      src/ORM/Table.php

+ 10 - 8
src/ORM/Table.php

@@ -1407,12 +1407,11 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
             ['keyField', 'valueField', 'groupField']
         );
 
-        return $query->formatResults(fn (CollectionInterface $results) =>
-            $results->combine(
-                $options['keyField'],
-                $options['valueField'],
-                $options['groupField']
-            ));
+        return $query->formatResults(fn (CollectionInterface $results) => $results->combine(
+            $options['keyField'],
+            $options['valueField'],
+            $options['groupField']
+        ));
     }
 
     /**
@@ -1447,8 +1446,11 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
 
         $options = $this->_setFieldMatchers(compact('keyField', 'parentField'), ['keyField', 'parentField']);
 
-        return $query->formatResults(fn (CollectionInterface $results) =>
-            $results->nest($options['keyField'], $options['parentField'], $nestingKey));
+        return $query->formatResults(fn (CollectionInterface $results) => $results->nest(
+            $options['keyField'],
+            $options['parentField'],
+            $nestingKey
+        ));
     }
 
     /**