瀏覽代碼

Apply fixes from StyleCI

Marcel Pociot 5 年之前
父節點
當前提交
9be9cd2ecb
共有 4 個文件被更改,包括 5 次插入7 次删除
  1. 1 1
      src/Tools/Utils.php
  2. 2 2
      tests/Fixtures/TestController.php
  3. 1 3
      tests/GenerateDocumentationTest.php
  4. 1 1
      tests/TestHelpers.php

+ 1 - 1
src/Tools/Utils.php

@@ -68,7 +68,7 @@ class Utils
 
     public static function deleteDirectoryAndContents($dir)
     {
-        $adapter = new Local(realpath(__DIR__."/../../"));
+        $adapter = new Local(realpath(__DIR__.'/../../'));
         $fs = new Filesystem($adapter);
         $fs->deleteDir($dir);
     }

+ 2 - 2
tests/Fixtures/TestController.php

@@ -115,14 +115,14 @@ class TestController extends Controller
     public function echoesConfig()
     {
         return [
-            'app.env' => config('app.env')
+            'app.env' => config('app.env'),
         ];
     }
 
     public function echoesUrlPathParameters($param)
     {
         return [
-            'param' => $param
+            'param' => $param,
         ];
     }
 

+ 1 - 3
tests/GenerateDocumentationTest.php

@@ -2,11 +2,9 @@
 
 namespace Mpociot\ApiDoc\Tests;
 
-use Mpociot\ApiDoc\Tools\Utils;
 use ReflectionException;
 use Illuminate\Support\Str;
-use RecursiveIteratorIterator;
-use RecursiveDirectoryIterator;
+use Mpociot\ApiDoc\Tools\Utils;
 use Orchestra\Testbench\TestCase;
 use Illuminate\Support\Facades\App;
 use Illuminate\Support\Facades\Config;

+ 1 - 1
tests/TestHelpers.php

@@ -50,4 +50,4 @@ trait TestHelpers
         $needle = preg_replace('/\s/', '', $needle);
         $this->assertContains($needle, $haystack);
     }
-}
+}