Skip to content

Commit

Permalink
Fix undefined notices and correctly return number of errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Apr 7, 2017
1 parent d61f2e2 commit ca7fea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/Components/Qc/Task/Cs.php
Expand Up @@ -78,6 +78,6 @@ public function run(&$options)
$_SERVER['argc'] = $argc;

chdir($old_dir);
return $phpcs->reporting->printReport('emacs', false, null);
return $phpcs->reporting->printReport('emacs', false, array('colors' => true), null)['errors'];
}
}

0 comments on commit ca7fea4

Please sign in to comment.