From 5ef46fe43c25996a8fd6eb8c513e4114569d79b6 Mon Sep 17 00:00:00 2001 From: Davey Shafik Date: Mon, 28 May 2012 06:18:44 -0400 Subject: Fix boolean casting and whitespace (@dsp / #68) --- run-tests.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index 4af9a4f3a6..753e1ddc02 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)); -- cgit v1.2.1