Skip to content

Commit d1b3569

Browse files
committed
Fix more PHPCS violations in phpcs-check-doc-examples
1 parent 23134c6 commit d1b3569

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bin/phpcs-check-doc-examples

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ if (PHP_VERSION_ID < 70000) {
2525
}
2626

2727
if (\extension_loaded('libxml') === false) {
28-
$error = 'ERROR: This script requires the libxml extension.' . PHP_EOL;
29-
\fwrite(STDERR, $error);
30-
exit(1);
28+
$error = 'ERROR: This script requires the libxml extension.' . PHP_EOL;
29+
\fwrite(STDERR, $error);
30+
exit(1);
3131
}
3232

3333
if (\extension_loaded('dom') === false) {
34-
$error = 'ERROR: This script requires the DOM extension.' . PHP_EOL;
35-
\fwrite(STDERR, $error);
36-
exit(1);
34+
$error = 'ERROR: This script requires the DOM extension.' . PHP_EOL;
35+
\fwrite(STDERR, $error);
36+
exit(1);
3737
}
3838

3939
require_once __DIR__ . '/../Scripts/DocCodeExamples/Functions.php';
@@ -76,10 +76,10 @@ try {
7676
$check = new PHPCSDevTools\Scripts\DocCodeExamples\Check($config, $extractor, $phpcsConfig, $writer);
7777
exit($check->run());
7878
} catch (RuntimeException $e) {
79-
$message = $e->getMessage();
79+
$message = $e->getMessage();
8080

81-
if ($config->getProperty('showColored') === true) {
82-
$message = "\033[31m{$message}\033[0m";
81+
if ($config->getProperty('showColored') === true) {
82+
$message = "\033[31m{$message}\033[0m";
8383
}
8484

8585
echo $message . PHP_EOL;

0 commit comments

Comments
 (0)