Skip to content

Commit

Permalink
Changed case of variable to snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgsowa committed Feb 13, 2024
1 parent a517523 commit 69cd042
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,32 +651,32 @@ private static function generateBaseline(
): array {
fwrite(STDERR, 'Writing error baseline to file...' . PHP_EOL);

$errorBaseline = is_string($options['set-baseline']) ? $options['set-baseline'] :
$error_baseline = is_string($options['set-baseline']) ? $options['set-baseline'] :
($config->error_baseline ?? Config::DEFAULT_BASELINE_NAME);

try {
$issue_baseline = ErrorBaseline::read(
new FileProvider,
$errorBaseline,
$error_baseline,
);
} catch (ConfigException) {
$issue_baseline = [];
}

ErrorBaseline::create(
new FileProvider,
$errorBaseline,
$error_baseline,
IssueBuffer::getIssuesData(),
$config->include_php_versions_in_error_baseline || isset($options['include-php-versions']),
);

fwrite(STDERR, "Baseline saved to $errorBaseline.");
fwrite(STDERR, "Baseline saved to $error_baseline.");

if ($errorBaseline !== $config->error_baseline) {
if ($error_baseline !== $config->error_baseline) {
CliUtils::updateConfigFile(
$config,
$path_to_config ?? $current_dir,
$errorBaseline,
$error_baseline,
);
}

Expand Down

0 comments on commit 69cd042

Please sign in to comment.