Skip to content

Commit

Permalink
Apply fixes from StyleCI (#33501)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Jul 10, 2020
1 parent 5e5ff6a commit f073c08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Container/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Reflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 1 addition & 3 deletions tests/Support/SupportReflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Support\Testing\Fakes\PendingMailFake;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use ReflectionParameter;

class SupportReflectorTest extends TestCase
{
Expand Down Expand Up @@ -71,8 +70,7 @@ public function f(parent $x)
}
}

if (PHP_MAJOR_VERSION >= 8)
{
if (PHP_MAJOR_VERSION >= 8) {
eval('
namespace Illuminate\Tests\Support;
Expand Down

0 comments on commit f073c08

Please sign in to comment.