diff options
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 +?> |