Skip to content

Commit

Permalink
[PMakowski] squizlabs#2.5.1.x-dev: again matching PHPCS coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Makowski committed Mar 18, 2016
1 parent c58ea75 commit 42b9447
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CodeSniffer.php
Expand Up @@ -135,7 +135,7 @@ class PHP_CodeSniffer
* @var array
*/
private $_tokenListeners = array();

/**
* The editor path / command
*
Expand Down Expand Up @@ -394,6 +394,7 @@ public function setInteractive($interactive)
public function getEditorPath()
{
return $this->editorPath;

}//end getEditorPath()


Expand All @@ -407,6 +408,7 @@ public function getEditorPath()
public function setEditorPath($path)
{
$this->editorPath = $path;

}//end setEditorPath()


Expand All @@ -418,6 +420,7 @@ public function setEditorPath($path)
public function isEditorPathSet()
{
return false === empty($this->editorPath);

}//end isEditorPathSet()


Expand Down Expand Up @@ -1815,7 +1818,7 @@ public function processFile($file, $contents=null)
$reportData = $this->reporting->prepareFileReport($phpcsFile);
$reportClass->generateFileReport($reportData, $phpcsFile, $cliValues['showSources'], $cliValues['reportWidth']);

if ($this->isEditorPathSet()) {
if ($this->isEditorPathSet() === true) {
echo '<ENTER> to recheck, [s] to skip, [o] to open in editor or [q] to quit : ';
} else {
echo '<ENTER> to recheck, [s] to skip or [q] to quit : ';
Expand All @@ -1831,7 +1834,7 @@ public function processFile($file, $contents=null)
exit(0);
break;
case 'o':
if ($this->isEditorPathSet()) {
if ($this->isEditorPathSet() === true) {
exec($this->getEditorPath().' '.$file);
}
break;
Expand Down

0 comments on commit 42b9447

Please sign in to comment.