Skip to content

Commit d7817ec

Browse files
laravel-ide-helpergithub-actions[bot]
authored andcommitted
composer fix-style
1 parent 0831b7e commit d7817ec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Console/ModelsCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,13 +714,12 @@ public function getPropertiesFromMethods($model)
714714
if ($relationObj instanceof BelongsToMany) {
715715
$pivot = get_class($relationObj->newPivot());
716716
if (!in_array($pivot, [Pivot::class, MorphPivot::class])) {
717-
718717
$pivot = $this->getClassNameInDestinationFile($model, $pivot);
719718

720-
if($existingPivot = ($this->properties[$relationObj->getPivotAccessor()] ?? null)){
719+
if ($existingPivot = ($this->properties[$relationObj->getPivotAccessor()] ?? null)) {
721720
// If the pivot is already set, we need to append the type to it
722-
$pivot .= '|'. $existingPivot['type'];
723-
} else{
721+
$pivot .= '|' . $existingPivot['type'];
722+
} else {
724723
// pivots are not always set
725724
$pivot .= '|null';
726725
}

0 commit comments

Comments
 (0)