summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorNat Zimmermann <nat@ntzm.io>2018-06-09 17:01:31 +0100
committerNat Zimmermann <nat@ntzm.io>2018-06-09 17:01:31 +0100
commit1b767ac26bd3cd404824bbcc88335c818bd2de9a (patch)
tree4a6231d6d8daf54ee26765e2747449e110d98e45 /run-tests.php
parente5043d06c95c0bba2d4ce431a42de0c3066bdab6 (diff)
downloadphp-git-1b767ac26bd3cd404824bbcc88335c818bd2de9a.tar.gz
Remove unncecessary parantheses
Diffstat (limited to 'run-tests.php')
-rw-r--r--run-tests.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/run-tests.php b/run-tests.php
index 19852727de..4f40ca9277 100644
--- a/run-tests.php
+++ b/run-tests.php
@@ -908,11 +908,11 @@ foreach ($exts_to_test as $key => $val) {
}
foreach ($test_dirs as $dir) {
- find_files(TEST_PHP_SRCDIR."/{$dir}", ($dir == 'ext'));
+ find_files(TEST_PHP_SRCDIR."/{$dir}", $dir == 'ext');
}
foreach ($user_tests as $dir) {
- find_files($dir, ($dir == 'ext'));
+ find_files($dir, $dir == 'ext');
}
function find_files($dir, $is_ext_dir = false, $ignore = false)
@@ -1028,7 +1028,7 @@ function mail_qa_team($data, $status = false)
{
$url_bits = parse_url(QA_SUBMISSION_PAGE);
- if (($proxy = getenv('http_proxy'))) {
+ if ($proxy = getenv('http_proxy')) {
$proxy = parse_url($proxy);
$path = $url_bits['host'].$url_bits['path'];
$host = $proxy['host'];
@@ -2069,10 +2069,10 @@ COMMAND $cmd
$start = $end = $length;
}
// quote a non re portion of the string
- $temp = $temp . preg_quote(substr($wanted_re, $startOffset, ($start - $startOffset)), '/');
+ $temp = $temp . preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
// add the re unquoted.
if ($end > $start) {
- $temp = $temp . '(' . substr($wanted_re, $start+2, ($end - $start-2)). ')';
+ $temp = $temp . '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
}
$startOffset = $end + 2;
}