Completed
Pull Request — master (#657)
by Guy
01:45
created
src/Commands/GenerateDocumentation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $groupedRoutes = collect($parsedRoutes)
82 82
             ->groupBy('metadata.groupName')
83
-            ->sortBy(static function ($group) {
83
+            ->sortBy(static function($group) {
84 84
                 /* @var $group Collection */
85 85
                 return $group->first()['metadata']['groupName'];
86 86
             }, SORT_NATURAL);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $routeMethods = implode(',', $generator->getMethods($route));
109 109
             $routePath = $generator->getUri($route);
110 110
 
111
-            if (! $this->isValidRoute($route) || ! $this->isRouteVisibleForDocumentation($route->getAction())) {
111
+            if (!$this->isValidRoute($route) || !$this->isRouteVisibleForDocumentation($route->getAction())) {
112 112
                 $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath));
113 113
                 continue;
114 114
             }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 $parsedRoutes[] = $generator->processRoute($route, $routeItem->getRules());
118 118
                 $this->info(sprintf($messageFormat, 'Processed', $routeMethods, $routePath));
119 119
             } catch (\Exception $exception) {
120
-                $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath).' - '.$exception->getMessage());
120
+                $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath) . ' - ' . $exception->getMessage());
121 121
             }
122 122
         }
123 123
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             $action = implode('@', $action);
137 137
         }
138 138
 
139
-        return ! is_callable($action) && ! is_null($action);
139
+        return !is_callable($action) && !is_null($action);
140 140
     }
141 141
 
142 142
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         list($class, $method) = Utils::getRouteClassAndMethodNames($action);
152 152
         $reflection = new ReflectionClass($class);
153 153
 
154
-        if (! $reflection->hasMethod($method)) {
154
+        if (!$reflection->hasMethod($method)) {
155 155
             return false;
156 156
         }
157 157
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             $phpdoc = new DocBlock($comment);
162 162
 
163 163
             return collect($phpdoc->getTags())
164
-                ->filter(function ($tag) {
164
+                ->filter(function($tag) {
165 165
                     return $tag->getName() === 'hideFromAPIDocumentation';
166 166
                 })
167 167
                 ->isEmpty();
Please login to merge, or discard this patch.
src/Matching/RouteMatcher/Match.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function offsetExists($offset)
51 51
     {
52
-        return is_callable([$this, 'get'.ucfirst($offset)]);
52
+        return is_callable([$this, 'get' . ucfirst($offset)]);
53 53
     }
54 54
 
55 55
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function offsetGet($offset)
59 59
     {
60
-        return call_user_func([$this, 'get'.ucfirst($offset)]);
60
+        return call_user_func([$this, 'get' . ucfirst($offset)]);
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.