diff options
| author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-01-25 04:02:42 -0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-01-26 22:19:08 +0100 |
| commit | c0ef58e9fe78e9d982d48983386763f9d34088bb (patch) | |
| tree | 8ee2a2bea8551165c08461515165356b08b75305 /scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php | |
| parent | e061a4e9e4647e73d799c8d8b4c02e1441411c18 (diff) | |
| download | php-git-c0ef58e9fe78e9d982d48983386763f9d34088bb.tar.gz | |
Simplify returns in generate-phpt
Diffstat (limited to 'scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php')
| -rw-r--r-- | scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php index 7495c73eca..0d2b6df7f5 100644 --- a/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php +++ b/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php @@ -5,17 +5,13 @@ * */ class gtIsSpecifiedFunctionOrMethod extends gtPreCondition { - + public function check( $clo) { - if($clo->hasOption('f') || $clo->hasOption('m')) { - - return true; - } - return false; + return $clo->hasOption('f') || $clo->hasOption('m'); } - + public function getMessage() { return gtText::get('functionOrMethodNotSpecified'); } } -?>
\ No newline at end of file +?> |
