diff --git a/src/Concerns/About.php b/src/Concerns/About.php index 08e66758..378f3ba1 100644 --- a/src/Concerns/About.php +++ b/src/Concerns/About.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/src/Concerns/Output.php b/src/Concerns/Output.php index ab834135..813214fb 100644 --- a/src/Concerns/Output.php +++ b/src/Concerns/Output.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/src/Console/Base.php b/src/Console/Base.php index 0729df82..005de0d0 100644 --- a/src/Console/Base.php +++ b/src/Console/Base.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/src/Constants/Types.php b/src/Constants/Types.php index 72bc58ec..5aa705eb 100644 --- a/src/Constants/Types.php +++ b/src/Constants/Types.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/src/Helpers/Config.php b/src/Helpers/Config.php index 1e2b3f03..351d7405 100644 --- a/src/Helpers/Config.php +++ b/src/Helpers/Config.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/src/Plugins/Provider.php b/src/Plugins/Provider.php index a8677e4f..2e4b2293 100644 --- a/src/Plugins/Provider.php +++ b/src/Plugins/Provider.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/src/Processors/Processor.php b/src/Processors/Processor.php index 09d4fc6b..11fff82d 100644 --- a/src/Processors/Processor.php +++ b/src/Processors/Processor.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher @@ -44,10 +42,10 @@ abstract class Processor public function __construct( readonly protected OutputStyle $output, - readonly protected array $locales, - readonly protected Config $config = new Config(), - readonly protected Manager $filesystem = new Manager(), - protected Translation $translation = new Translation() + readonly protected array $locales, + readonly protected Config $config = new Config(), + readonly protected Manager $filesystem = new Manager(), + protected Translation $translation = new Translation() ) { } @@ -128,7 +126,7 @@ protected function plugins(): array return Arr::of($this->config->getPlugins()) ->map(static function (array $plugins): array { return Arr::of($plugins) - ->map(static fn (string $plugin) => new $plugin()) + ->map(static fn (string $plugin) => new $plugin()) ->filter(static fn (Plugin $plugin) => $plugin->has()) ->toArray(); }) diff --git a/tests/Unit/Helpers/Config/GetPackageNameByPathTest.php b/tests/Unit/Helpers/Config/GetPackageNameByPathTest.php index 1ef8c315..1e8757e7 100644 --- a/tests/Unit/Helpers/Config/GetPackageNameByPathTest.php +++ b/tests/Unit/Helpers/Config/GetPackageNameByPathTest.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher diff --git a/tests/Unit/Helpers/Config/GetPackagesTest.php b/tests/Unit/Helpers/Config/GetPackagesTest.php index 1084fd5d..a044a0d2 100644 --- a/tests/Unit/Helpers/Config/GetPackagesTest.php +++ b/tests/Unit/Helpers/Config/GetPackagesTest.php @@ -7,9 +7,7 @@ * file that was distributed with this source code. * * @author Andrey Helldar - * * @copyright 2022 Andrey Helldar - * * @license MIT * * @see https://github.com/Laravel-Lang/publisher