diff --git a/src/PHPCensor/Plugin/PhpCodeSniffer.php b/src/PHPCensor/Plugin/PhpCodeSniffer.php index 458d91a4..917083de 100644 --- a/src/PHPCensor/Plugin/PhpCodeSniffer.php +++ b/src/PHPCensor/Plugin/PhpCodeSniffer.php @@ -52,8 +52,7 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface protected $allowed_warnings; /** - * @var string, based on the assumption the root may not hold the code to be - * tested, exteds the base path + * @var string, based on the assumption the root may not hold the code to be tested, extends the base path */ protected $path; @@ -193,9 +192,9 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface } if (strpos($this->standard, '/') !== false) { - $standard = ' --standard='.$this->directory.$this->standard; + $standard = ' --standard=' . $this->directory.$this->standard; } else { - $standard = ' --standard='.$this->standard; + $standard = ' --standard=' . $this->standard; } $suffixes = ''; @@ -221,7 +220,7 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface throw new \Exception('Could not process the report generated by PHP Code Sniffer.'); } - $errors = $data['totals']['errors']; + $errors = $data['totals']['errors']; $warnings = $data['totals']['warnings']; foreach ($data['files'] as $fileName => $file) {