Completed
Pull Request — master (#40)
by
unknown
05:34
created
src/Traits/ConvertibleTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $elements = $this->elements;
49 49
         $lastElement = array_pop($elements);
50 50
 
51
-        $string = implode($separator, $elements) . (count($elements) ? $conjunction : '') . $lastElement;
51
+        $string = implode($separator, $elements).(count($elements) ? $conjunction : '').$lastElement;
52 52
         unset($elements, $lastElement);
53 53
 
54 54
         return $string;
Please login to merge, or discard this patch.
src/AbstractArray.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      * @return AbstractArray An array with containing all the entries from this array
147 147
      * which have keys that are present in $array.
148 148
      */
149
-     abstract public function intersectKey(array $array);
149
+        abstract public function intersectKey(array $array);
150 150
 
151 151
     /**
152 152
      * Apply the given function to the every element of the current array,
Please login to merge, or discard this 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/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/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.