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; protected $allowed_warnings;
/** /**
* @var string, based on the assumption the root may not hold the code to be * @var string, based on the assumption the root may not hold the code to be tested, extends the base path
* tested, exteds the base path
*/ */
protected $path; protected $path;
@ -193,9 +192,9 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface
} }
if (strpos($this->standard, '/') !== false) { if (strpos($this->standard, '/') !== false) {
$standard = ' --standard='.$this->directory.$this->standard; $standard = ' --standard=' . $this->directory.$this->standard;
} else { } else {
$standard = ' --standard='.$this->standard; $standard = ' --standard=' . $this->standard;
} }
$suffixes = ''; $suffixes = '';
@ -221,7 +220,7 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface
throw new \Exception('Could not process the report generated by PHP Code Sniffer.'); 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']; $warnings = $data['totals']['warnings'];
foreach ($data['files'] as $fileName => $file) { foreach ($data['files'] as $fileName => $file) {