summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2012-05-28 10:18:44 (GMT)
committerDavey Shafik <me@daveyshafik.com>2012-05-28 10:25:03 (GMT)
commit5ef46fe43c25996a8fd6eb8c513e4114569d79b6 (patch)
tree34ef2e0ea3527dedca7dab7f8913f1cf1d717438 /run-tests.php
parente2ebe6ce4ed9b149143949008f930007dfcb855f (diff)
downloadphp-5ef46fe43c25996a8fd6eb8c513e4114569d79b6.tar.gz
Fix boolean casting and whitespace (@dsp / #68)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/run-tests.php b/run-tests.php
index 4af9a4f..753e1dd 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -311,7 +311,7 @@ VALGRIND : " . ($leak_check ? $valgrind_header : 'Not used') . "
define('PHP_QA_EMAIL', 'qa-reports@lists.php.net');
define('QA_SUBMISSION_PAGE', 'http://qa.php.net/buildtest-process.php');
define('QA_REPORTS_PAGE', 'http://qa.php.net/reports');
-define('TRAVIS_CI' , !!getenv('TRAVIS_PHP_VERSION'));
+define('TRAVIS_CI' , (bool) getenv('TRAVIS_PHP_VERSION'));
function save_or_mail_results()
{
@@ -349,9 +349,9 @@ function save_or_mail_results()
}
/* Ask the user to provide an email address, so that QA team can contact the user */
- if (TRAVIS_CI) {
- $user_email = 'travis at php dot net';
- } elseif (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
+ if (TRAVIS_CI) {
+ $user_email = 'travis at php dot net';
+ } elseif (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
echo "\nPlease enter your email address.\n(Your address will be mangled so that it will not go out on any\nmailinglist in plain text): ";
flush();
$user_email = trim(fgets($fp, 1024));