Completed
Pull Request — master (#40)
by
unknown
05:34
created
src/ArrayImitator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -299,9 +299,9 @@
 block discarded – undo
299 299
      */
300 300
     public function __call($name, $arguments)
301 301
     {
302
-        $class = __NAMESPACE__  . '\\Extend\\' . ucfirst($name);
302
+        $class = __NAMESPACE__.'\\Extend\\'.ucfirst($name);
303 303
         if (!class_exists($class)) {
304
-            throw new Exception('Class ' . $class  .  ' does not exist');
304
+            throw new Exception('Class '.$class.' does not exist');
305 305
         }
306 306
         $object = new $class($this);
307 307
         return $object;
Please login to merge, or discard this patch.
src/AbstractArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@
 block discarded – undo
413 413
         $found = null;
414 414
 
415 415
         foreach ($this->elements as $key => $value) {
416
-            if($func($value, $key)) {
416
+            if ($func($value, $key)) {
417 417
                 $found = $value;
418 418
                 break;
419 419
             }
Please login to merge, or discard this patch.
src/Extend/Nested.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $array = $this->arrayContainer->toArray();
33 33
         $keys = explode($separator, $keyString);
34 34
         foreach ($keys as $key) {
35
-            if(!is_array($array) or !array_key_exists($key, $array)) {
35
+            if (!is_array($array) or !array_key_exists($key, $array)) {
36 36
                 return false;
37 37
             }
38 38
             $array = $array[$key];
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $array = $this->arrayContainer->toArray();
53 53
         $keys = explode($separator, $keyString);
54 54
         foreach ($keys as $key) {
55
-            if(!is_array($array) or !array_key_exists($key, $array)) {
55
+            if (!is_array($array) or !array_key_exists($key, $array)) {
56 56
                 return $this->arrayContainer->getDefaultValue();
57 57
             }
58 58
             $array = $array[$key];
Please login to merge, or discard this patch.