diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 41c5d21..f7e5dce 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -3,7 +3,7 @@ require __DIR__ . '/vendor/autoload.php'; $finder = PhpCsFixer\Finder::create() ->in(__DIR__) - ->exclude('tests'); + ->exclude(['tests', 'build']); $config = require __DIR__ . '/.php-cs-fixer.common.php'; diff --git a/src/Console/MetaCommand.php b/src/Console/MetaCommand.php index 1f98055..fe5189e 100644 --- a/src/Console/MetaCommand.php +++ b/src/Console/MetaCommand.php @@ -11,7 +11,6 @@ namespace Barryvdh\LaravelIdeHelper\Console; -use Barryvdh\LaravelIdeHelper\Factories; use Dotenv\Parser\Entry; use Dotenv\Parser\Parser; use Illuminate\Console\Command; diff --git a/tests/MacroTest.php b/tests/MacroTest.php index 5052efa..56f9677 100644 --- a/tests/MacroTest.php +++ b/tests/MacroTest.php @@ -296,7 +296,7 @@ class MacroTest extends TestCase { $reflectionMethod = new \ReflectionMethod(UrlGeneratorMacroClass::class, '__invoke'); - $macro = new Macro($reflectionMethod, new ReflectionClass(UrlGenerator::class), 'macroName'); + $macro = new Macro($reflectionMethod, new ReflectionClass(UrlGenerator::class), 'macroName'); $output = <<<'DOC' /** * @param string $foo diff --git a/tests/MethodTest.php b/tests/MethodTest.php index 4c7dadb..0141eb5 100644 --- a/tests/MethodTest.php +++ b/tests/MethodTest.php @@ -60,7 +60,7 @@ DOC; $reflectionClass = new \ReflectionClass(EloquentBuilder::class); $reflectionMethod = $reflectionClass->getMethod('upsert'); - $method = new Method($reflectionMethod, $reflectionClass); + $method = new Method($reflectionMethod, $reflectionClass); $output = <<<'DOC' /** @@ -92,7 +92,7 @@ DOC; $reflectionClass = new \ReflectionClass(EloquentBuilder::class); $reflectionMethod = $reflectionClass->getMethod('where'); - $method = new Method($reflectionMethod, $reflectionClass, null, [], [], ['$this' => '\\' . EloquentBuilder::class . '']); + $method = new Method($reflectionMethod, $reflectionClass, null, [], [], ['$this' => '\\' . EloquentBuilder::class . '']); $output = <<<'DOC' /** @@ -123,7 +123,7 @@ DOC; $reflectionClass = new \ReflectionClass(QueryBuilder::class); $reflectionMethod = $reflectionClass->getMethod('whereNull'); - $method = new Method($reflectionMethod, $reflectionClass, null, [], [], ['$this' => '\\' . EloquentBuilder::class . '']); + $method = new Method($reflectionMethod, $reflectionClass, null, [], [], ['$this' => '\\' . EloquentBuilder::class . '']); $output = <<<'DOC' /** @@ -195,7 +195,7 @@ DOC; $reflectionClass = new \ReflectionClass(EloquentBuilder::class); $reflectionMethod = $reflectionClass->getMethod('firstOr'); - $method = new Method($reflectionMethod, $reflectionClass, null, [], [], [], ['TModel']); + $method = new Method($reflectionMethod, $reflectionClass, null, [], [], [], ['TModel']); $output = <<<'DOC' /**