Completed
Push — master ( 4b665c...7bb9db )
by Guillermo A.
17s
created
src/Common/AbstractAggregate.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
         return $default;
45 45
     }
46 46
 
47
-     /**
48
-     * {@inheritDoc}
49
-     */
47
+        /**
48
+         * {@inheritDoc}
49
+         */
50 50
     final public function set($key, $value)
51 51
     {
52 52
         $this->offsetSet($key, $value);
Please login to merge, or discard this patch.
src/Common/Collection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function last()
35 35
     {
36 36
         $count = count($this->items);
37
-        return $this->items[$count-1];
37
+        return $this->items[$count - 1];
38 38
     }
39 39
 
40 40
     /**
@@ -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, function ($item1, $item2) use ($fieldName) {
55
+        usort($results, 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(function ($value) {
119
+        return array_map(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.