Skip to content

Commit

Permalink
Merge pull request #38 from mpociot/analysis-XprQEo
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
mpociot authored Jun 13, 2016
2 parents 8b72eae + 7c6c02f commit 4f91584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Mpociot/ApiDoc/Generators/AbstractGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract protected function getUri($route);
* @param \Illuminate\Routing\Route $route
* @param array $bindings
* @param bool $withResponse
*
*
* @return array
*/
abstract public function processRoute($route, $bindings = [], $withResponse = true);
Expand Down
9 changes: 5 additions & 4 deletions src/Mpociot/ApiDoc/Generators/DingoGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 4f91584

Please sign in to comment.