Code style fixes
This commit is contained in:
parent
644b5cacb3
commit
89817f456f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue