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