summaryrefslogtreecommitdiff
path: root/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-01-25 04:02:42 -0200
committerNikita Popov <nikita.ppv@gmail.com>2018-01-26 22:19:08 +0100
commitc0ef58e9fe78e9d982d48983386763f9d34088bb (patch)
tree8ee2a2bea8551165c08461515165356b08b75305 /scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php
parente061a4e9e4647e73d799c8d8b4c02e1441411c18 (diff)
downloadphp-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.php12
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
+?>