Sfoglia il codice sorgente

fix style ci recommendations

Zolotov Alexander 6 anni fa
parent
commit
1978ea1617
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 3 1
      src/Commands/GenerateDocumentation.php
  2. 1 1
      src/Tools/Generator.php

+ 3 - 1
src/Commands/GenerateDocumentation.php

@@ -226,7 +226,9 @@ class GenerateDocumentation extends Command
     private function isValidRoute(Route $route)
     {
         $action = $route->getAction()['uses'];
-        if (is_array($action)) $action = implode('@', $action);
+        if (is_array($action)) {
+            $action = implode('@', $action);
+        }
         return ! is_callable($action) && ! is_null($action);
     }
 

+ 1 - 1
src/Tools/Generator.php

@@ -53,7 +53,7 @@ class Generator
      */
     public function processRoute(Route $route, array $rulesToApply = [])
     {
-        $action = $route->getAction()["uses"];
+        $action = $route->getAction()['uses'];
         list($class, $method) = is_array($action) ? $action : explode('@', $action);
         $controller = new ReflectionClass($class);
         $method = $controller->getMethod($method);