From f3a47f30ffcc44fe7938b29f798e1f3032fe7ac1 Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Fri, 8 Sep 2017 06:18:31 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/thinkphp/library/think/config/ConfigInitTrait.php | 4 ++-- tests/thinkphp/library/think/controllerTest.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/thinkphp/library/think/config/ConfigInitTrait.php b/tests/thinkphp/library/think/config/ConfigInitTrait.php index 0af031f9..ce2b3977 100644 --- a/tests/thinkphp/library/think/config/ConfigInitTrait.php +++ b/tests/thinkphp/library/think/config/ConfigInitTrait.php @@ -32,11 +32,11 @@ trait ConfigInitTrait public static function setUpBeforeClass() { - self::$internalConfigFoo = \Closure::bind(function($value = null) { + self::$internalConfigFoo = \Closure::bind(function ($value = null) { return !is_null($value) ? Config::$config = $value : Config::$config; }, null, '\\Think\\Config'); - self::$internalRangeFoo = \Closure::bind(function($value = null) { + self::$internalRangeFoo = \Closure::bind(function ($value = null) { return !is_null($value) ? Config::$range = $value : Config::$range; }, null, '\\Think\\Config'); diff --git a/tests/thinkphp/library/think/controllerTest.php b/tests/thinkphp/library/think/controllerTest.php index f75bf008..fba8d6c5 100644 --- a/tests/thinkphp/library/think/controllerTest.php +++ b/tests/thinkphp/library/think/controllerTest.php @@ -17,7 +17,6 @@ namespace tests\thinkphp\library\think; use ReflectionClass; -use think\Config; use think\Controller; use think\Request; use think\View;