1
0
Fork 0

Add no_useless_else in phpcs

pull/6921/head
Gabriel Caruso 2017-12-19 09:18:31 -02:00
parent 02fbbd5a42
commit 50045a7536
2 changed files with 7 additions and 6 deletions

View File

@ -39,6 +39,7 @@ return PhpCsFixer\Config::create()
'no_leading_namespace_whitespace' => true, 'no_leading_namespace_whitespace' => true,
'no_trailing_comma_in_singleline_array' => true, 'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true, 'no_unused_imports' => true,
'no_useless_else' => true,
'no_whitespace_in_blank_line' => true, 'no_whitespace_in_blank_line' => true,
'object_operator_without_whitespace' => true, 'object_operator_without_whitespace' => true,
'phpdoc_align' => true, 'phpdoc_align' => true,

View File

@ -243,13 +243,13 @@ class Perforce
} }
return null; return null;
} else {
$command = 'echo $' . $name;
$this->executeCommand($command);
$result = trim($this->commandResult);
return $result;
} }
$command = 'echo $' . $name;
$this->executeCommand($command);
$result = trim($this->commandResult);
return $result;
} }
public function queryP4Password() public function queryP4Password()