Passed
Push — master ( 6db927...ab6235 )
by smiley
03:35
created
src/ClassLoader.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ArrayHelpers/SearchableArray.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,15 +31,13 @@
 block discarded – undo
31 31
 
32 32
 		if(($array instanceof ArrayObject) || ($array instanceof ArrayIterator)){
33 33
 			$this->array = $array->getArrayCopy(); // @codeCoverageIgnore
34
-		}
35
-		elseif($array instanceof Traversable){
34
+		} elseif($array instanceof Traversable){
36 35
 			$this->array = iterator_to_array($array); // @codeCoverageIgnore
37 36
 		}
38 37
 		// yields unexpected results with DotArray
39 38
 		elseif(gettype($array) === 'object'){
40 39
 			$this->array = get_object_vars($array); // @codeCoverageIgnore
41
-		}
42
-		elseif(is_array($array)){
40
+		} elseif(is_array($array)){
43 41
 			$this->array = $array;
44 42
 		}
45 43
 
Please login to merge, or discard this patch.