@@ -66,10 +66,11 @@ discard block |
||
66 | 66 | |
67 | 67 | $regex = $this->readpath($folders); |
68 | 68 | |
69 | - if (isset($this->routes[$regex])) |
|
70 | - return $this->routes[$regex]; |
|
71 | - else |
|
72 | - return null; |
|
69 | + if (isset($this->routes[$regex])) { |
|
70 | + return $this->routes[$regex]; |
|
71 | + } else { |
|
72 | + return null; |
|
73 | + } |
|
73 | 74 | |
74 | 75 | } |
75 | 76 | |
@@ -79,7 +80,9 @@ discard block |
||
79 | 80 | |
80 | 81 | $regex = $this->readpath($folders); |
81 | 82 | |
82 | - if (isset($this->routes[$regex])) unset($this->routes[$regex]); |
|
83 | + if (isset($this->routes[$regex])) { |
|
84 | + unset($this->routes[$regex]); |
|
85 | + } |
|
83 | 86 | |
84 | 87 | } |
85 | 88 | |
@@ -97,7 +100,9 @@ discard block |
||
97 | 100 | |
98 | 101 | private function readpath($folders = array(), &$value = null, $regex = '') { |
99 | 102 | |
100 | - if (!empty($folders) && empty($folders[0])) array_shift($folders); |
|
103 | + if (!empty($folders) && empty($folders[0])) { |
|
104 | + array_shift($folders); |
|
105 | + } |
|
101 | 106 | |
102 | 107 | if (empty($folders)) { |
103 | 108 |
@@ -104,7 +104,9 @@ |
||
104 | 104 | |
105 | 105 | foreach ( $supported_methods as $method ) { |
106 | 106 | |
107 | - if ( method_exists($this, strtolower($method)) ) array_push($implemented_methods,$method); |
|
107 | + if ( method_exists($this, strtolower($method)) ) { |
|
108 | + array_push($implemented_methods,$method); |
|
109 | + } |
|
108 | 110 | |
109 | 111 | } |
110 | 112 |