Skip to content

Commit 3de36b9

Browse files
committed
Fix formatting
1 parent b709166 commit 3de36b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Console/ModelsCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ protected function getAttributeReturnType(Model $model, \ReflectionMethod $refle
11421142
->filter()
11431143
->map(function ($type) {
11441144
if ($type instanceof \ReflectionUnionType) {
1145-
$types =collect($type->getTypes())
1145+
$types = collect($type->getTypes())
11461146
/** @var ReflectionType $reflectionType */
11471147
->map(function ($reflectionType) {
11481148
return collect($this->extractReflectionTypes($reflectionType));
@@ -1230,7 +1230,7 @@ protected function getReturnTypeFromReflection(\ReflectionMethod $reflection): ?
12301230
$type = implode('|', $types);
12311231

12321232
if ($returnType->allowsNull()) {
1233-
$type .='|null';
1233+
$type .= '|null';
12341234
}
12351235

12361236
return $type;
@@ -1472,10 +1472,10 @@ protected function getParamType(\ReflectionMethod $method, \ReflectionParameter
14721472
$type = implode('|', $types);
14731473

14741474
if ($paramType->allowsNull()) {
1475-
if (count($types)==1) {
1475+
if (count($types) == 1) {
14761476
$type = '?' . $type;
14771477
} else {
1478-
$type .='|null';
1478+
$type .= '|null';
14791479
}
14801480
}
14811481

@@ -1552,7 +1552,7 @@ protected function extractReflectionTypes(ReflectionType $reflection_type)
15521552
} else {
15531553
$types = [];
15541554
foreach ($reflection_type->getTypes() as $named_type) {
1555-
if ($named_type->getName()==='null') {
1555+
if ($named_type->getName() === 'null') {
15561556
continue;
15571557
}
15581558

0 commit comments

Comments
 (0)