Skip to content

Commit 0feb2f0

Browse files
committed
Fix formatting
1 parent 0e93e1b commit 0feb2f0

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
@@ -1124,7 +1124,7 @@ protected function getAttributeReturnType(Model $model, \ReflectionMethod $refle
11241124
->filter()
11251125
->map(function ($type) {
11261126
if ($type instanceof \ReflectionUnionType) {
1127-
$types =collect($type->getTypes())
1127+
$types = collect($type->getTypes())
11281128
/** @var ReflectionType $reflectionType */
11291129
->map(function ($reflectionType) {
11301130
return collect($this->extractReflectionTypes($reflectionType));
@@ -1212,7 +1212,7 @@ protected function getReturnTypeFromReflection(\ReflectionMethod $reflection): ?
12121212
$type = implode('|', $types);
12131213

12141214
if ($returnType->allowsNull()) {
1215-
$type .='|null';
1215+
$type .= '|null';
12161216
}
12171217

12181218
return $type;
@@ -1453,10 +1453,10 @@ protected function getParamType(\ReflectionMethod $method, \ReflectionParameter
14531453
$type = implode('|', $types);
14541454

14551455
if ($paramType->allowsNull()) {
1456-
if (count($types)==1) {
1456+
if (count($types) == 1) {
14571457
$type = '?' . $type;
14581458
} else {
1459-
$type .='|null';
1459+
$type .= '|null';
14601460
}
14611461
}
14621462

@@ -1533,7 +1533,7 @@ protected function extractReflectionTypes(ReflectionType $reflection_type)
15331533
} else {
15341534
$types = [];
15351535
foreach ($reflection_type->getTypes() as $named_type) {
1536-
if ($named_type->getName()==='null') {
1536+
if ($named_type->getName() === 'null') {
15371537
continue;
15381538
}
15391539

0 commit comments

Comments
 (0)