Skip to content

Commit e27e025

Browse files
committed
Apply fixes from StyleCI
1 parent a9f8bb5 commit e27e025

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Commands/GenerateDocumentation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Mpociot\ApiDoc\Commands;
44

5-
use Mpociot\ApiDoc\Tools\Utils;
65
use ReflectionClass;
76
use ReflectionException;
87
use Illuminate\Routing\Route;
98
use Illuminate\Console\Command;
9+
use Mpociot\ApiDoc\Tools\Utils;
1010
use Mpociot\Reflection\DocBlock;
1111
use Illuminate\Support\Collection;
1212
use Illuminate\Support\Facades\URL;
@@ -237,9 +237,9 @@ private function isValidRoute(Route $route)
237237
/**
238238
* @param $action
239239
*
240-
* @return bool
241-
*@throws ReflectionException
240+
* @throws ReflectionException
242241
*
242+
* @return bool
243243
*/
244244
private function isRouteVisibleForDocumentation($action)
245245
{

src/Tools/Utils.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ public static function getRouteActionUses(array $action): ?array
1919
if ($action['uses'] !== null) {
2020
if (is_array($action['uses'])) {
2121
return $action['uses'];
22-
}
23-
elseif (is_string($action['uses'])) {
22+
} elseif (is_string($action['uses'])) {
2423
return explode('@', $action['uses']);
2524
}
2625
}
2726
if (array_key_exists(0, $action) && array_key_exists(1, $action)) {
2827
return [
2928
0 => $action[0],
30-
1 => $action[1]
29+
1 => $action[1],
3130
];
3231
}
3332

0 commit comments

Comments
 (0)