Completed
Push — master ( b3b3be...a5597c )
by smiley
01:48
created
src/ClassLoader.php 1 patch
Braces   +3 added lines, -6 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
 
@@ -70,8 +68,7 @@  discard block
 block discarded – undo
70 68
 			}
71 69
 
72 70
 			return $object;
73
-		}
74
-		catch(Exception $e){
71
+		} catch(Exception $e){
75 72
 			throw new TraitException('ClassLoader: '.$e->getMessage());
76 73
 		}
77 74
 
Please login to merge, or discard this patch.