Passed
Branch master (0e01fd)
by James
03:02
created
Category
src/FindInvalid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $code = file_get_contents($file);
34 34
 
35 35
         $traverser = new NodeTraverser;
36
-        $visitor = new FindingVisitor(function (Node $node) use ($file) {
36
+        $visitor = new FindingVisitor(function(Node $node) use ($file) {
37 37
             if ($node instanceof Node\Expr\FuncCall) {
38 38
                 if ($node->name instanceof Node\Name && $node->name->toString() === $this->getFunctionName()) {
39 39
                     $firstArgument = $node->args[0];
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $table = new \Symfony\Component\Console\Helper\Table($output);
67 67
         $table->setHeaders([$this->nameOfArgument, 'Valid', 'File']);
68 68
 
69
-        $table->addRows($this->results->sortBy('valid')->map(function ($call) {
69
+        $table->addRows($this->results->sortBy('valid')->map(function($call) {
70 70
             $call['valid'] = $call['valid'] ? '✅' : '❌';
71 71
             return $call;
72 72
         })->toArray());
Please login to merge, or discard this patch.
src/FindInvalidRouteDefinitions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     protected function nodeVisitor($file): callable
23 23
     {
24
-        return function (Node $node) use ($file) {
24
+        return function(Node $node) use ($file) {
25 25
             if ($node instanceof Node\Expr\StaticCall) {
26 26
                 foreach ($node->args as $argument) {
27 27
                     $routeConfiguration = $argument->value;
Please login to merge, or discard this patch.
src/FindInvalidRouteCalls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function __construct()
15 15
     {
16 16
         $this->routeNames = collect(\Route::getRoutes())
17
-            ->map(function (Route $route) {
17
+            ->map(function(Route $route) {
18 18
                 return $route->getName();
19 19
             })->filter();
20 20
 
Please login to merge, or discard this patch.