@@ -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 |
@@ -46,8 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | if($this->__isset($property)){ |
48 | 48 | return $this->{$property}; |
49 | - } |
|
50 | - elseif($this->env instanceof DotEnv){ |
|
49 | + } elseif($this->env instanceof DotEnv){ |
|
51 | 50 | return $this->env->get($property); |
52 | 51 | } |
53 | 52 | |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | // avoid overwriting private properties |
66 | 65 | if(property_exists($this, $property) && !$this->__isPrivate($property)){ |
67 | 66 | $this->{$property} = $value; |
68 | - } |
|
69 | - elseif($this->env instanceof DotEnv){ |
|
67 | + } elseif($this->env instanceof DotEnv){ |
|
70 | 68 | $this->env->set($property, $value); |
71 | 69 | } |
72 | 70 |
@@ -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 |