Browse Source

Merge branch 'master' of github.com:mpociot/laravel-apidoc-generator

Marcel Pociot 9 years ago
parent
commit
e5d379c247

+ 1 - 1
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

@@ -22,7 +22,7 @@ abstract class AbstractGenerator
      * @param  \Illuminate\Routing\Route $route
      * @param array $bindings
      * @param bool $withResponse
-     * 
+     *
      * @return array
      */
     abstract public function processRoute($route, $bindings = [], $withResponse = true);

+ 5 - 4
src/Mpociot/ApiDoc/Generators/DingoGenerator.php

@@ -10,19 +10,20 @@ class DingoGenerator extends AbstractGenerator
      * @param \Illuminate\Routing\Route $route
      * @param array $bindings
      * @param bool $withResponse
-     * 
+     *
      * @return array
      */
     public function processRoute($route, $bindings = [], $withResponse = true)
     {
         $response = '';
-        
+
         if ($withResponse) {
             try {
                 $response = $this->getRouteResponse($route, $bindings);
-            } catch (Exception $e) {}
+            } catch (Exception $e) {
+            }
         }
-        
+
         $routeAction = $route->getAction();
         $routeGroup = $this->getRouteGroup($routeAction['uses']);
         $routeDescription = $this->getRouteDescription($routeAction['uses']);