From 69cd0420a9d4431b28f7dbef385ddd01a333ef48 Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Tue, 13 Feb 2024 18:37:54 +0100 Subject: [PATCH] Changed case of variable to snake_case --- src/Psalm/Internal/Cli/Psalm.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Psalm/Internal/Cli/Psalm.php b/src/Psalm/Internal/Cli/Psalm.php index 037c547ee11..d72caf79304 100644 --- a/src/Psalm/Internal/Cli/Psalm.php +++ b/src/Psalm/Internal/Cli/Psalm.php @@ -651,13 +651,13 @@ 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 = []; @@ -665,18 +665,18 @@ private static function generateBaseline( 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, ); }