Completed
Push — master ( 5ae7e9...c4f7f5 )
by Alejandro
03:07
created
src/Route.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,9 @@
 block discarded – undo
72 72
     }
73 73
 
74 74
     public function setCallable($callback) {
75
-        if (is_callable($callback))
76
-            $this->callable = $callback;
75
+        if (is_callable($callback)) {
76
+                    $this->callable = $callback;
77
+        }
77 78
     }
78 79
 
79 80
     /**
Please login to merge, or discard this patch.
src/Router.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * 
116 116
      * This method need at least 2 arguments: route pattern and callable.
117 117
      * You can create midleware callables which will be executed before the route
118
-     * @return type
118
+     * @return Router
119 119
      */
120 120
     public function post() {
121 121
         return $this->url(Route::METHOD_POST, func_get_args());
@@ -198,6 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
     /**
200 200
      * Method called when route cant be found
201
+     * @param \Closure $callback
201 202
      */
202 203
     public function notFound($callback) {
203 204
         $this->errorHandler['notFound'] = $callback;
Please login to merge, or discard this patch.