Completed
Push — master ( f8fced...5579ff )
by Alejandro
03:02
created
src/Route.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
      * registered for the route, each callable middleware is invoked in
225 225
      * the order specified.
226 226
      *
227
-     * @return bool
227
+     * @return string
228 228
      */
229 229
     public function dispatch() {
230 230
         $output = "";
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.
src/Modules/Localize/Localize.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         $this->reloadConfig();
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $locale
67
+     */
65 68
     public function setLocale($locale) {
66 69
         $this->locale = $locale;
67 70
         $folder = \Tight\Utils::addTrailingSlash($this->config->resourceFolder);
Please login to merge, or discard this patch.