File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments