Skip to content

Commit 7c7ceeb

Browse files
Fix styling
1 parent df4dc48 commit 7c7ceeb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Commands/EnumConvertorCommand.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle(): int
2020
$files = File::allFiles(base_path($path));
2121

2222
collect($files)->each(function ($file) use ($outputPath) {
23-
if(!$this->hasFileChanged($file)) {
23+
if (! $this->hasFileChanged($file)) {
2424
return;
2525
}
2626

@@ -93,18 +93,19 @@ private function convertValue($item)
9393
};
9494
}
9595

96-
private function hasFileChanged($file) {
97-
if(!config('enum-convertor-laravel.enable_file_hash_check', false)) {
96+
private function hasFileChanged($file)
97+
{
98+
if (! config('enum-convertor-laravel.enable_file_hash_check', false)) {
9899
return true;
99100
}
100101

101102
$fileHash = hash_file('sha256', $file->getPathname());
102103

103-
$cacheKey = 'enum-convertor-' . hash('sha256', $file->getPathname());
104+
$cacheKey = 'enum-convertor-'.hash('sha256', $file->getPathname());
104105

105106
$previousHash = Cache::get($cacheKey, '');
106107

107-
if($fileHash !== $previousHash) {
108+
if ($fileHash !== $previousHash) {
108109
Cache::put($cacheKey, $fileHash);
109110

110111
return true;

0 commit comments

Comments
 (0)