From 26d777796639165fa512fc0e97481b2d18431aba Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Fri, 10 Jul 2020 15:21:46 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Illuminate/Container/Util.php | 2 +- src/Illuminate/Support/Reflector.php | 2 +- tests/Support/SupportReflectorTest.php | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Container/Util.php b/src/Illuminate/Container/Util.php index 4a4d3b30a599..0b4bb1283467 100644 --- a/src/Illuminate/Container/Util.php +++ b/src/Illuminate/Container/Util.php @@ -55,7 +55,7 @@ public static function getParameterClassName($parameter) $name = $type->getName(); - if (!is_null($class = $parameter->getDeclaringClass())) { + if (! is_null($class = $parameter->getDeclaringClass())) { if ($name === 'self') { return $class->getName(); } diff --git a/src/Illuminate/Support/Reflector.php b/src/Illuminate/Support/Reflector.php index 4ab922d2a5c8..fb597f5141f1 100644 --- a/src/Illuminate/Support/Reflector.php +++ b/src/Illuminate/Support/Reflector.php @@ -23,7 +23,7 @@ public static function getParameterClassName($parameter) $name = $type->getName(); - if (!is_null($class = $parameter->getDeclaringClass())) { + if (! is_null($class = $parameter->getDeclaringClass())) { if ($name === 'self') { return $class->getName(); } diff --git a/tests/Support/SupportReflectorTest.php b/tests/Support/SupportReflectorTest.php index f9d80b5f10f8..55c4940f7543 100644 --- a/tests/Support/SupportReflectorTest.php +++ b/tests/Support/SupportReflectorTest.php @@ -10,7 +10,6 @@ use Illuminate\Support\Testing\Fakes\PendingMailFake; use PHPUnit\Framework\TestCase; use ReflectionClass; -use ReflectionParameter; class SupportReflectorTest extends TestCase { @@ -71,8 +70,7 @@ public function f(parent $x) } } -if (PHP_MAJOR_VERSION >= 8) -{ +if (PHP_MAJOR_VERSION >= 8) { eval(' namespace Illuminate\Tests\Support;