Passed
Push — master ( 9a7e5f...deeefd )
by Guillermo A.
07:52
created
src/Common/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function sortBy(string $fieldName, bool $reverse = false): CollectionInterface
53 53
     {
54 54
         $results = $this->items;
55
-        usort($results, static function ($item1, $item2) use ($fieldName) {
55
+        usort($results, static function($item1, $item2) use ($fieldName) {
56 56
             return $item1[$fieldName] <=> $item2[$fieldName];
57 57
         });
58 58
         if ($reverse) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function toArray(): array
118 118
     {
119
-        return array_map(static function ($value) {
119
+        return array_map(static function($value) {
120 120
             return $value instanceof ArrayableInterface ? $value->toArray() : $value;
121 121
         }, $this->items);
122 122
     }
Please login to merge, or discard this patch.