Skip to content

Commit 6814156

Browse files
committed
Fix formatting
1 parent e513701 commit 6814156

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
@@ -1105,7 +1105,7 @@ protected function getAttributeReturnType(Model $model, \ReflectionMethod $refle
11051105
->filter()
11061106
->map(function ($type) {
11071107
if ($type instanceof \ReflectionUnionType) {
1108-
$types =collect($type->getTypes())
1108+
$types = collect($type->getTypes())
11091109
/** @var ReflectionType $reflectionType */
11101110
->map(function ($reflectionType) {
11111111
return collect($this->extractReflectionTypes($reflectionType));
@@ -1193,7 +1193,7 @@ protected function getReturnTypeFromReflection(\ReflectionMethod $reflection): ?
11931193
$type = implode('|', $types);
11941194

11951195
if ($returnType->allowsNull()) {
1196-
$type .='|null';
1196+
$type .= '|null';
11971197
}
11981198

11991199
return $type;
@@ -1425,10 +1425,10 @@ protected function getParamType(\ReflectionMethod $method, \ReflectionParameter
14251425
$type = implode('|', $types);
14261426

14271427
if ($paramType->allowsNull()) {
1428-
if (count($types)==1) {
1428+
if (count($types) == 1) {
14291429
$type = '?' . $type;
14301430
} else {
1431-
$type .='|null';
1431+
$type .= '|null';
14321432
}
14331433
}
14341434

@@ -1505,7 +1505,7 @@ protected function extractReflectionTypes(ReflectionType $reflection_type)
15051505
} else {
15061506
$types = [];
15071507
foreach ($reflection_type->getTypes() as $named_type) {
1508-
if ($named_type->getName()==='null') {
1508+
if ($named_type->getName() === 'null') {
15091509
continue;
15101510
}
15111511

0 commit comments

Comments
 (0)