diff --git a/src/MorphMapGeneratorServiceProvider.php b/src/MorphMapGeneratorServiceProvider.php index d8c1ffe..0676010 100644 --- a/src/MorphMapGeneratorServiceProvider.php +++ b/src/MorphMapGeneratorServiceProvider.php @@ -30,7 +30,7 @@ public function boot(MorphMapCacheDriver $cache): void ClearMorphMapCommand::class, ]); - if(method_exists($this, 'optimizes') && config('morph-map-generator.optimize', true)) { + if (method_exists($this, 'optimizes') && config('morph-map-generator.optimize', true)) { $this->optimizes('morph-map:cache', 'morph-map:clear', 'morph-map'); } } diff --git a/tests/MorphMapCommandsTest.php b/tests/MorphMapCommandsTest.php index ac3a71d..eb50be4 100644 --- a/tests/MorphMapCommandsTest.php +++ b/tests/MorphMapCommandsTest.php @@ -6,7 +6,6 @@ use Spatie\LaravelMorphMapGenerator\Cache\MorphMapCacheDriver; use Spatie\LaravelMorphMapGenerator\Commands\CacheMorphMapCommand; use Spatie\LaravelMorphMapGenerator\Commands\ClearMorphMapCommand; - use Spatie\TemporaryDirectory\TemporaryDirectory; beforeEach(function () {