Skip to content

Commit 7394ee4

Browse files
author
Piotr Makowski
committed
[PMakowski] squizlabs#2.5.1.x-dev: again matching PHPCS coding standard
1 parent 65f3e04 commit 7394ee4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CodeSniffer.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class PHP_CodeSniffer
135135
* @var array
136136
*/
137137
private $_tokenListeners = array();
138-
138+
139139
/**
140140
* The editor path / command
141141
*
@@ -394,6 +394,7 @@ public function setInteractive($interactive)
394394
public function getEditorPath()
395395
{
396396
return $this->editorPath;
397+
397398
}//end getEditorPath()
398399

399400

@@ -407,6 +408,7 @@ public function getEditorPath()
407408
public function setEditorPath($path)
408409
{
409410
$this->editorPath = $path;
411+
410412
}//end setEditorPath()
411413

412414

@@ -418,6 +420,7 @@ public function setEditorPath($path)
418420
public function isEditorPathSet()
419421
{
420422
return false === empty($this->editorPath);
423+
421424
}//end isEditorPathSet()
422425

423426

@@ -1822,7 +1825,7 @@ public function processFile($file, $contents=null)
18221825
$reportData = $this->reporting->prepareFileReport($phpcsFile);
18231826
$reportClass->generateFileReport($reportData, $phpcsFile, $cliValues['showSources'], $cliValues['reportWidth']);
18241827

1825-
if ($this->isEditorPathSet()) {
1828+
if ($this->isEditorPathSet() === true) {
18261829
echo '<ENTER> to recheck, [s] to skip, [o] to open in editor or [q] to quit : ';
18271830
} else {
18281831
echo '<ENTER> to recheck, [s] to skip or [q] to quit : ';
@@ -1838,7 +1841,7 @@ public function processFile($file, $contents=null)
18381841
exit(0);
18391842
break;
18401843
case 'o':
1841-
if ($this->isEditorPathSet()) {
1844+
if ($this->isEditorPathSet() === true) {
18421845
exec($this->getEditorPath().' '.$file);
18431846
}
18441847
break;

0 commit comments

Comments
 (0)