Code style fixes (DIRECTORY_SEPARATOR -> '/').

This commit is contained in:
Dmitry Khomutov 2018-03-08 10:31:31 +07:00
commit ba11827340
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
17 changed files with 50 additions and 46 deletions

View file

@ -9,7 +9,7 @@ use PHPCensor\Plugin;
/**
* PHP Lint Plugin - Provides access to PHP lint functionality.
*
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class Lint extends Plugin
@ -83,7 +83,11 @@ class Lint extends Plugin
if ($item->isFile() && $item->getExtension() == 'php' && !$this->lintFile($php, $itemPath)) {
$success = false;
} elseif ($item->isDir() && $this->recursive && !$this->lintDirectory($php, $itemPath . DIRECTORY_SEPARATOR)) {
} elseif (
$item->isDir() &&
$this->recursive &&
!$this->lintDirectory($php, ($itemPath . '/'))
) {
$success = false;
}