Passed
Branch master (865779)
by Henri
01:44
created
src/AttributeTrait.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,9 @@  discard block
 block discarded – undo
45 45
     {
46 46
         try{
47 47
             foreach ($method->getAttributes() as $attr) {
48
-                if($attr->getName() != 'HnrAzevedo\Router\Route') continue;
48
+                if($attr->getName() != 'HnrAzevedo\Router\Route') {
49
+                    continue;
50
+                }
49 51
 
50 52
                 $args = $attr->getArguments();
51 53
     
@@ -64,7 +66,7 @@  discard block
 block discarded – undo
64 66
                     ->attrWhere($args)
65 67
                     ->attrMiddleware($args);
66 68
             }
67
-        }catch(Exception $er){
69
+        } catch(Exception $er){
68 70
             throw new Exception('Failed to add route via attribute: '.$er->getMessage());
69 71
         }
70 72
     }
Please login to merge, or discard this patch.