@@ -45,7 +45,9 @@ discard block |
||
| 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 |
||
| 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 | } |