diff --git a/src/Entity/Package.php b/src/Entity/Package.php index ab11f39..59c3aa0 100644 --- a/src/Entity/Package.php +++ b/src/Entity/Package.php @@ -23,7 +23,7 @@ public function __construct( private ?string $version, private string $dependency, array $config, - array $composer + array $composer, ) { $this->config = $config; $this->composer = $composer; diff --git a/src/InteractiveComposer/Task/ConfigLocalNeonTask.php b/src/InteractiveComposer/Task/ConfigLocalNeonTask.php index 1493051..82d9fbb 100644 --- a/src/InteractiveComposer/Task/ConfigLocalNeonTask.php +++ b/src/InteractiveComposer/Task/ConfigLocalNeonTask.php @@ -125,7 +125,7 @@ private function writeConfiguration(string $path, mixed $haystack): bool 'connection' => $haystack, ], ], - Neon::BLOCK + Neon::BLOCK, )) . "\n"; } diff --git a/src/Storage.php b/src/Storage.php index e420fd4..cb43aab 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -26,7 +26,7 @@ public function __construct( private string $basePath, private string $configPackagePath, private string $configLocalPath, - string $projectRoot + string $projectRoot, ) { $this->composerHash = @md5_file($projectRoot . '/vendor/composer/installed.json') ?: md5((string) time()); $this->generator = new Generator($projectRoot); @@ -167,7 +167,7 @@ function ($left, $right): int { } return $a === $b ? 0 : 1; - } + }, ); if ($treeOthers !== []) { @@ -184,7 +184,7 @@ function ($left, $right): int { FileSystem::write( $this->configPackagePath, - trim((string) preg_replace('/(\s)\[]-(\s)/', '$1-$2', $return)) . "\n" + trim((string) preg_replace('/(\s)\[]-(\s)/', '$1-$2', $return)) . "\n", ); } @@ -213,7 +213,7 @@ private function save(): PackageDescriptorEntityInterface . "\n\n" . 'if ($cache === null) {' . "\n\t" . '$cache = (int) strtotime($this->getGeneratedDateTime());' . "\n" . '}' - . "\n\n" . 'return $cache;' + . "\n\n" . 'return $cache;', ); $class->addMethod('getComposerHash') @@ -240,8 +240,8 @@ private function save(): PackageDescriptorEntityInterface return null; })( - $property->getType() - ) + $property->getType(), + ), ); } }