浏览代码

Apply fixes from StyleCI

Zolotov Alexander 6 年之前
父节点
当前提交
e27e0259c2
共有 2 个文件被更改,包括 5 次插入6 次删除
  1. 3 3
      src/Commands/GenerateDocumentation.php
  2. 2 3
      src/Tools/Utils.php

+ 3 - 3
src/Commands/GenerateDocumentation.php

@@ -2,11 +2,11 @@
 
 namespace Mpociot\ApiDoc\Commands;
 
-use Mpociot\ApiDoc\Tools\Utils;
 use ReflectionClass;
 use ReflectionException;
 use Illuminate\Routing\Route;
 use Illuminate\Console\Command;
+use Mpociot\ApiDoc\Tools\Utils;
 use Mpociot\Reflection\DocBlock;
 use Illuminate\Support\Collection;
 use Illuminate\Support\Facades\URL;
@@ -237,9 +237,9 @@ class GenerateDocumentation extends Command
     /**
      * @param $action
      *
-     * @return bool
-     *@throws ReflectionException
+     * @throws ReflectionException
      *
+     * @return bool
      */
     private function isRouteVisibleForDocumentation($action)
     {

+ 2 - 3
src/Tools/Utils.php

@@ -19,15 +19,14 @@ class Utils
         if ($action['uses'] !== null) {
             if (is_array($action['uses'])) {
                 return $action['uses'];
-            }
-            elseif (is_string($action['uses'])) {
+            } elseif (is_string($action['uses'])) {
                 return explode('@', $action['uses']);
             }
         }
         if (array_key_exists(0, $action) && array_key_exists(1, $action)) {
             return [
                 0 => $action[0],
-                1 => $action[1]
+                1 => $action[1],
             ];
         }