@@ -135,7 +135,7 @@ class PHP_CodeSniffer
135
135
* @var array
136
136
*/
137
137
private $ _tokenListeners = array ();
138
-
138
+
139
139
/**
140
140
* The editor path / command
141
141
*
@@ -394,6 +394,7 @@ public function setInteractive($interactive)
394
394
public function getEditorPath ()
395
395
{
396
396
return $ this ->editorPath ;
397
+
397
398
}//end getEditorPath()
398
399
399
400
@@ -407,6 +408,7 @@ public function getEditorPath()
407
408
public function setEditorPath ($ path )
408
409
{
409
410
$ this ->editorPath = $ path ;
411
+
410
412
}//end setEditorPath()
411
413
412
414
@@ -418,6 +420,7 @@ public function setEditorPath($path)
418
420
public function isEditorPathSet ()
419
421
{
420
422
return false === empty ($ this ->editorPath );
423
+
421
424
}//end isEditorPathSet()
422
425
423
426
@@ -1822,7 +1825,7 @@ public function processFile($file, $contents=null)
1822
1825
$ reportData = $ this ->reporting ->prepareFileReport ($ phpcsFile );
1823
1826
$ reportClass ->generateFileReport ($ reportData , $ phpcsFile , $ cliValues ['showSources ' ], $ cliValues ['reportWidth ' ]);
1824
1827
1825
- if ($ this ->isEditorPathSet ()) {
1828
+ if ($ this ->isEditorPathSet () === true ) {
1826
1829
echo '<ENTER> to recheck, [s] to skip, [o] to open in editor or [q] to quit : ' ;
1827
1830
} else {
1828
1831
echo '<ENTER> to recheck, [s] to skip or [q] to quit : ' ;
@@ -1838,7 +1841,7 @@ public function processFile($file, $contents=null)
1838
1841
exit (0 );
1839
1842
break ;
1840
1843
case 'o ' :
1841
- if ($ this ->isEditorPathSet ()) {
1844
+ if ($ this ->isEditorPathSet () === true ) {
1842
1845
exec ($ this ->getEditorPath ().' ' .$ file );
1843
1846
}
1844
1847
break ;
0 commit comments