Code style fixes

This commit is contained in:
Dmitry Khomutov 2017-03-15 23:27:24 +07:00
parent 644b5cacb3
commit 89817f456f
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -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) {