@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | * @var ObjectType $object |
| 346 | 346 | */ |
| 347 | 347 | |
| 348 | - if (str_starts_with((string)$name, '__')) { |
|
| 348 | + if (str_starts_with((string) $name, '__')) { |
|
| 349 | 349 | // internal type |
| 350 | 350 | continue; |
| 351 | 351 | } |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | continue; |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | - $methodName = $this->getInflector()->pluralize(mb_strtolower((string)$name)); |
|
| 360 | + $methodName = $this->getInflector()->pluralize(mb_strtolower((string) $name)); |
|
| 361 | 361 | $this->class->addMethod($methodName) |
| 362 | 362 | ->setReturnType('\\Illuminate\\Database\\Eloquent\\Relations\\MorphToMany') |
| 363 | 363 | ->setPublic() |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | ->setPublic() |
| 418 | 418 | ->setReturnType('array') |
| 419 | 419 | ->addComment("Returns the media attribute (url) for the $collection") |
| 420 | - ->setBody( /** @lang PHP */ |
|
| 420 | + ->setBody(/** @lang PHP */ |
|
| 421 | 421 | <<< PHP |
| 422 | 422 | \$image = \$this->get{$collection}Models()->first(); |
| 423 | 423 | if (\$image) { |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | } else { |
| 470 | 470 | $this->methodRandom->addBody( |
| 471 | 471 | '$data["' . $lowerName . '_id"] = function () {' . "\n" . |
| 472 | - ' return factory(' . $targetClass . '::class)->create()->id;' . "\n" . |
|
| 472 | + ' return factory(' . $targetClass . '::class)->create()->id;' . "\n" . |
|
| 473 | 473 | '};' |
| 474 | 474 | ); |
| 475 | 475 | } |