@@ -70,8 +70,7 @@ |
||
70 | 70 | |
71 | 71 | if(array_key_exists($var, $_ENV)){ |
72 | 72 | $env = $_ENV[$var]; |
73 | - } |
|
74 | - elseif(function_exists('getenv')){ |
|
73 | + } elseif(function_exists('getenv')){ |
|
75 | 74 | $env = getenv($var); |
76 | 75 | } |
77 | 76 | // @codeCoverageIgnoreStart |
@@ -33,8 +33,7 @@ discard block |
||
33 | 33 | try{ |
34 | 34 | $reflectionClass = new ReflectionClass($class); |
35 | 35 | $reflectionType = new ReflectionClass($type); |
36 | - } |
|
37 | - catch(Exception $e){ |
|
36 | + } catch(Exception $e){ |
|
38 | 37 | throw new TraitException('ClassLoader: '.$e->getMessage()); |
39 | 38 | } |
40 | 39 | |
@@ -55,8 +54,7 @@ discard block |
||
55 | 54 | |
56 | 55 | if($reflectionType->isInterface() && !$reflectionClass->implementsInterface($type)){ |
57 | 56 | throw new TraitException($class.' does not implement '.$type); |
58 | - } |
|
59 | - elseif(!$reflectionClass->isSubclassOf($type)) { |
|
57 | + } elseif(!$reflectionClass->isSubclassOf($type)) { |
|
60 | 58 | throw new TraitException($class.' does not inherit '.$type); |
61 | 59 | } |
62 | 60 |
@@ -31,15 +31,13 @@ |
||
31 | 31 | |
32 | 32 | if(($array instanceof ArrayObject) || ($array instanceof ArrayIterator)){ |
33 | 33 | $this->array = $array->getArrayCopy(); |
34 | - } |
|
35 | - elseif($array instanceof Traversable){ |
|
34 | + } elseif($array instanceof Traversable){ |
|
36 | 35 | $this->array = iterator_to_array($array); |
37 | 36 | } |
38 | 37 | // yields unexpected results with DotArray |
39 | 38 | elseif(gettype($array) === 'object'){ |
40 | 39 | $this->array = get_object_vars($array); |
41 | - } |
|
42 | - elseif(is_array($array)){ |
|
40 | + } elseif(is_array($array)){ |
|
43 | 41 | $this->array = $array; |
44 | 42 | } |
45 | 43 |