@@ -25,15 +25,15 @@ if (PHP_VERSION_ID < 70000) {
2525}
2626
2727if (\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
3333if (\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
3939require_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