Skip to content

Commit 1b767ac

Browse files
committed
Remove unncecessary parantheses
1 parent e5043d0 commit 1b767ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

run-tests.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,11 @@ function save_or_mail_results()
908908
}
909909

910910
foreach ($test_dirs as $dir) {
911-
find_files(TEST_PHP_SRCDIR."/{$dir}", ($dir == 'ext'));
911+
find_files(TEST_PHP_SRCDIR."/{$dir}", $dir == 'ext');
912912
}
913913

914914
foreach ($user_tests as $dir) {
915-
find_files($dir, ($dir == 'ext'));
915+
find_files($dir, $dir == 'ext');
916916
}
917917

918918
function find_files($dir, $is_ext_dir = false, $ignore = false)
@@ -1028,7 +1028,7 @@ function mail_qa_team($data, $status = false)
10281028
{
10291029
$url_bits = parse_url(QA_SUBMISSION_PAGE);
10301030

1031-
if (($proxy = getenv('http_proxy'))) {
1031+
if ($proxy = getenv('http_proxy')) {
10321032
$proxy = parse_url($proxy);
10331033
$path = $url_bits['host'].$url_bits['path'];
10341034
$host = $proxy['host'];
@@ -2069,10 +2069,10 @@ function run_test($php, $file, $env)
20692069
$start = $end = $length;
20702070
}
20712071
// quote a non re portion of the string
2072-
$temp = $temp . preg_quote(substr($wanted_re, $startOffset, ($start - $startOffset)), '/');
2072+
$temp = $temp . preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
20732073
// add the re unquoted.
20742074
if ($end > $start) {
2075-
$temp = $temp . '(' . substr($wanted_re, $start+2, ($end - $start-2)). ')';
2075+
$temp = $temp . '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
20762076
}
20772077
$startOffset = $end + 2;
20782078
}

0 commit comments

Comments
 (0)