Skip to content

Commit

Permalink
Update code-style 💻
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 20, 2022
1 parent 874f3ca commit e82516c
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/Concerns/About.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
2 changes: 0 additions & 2 deletions src/Concerns/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
2 changes: 0 additions & 2 deletions src/Console/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
2 changes: 0 additions & 2 deletions src/Constants/Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
2 changes: 0 additions & 2 deletions src/Helpers/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
2 changes: 0 additions & 2 deletions src/Plugins/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
12 changes: 5 additions & 7 deletions src/Processors/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down Expand Up @@ -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()
) {
}

Expand Down Expand Up @@ -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();
})
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/Helpers/Config/GetPackageNameByPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/Helpers/Config/GetPackagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
*
* @copyright 2022 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/Laravel-Lang/publisher
Expand Down

0 comments on commit e82516c

Please sign in to comment.