Skip to content

Commit 5ef46fe

Browse files
committed
Fix boolean casting and whitespace (@dsp / #68)
1 parent e2ebe6c commit 5ef46fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

run-tests.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ function write_information($show_html)
311311
define('PHP_QA_EMAIL', '[email protected]');
312312
define('QA_SUBMISSION_PAGE', 'http://qa.php.net/buildtest-process.php');
313313
define('QA_REPORTS_PAGE', 'http://qa.php.net/reports');
314-
define('TRAVIS_CI' , !!getenv('TRAVIS_PHP_VERSION'));
314+
define('TRAVIS_CI' , (bool) getenv('TRAVIS_PHP_VERSION'));
315315

316316
function save_or_mail_results()
317317
{
@@ -349,9 +349,9 @@ function save_or_mail_results()
349349
}
350350

351351
/* Ask the user to provide an email address, so that QA team can contact the user */
352-
if (TRAVIS_CI) {
353-
$user_email = 'travis at php dot net';
354-
} elseif (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
352+
if (TRAVIS_CI) {
353+
$user_email = 'travis at php dot net';
354+
} elseif (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
355355
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): ";
356356
flush();
357357
$user_email = trim(fgets($fp, 1024));

0 commit comments

Comments
 (0)