From 075c477ffa6aa5098ddb48c00befa3aeab118d81 Mon Sep 17 00:00:00 2001 From: Brian Faust Date: Mon, 12 Feb 2018 08:46:43 +0200 Subject: [PATCH] Apply fixes from StyleCI (#16) [ci skip] [skip ci] --- src/AbstractServiceProvider.php | 4 ++-- src/Publisher/ConfigPublisher.php | 2 +- src/Publisher/MigrationPublisher.php | 2 +- src/Publisher/Publisher.php | 2 +- src/Publisher/SeedPublisher.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AbstractServiceProvider.php b/src/AbstractServiceProvider.php index 4e49d53..716dc9a 100755 --- a/src/AbstractServiceProvider.php +++ b/src/AbstractServiceProvider.php @@ -122,7 +122,7 @@ protected function loadTranslations() protected function loadRoutes() { - if (! $this->app->routesAreCached()) { + if (!$this->app->routesAreCached()) { require $this->app['loader.routes']->getFileList($this->packagePath); } } @@ -287,7 +287,7 @@ protected function getFileName($file) { $file = basename($file); - if (! ends_with($file, '.php')) { + if (!ends_with($file, '.php')) { $file = $file.'.php'; } diff --git a/src/Publisher/ConfigPublisher.php b/src/Publisher/ConfigPublisher.php index c1dedf9..a0a735c 100644 --- a/src/Publisher/ConfigPublisher.php +++ b/src/Publisher/ConfigPublisher.php @@ -40,7 +40,7 @@ protected function getSource($packagePath): array ]); // if the destination doesn't exist we can add the file to the queue - if (! $this->files->exists($destinationPath)) { + if (!$this->files->exists($destinationPath)) { $paths[$file] = $destinationPath; } } diff --git a/src/Publisher/MigrationPublisher.php b/src/Publisher/MigrationPublisher.php index 8ba62ca..6ac0ee3 100644 --- a/src/Publisher/MigrationPublisher.php +++ b/src/Publisher/MigrationPublisher.php @@ -38,7 +38,7 @@ protected function getSource($packagePath): array // iterate through all files foreach ($files as $file) { // if the destination doesn't exist we can add the file to the queue - if (! class_exists($this->getClassFromFile($file))) { + if (!class_exists($this->getClassFromFile($file))) { $paths[$file] = $this->getDestinationPath('migrations', [ date('Y_m_d_His', time()), $this->getFileName($file), ]); diff --git a/src/Publisher/Publisher.php b/src/Publisher/Publisher.php index e504312..f1b6578 100644 --- a/src/Publisher/Publisher.php +++ b/src/Publisher/Publisher.php @@ -63,7 +63,7 @@ protected function getFileName($file): string { $file = basename($file); - if (! ends_with($file, '.php')) { + if (!ends_with($file, '.php')) { $file = $file.'.php'; } diff --git a/src/Publisher/SeedPublisher.php b/src/Publisher/SeedPublisher.php index 59d2858..6292782 100644 --- a/src/Publisher/SeedPublisher.php +++ b/src/Publisher/SeedPublisher.php @@ -41,7 +41,7 @@ protected function getSource($packagePath): array ]); // if the destination doesn't exist we can add the file to the queue - if (! $this->files->exists($destinationPath)) { + if (!$this->files->exists($destinationPath)) { $paths[$file] = $destinationPath; } }