From 42b94477c27966394a422109d7a2be9eb57efdf1 Mon Sep 17 00:00:00 2001 From: Piotr Makowski Date: Wed, 16 Mar 2016 20:16:46 +0100 Subject: [PATCH] [PMakowski] #2.5.1.x-dev: again matching PHPCS coding standard --- CodeSniffer.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CodeSniffer.php b/CodeSniffer.php index 5ff8565de6..13cdf57416 100644 --- a/CodeSniffer.php +++ b/CodeSniffer.php @@ -135,7 +135,7 @@ class PHP_CodeSniffer * @var array */ private $_tokenListeners = array(); - + /** * The editor path / command * @@ -394,6 +394,7 @@ public function setInteractive($interactive) public function getEditorPath() { return $this->editorPath; + }//end getEditorPath() @@ -407,6 +408,7 @@ public function getEditorPath() public function setEditorPath($path) { $this->editorPath = $path; + }//end setEditorPath() @@ -418,6 +420,7 @@ public function setEditorPath($path) public function isEditorPathSet() { return false === empty($this->editorPath); + }//end isEditorPathSet() @@ -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 ' to recheck, [s] to skip, [o] to open in editor or [q] to quit : '; } else { echo ' to recheck, [s] to skip or [q] to quit : '; @@ -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;