com php-src: Remove unncecessary parantheses: run-tests.php

From: Date: Sat, 09 Jun 2018 16:01:31 +0000
Subject: com php-src: Remove unncecessary parantheses: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102203@lists.php.net to get a copy of this message
Commit: 1b767ac26bd3cd404824bbcc88335c818bd2de9a Author: Nat Zimmermann <nat@ntzm.io> Sat, 9 Jun 2018 17:01:31 +0100 Parents: e5043d06c95c0bba2d4ce431a42de0c3066bdab6 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b767ac26bd3cd404824bbcc88335c818bd2de9a Log: Remove unncecessary parantheses Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index 1985272..4f40ca9 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; }

« previous php.cvs (#102203) next »