Passed
Push — master ( 2d394b...29ed5a )
by Milad
08:45
created
Category
src/Dispatching/Caller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this->container->singleton(ServerRequestInterface::class, $request);
38 38
 
39 39
         if (isset($callables[$index + 1])) {
40
-            $this->container->closure('$next', function (ServerRequestInterface $request) use ($callables, $index) {
40
+            $this->container->closure('$next', function(ServerRequestInterface $request) use ($callables, $index) {
41 41
                 return $this->stack($callables, $request, $index + 1);
42 42
             });
43 43
         } else {
Please login to merge, or discard this patch.
src/Dispatching/Matcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private function pruneRouteParameters(array $parameters): array
53 53
     {
54
-        return array_filter($parameters, function ($value, $name) {
54
+        return array_filter($parameters, function($value, $name) {
55 55
             return is_numeric($name) === false;
56 56
         }, ARRAY_FILTER_USE_BOTH);
57 57
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function regexUri(string $path, array $patterns): string
110 110
     {
111
-        return preg_replace_callback('@{([^}]+)}@', function (array $match) use ($patterns) {
111
+        return preg_replace_callback('@{([^}]+)}@', function(array $match) use ($patterns) {
112 112
             return $this->regexParameter($match[1], $patterns);
113 113
         }, $path);
114 114
     }
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function setupView(string $directory): void
82 82
     {
83
-        $this->container->singleton(View::class, function () use ($directory) {
83
+        $this->container->singleton(View::class, function() use ($directory) {
84 84
             return new PhpView($directory);
85 85
         });
86 86
     }
Please login to merge, or discard this patch.