Code Duplication    Length = 3-5 lines in 3 locations

src/psalm-refactor.php 1 location

@@ 82-84 (lines=3) @@
79
    $options['c'] = $options['config'];
80
}
81
82
if (isset($options['c']) && is_array($options['c'])) {
83
    die('Too many config files provided' . PHP_EOL);
84
}
85
86
if (array_key_exists('h', $options)) {
87
    echo <<<HELP

src/psalm.php 1 location

@@ 412-416 (lines=5) @@
409
410
setlocale(LC_CTYPE, 'C');
411
412
if (isset($options['set-baseline'])) {
413
    if (is_array($options['set-baseline'])) {
414
        die('Only one baseline file can be created at a time' . PHP_EOL);
415
    }
416
}
417
418
$paths_to_check = getPathsToCheck(isset($options['f']) ? $options['f'] : null);
419

src/psalter.php 1 location

@@ 96-98 (lines=3) @@
93
    $options['c'] = $options['config'];
94
}
95
96
if (isset($options['c']) && is_array($options['c'])) {
97
    die('Too many config files provided' . PHP_EOL);
98
}
99
100
if (array_key_exists('h', $options)) {
101
    echo <<< HELP