@@ -48,7 +48,7 @@ |
||
| 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; |
@@ -146,7 +146,7 @@ |
||
| 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, |
@@ -413,7 +413,7 @@ |
||
| 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 | } |
@@ -299,9 +299,9 @@ |
||
| 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; |
@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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]; |