Passed
Branch master (2d3736)
by Max
04:05
created
Category
src/utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
  */
11 11
 function getArticle(string $word) :string
12 12
 {
13
-    return !in_array(strtolower($word[0]), ['a','e','i','o','u']) ? 'a' : 'an';
13
+    return !in_array(strtolower($word[0]), ['a', 'e', 'i', 'o', 'u']) ? 'a' : 'an';
14 14
 }
Please login to merge, or discard this patch.
src/Collections/GenericList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      * 
142 142
      * @return void
143 143
      */
144
-    public function forEach(callable $callback): void
144
+    public function forEach (callable $callback): void
145 145
     {
146 146
         $data = $this->toArray();
147 147
 
Please login to merge, or discard this patch.
src/Collections/ArrayList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
      * 
114 114
      * @return void
115 115
      */
116
-    public function forEach(callable $callback): void
116
+    public function forEach (callable $callback): void
117 117
     {
118 118
         $data = $this->toArray();
119 119
 
Please login to merge, or discard this patch.
src/Collections/Dictionary.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 throw new InvalidArgumentException(
83 83
                     sprintf(
84 84
                         'The %s type specified for this dictionary is %s, you cannot pass %s %s',
85
-                        $key,$toEval, getArticle($type), $type
85
+                        $key, $toEval, getArticle($type), $type
86 86
                     )
87 87
                 );
88 88
             }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * 
155 155
      * @return void
156 156
      */
157
-    public function forEach(callable $callback): void
157
+    public function forEach (callable $callback): void
158 158
     {
159 159
         $data = $this->toArray();
160 160
 
@@ -173,8 +173,7 @@  discard block
 block discarded – undo
173 173
     public function get($key)
174 174
     {
175 175
         return $this->dataHolder->offsetExists($key) ?
176
-               $this->dataHolder->offsetGet($key)->getValue() :
177
-               null;
176
+               $this->dataHolder->offsetGet($key)->getValue() : null;
178 177
     }
179 178
 
180 179
     /**
Please login to merge, or discard this patch.
src/Interfaces/IterableInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 interface IterableInterface
8 8
 {
9
-    public function forEach(callable $callback): void;
9
+    public function forEach (callable $callback): void;
10 10
 }
Please login to merge, or discard this patch.