Skip to content

Commit

Permalink
Allow to fix a single file
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jun 23, 2022
1 parent 5c22b7d commit 97df85a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/Factories/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public static function preset($rules)
$localConfiguration = resolve(ConfigurationJsonRepository::class);

$finder = Finder::create()
->in($path)
->notName(static::$notName)
->exclude(static::$exclude)
->ignoreDotFiles(true)
Expand Down
3 changes: 2 additions & 1 deletion app/Factories/ConfigurationResolverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static function fromIO($input, $output)
]),
'diff' => $output->isVerbose(),
'dry-run' => $input->getOption('test'),
'path' => [$path],
'path-mode' => ConfigurationResolver::PATH_MODE_OVERRIDE,
'cache-file' => implode(DIRECTORY_SEPARATOR, [
realpath(sys_get_temp_dir()),
Expand All @@ -69,7 +70,7 @@ public static function fromIO($input, $output)
'verbosity' => $output->getVerbosity(),
'show-progress' => 'true',
],
$path,
getcwd(),
new ToolInfo(),
);

Expand Down

0 comments on commit 97df85a

Please sign in to comment.