Passed
Push — master ( 0fb967...ae74ad )
by Marcio
02:21
created
src/Ballybran/Routing/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 
415 415
         // check if route is defined without regex
416 416
         if (in_array($uri, $routes)) {
417
-            $currentRoute = array_filter($this->routes, function ($r) use ($method, $uri) {
417
+            $currentRoute = array_filter($this->routes, function($r) use ($method, $uri) {
418 418
                 return RouterRequest::validMethod($r['method'], $method) && $r['route'] === $uri;
419 419
             });
420 420
             if (!empty($currentRoute)) {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
                         $this->runRouteMiddleware($data, 'before');
439 439
 
440 440
                         array_shift($matched);
441
-                        $matched = array_map(function ($value) {
441
+                        $matched = array_map(function($value) {
442 442
                             return trim(urldecode($value));
443 443
                         }, $matched);
444 444
 
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 
458 458
         if ($foundRoute === false) {
459 459
             if (!$this->errorCallback) {
460
-                $this->errorCallback = function () {
460
+                $this->errorCallback = function() {
461 461
                     header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
462 462
                     return $this->exception('Route not found. Looks like something went wrong. Please try again.');
463 463
                 };
Please login to merge, or discard this patch.
src/Ballybran/Core/View/View.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,6 @@
 block discarded – undo
28 28
  *
29 29
  * *NOTE* When a view uses a layout, the output of the view is ignored, as
30 30
  *        as the view is expected to use capture() to send data to the layout.
31
-
32
-
33 31
  * @property  UserData propriedade gerada e usada para pegar dados do model
34 32
  */
35 33
 
Please login to merge, or discard this patch.