From 37ab960266b6b2ac0481f77cadc7d744ae4b5302 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 25 Aug 2017 16:28:08 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/testing.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/testing.php b/tests/testing.php index 2fc21d730..828335d7e 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -14,14 +14,15 @@ set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.r chdir(dirname(__FILE__).'/../'); require_once 'vendor/autoload.php'; - -if(!function_exists("readline")) { - function readline($prompt = null){ - if($prompt){ +if (!function_exists('readline')) { + function readline($prompt = null) + { + if ($prompt) { echo $prompt; } - $fp = fopen("php://stdin","r"); + $fp = fopen('php://stdin', 'r'); $line = rtrim(fgets($fp, 1024)); + return $line; } }