Skip to content

Commit

Permalink
Automatic fix coding standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 31, 2022
1 parent 52f4b01 commit 7212175
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Entity/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/InteractiveComposer/Task/ConfigLocalNeonTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function writeConfiguration(string $path, mixed $haystack): bool
'connection' => $haystack,
],
],
Neon::BLOCK
Neon::BLOCK,
)) . "\n";
}

Expand Down
12 changes: 6 additions & 6 deletions src/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -167,7 +167,7 @@ function ($left, $right): int {
}

return $a === $b ? 0 : 1;
}
},
);

if ($treeOthers !== []) {
Expand All @@ -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",
);
}

Expand Down Expand Up @@ -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')
Expand All @@ -240,8 +240,8 @@ private function save(): PackageDescriptorEntityInterface

return null;
})(
$property->getType()
)
$property->getType(),
),
);
}
}
Expand Down

0 comments on commit 7212175

Please sign in to comment.