diff --git a/src/Console/Commands/Stub.php b/src/Console/Commands/Stub.php index 7181be3e5857fabed82b037f60f491e846550b49..8f9592744172dc1ad677f719bbb2086f34696397 100644 --- a/src/Console/Commands/Stub.php +++ b/src/Console/Commands/Stub.php @@ -7,7 +7,6 @@ use Illuminate\Contracts\Config\Repository as ConfigContract; use Illuminate\Filesystem\Filesystem; use Laragear\Preload\Preloader; use Symfony\Component\Console\Attribute\AsCommand; -use const DIRECTORY_SEPARATOR; /** * @internal @@ -42,7 +41,7 @@ class Stub extends Command public function handle(Filesystem $file, ConfigContract $config): void { $dir = $config->get('preload.path'); - $filePath = $dir . '/' . Preloader::NAME_PRELOAD; + $filePath = $dir.'/'.Preloader::NAME_PRELOAD; $file->ensureDirectoryExists($dir); diff --git a/src/Preloader.php b/src/Preloader.php index f2178db35d521673bd20e9b064cead0e8beee05d..3f785cb22b0744bee25267f188de38e7d9a2cd18 100644 --- a/src/Preloader.php +++ b/src/Preloader.php @@ -28,12 +28,12 @@ class Preloader * * @const string */ - public const STUB_STATISTICS = __DIR__.'/../stubs/' . self::NAME_STATISTICS; + public const STUB_STATISTICS = __DIR__.'/../stubs/'.self::NAME_STATISTICS; /** * The location of the preload script stub. */ - public const STUB_PRELOAD = __DIR__.'/../stubs/' . self::NAME_PRELOAD . '.stub'; + public const STUB_PRELOAD = __DIR__.'/../stubs/'.self::NAME_PRELOAD.'.stub'; /** * The filename of the list of preload files. diff --git a/tests/Console/Commands/StubTest.php b/tests/Console/Commands/StubTest.php index 290c50607ef7f43732a0b071780e32543fdd1a46..352c9f8e2e513624239b8cf08753de1b97a9c8c0 100644 --- a/tests/Console/Commands/StubTest.php +++ b/tests/Console/Commands/StubTest.php @@ -12,7 +12,7 @@ class StubTest extends TestCase public function test_stores_placeholder_in_output_path(): void { $dir = $this->app->basePath(); - $filePath = $dir . '/' . Preloader::NAME_PRELOAD; + $filePath = $dir.'/'.Preloader::NAME_PRELOAD; $this->mock(Filesystem::class, function (MockInterface $mock) use ($dir, $filePath) { $mock->expects('ensureDirectoryExists')->with($dir);