Skip to content

Commit

Permalink
composer fix-style
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-ide-helper authored and github-actions[bot] committed Oct 18, 2024
1 parent 37559ab commit 5ae9921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/ModelsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function getPropertiesFromMethods($model)
if (!in_array($pivot, [Pivot::class, MorphPivot::class])) {
$pivot = $this->getClassNameInDestinationFile($model, $pivot);

if(isset($customPivots[$relationObj->getPivotAccessor()])){
if (isset($customPivots[$relationObj->getPivotAccessor()])) {
$customPivots[$relationObj->getPivotAccessor()][] = $pivot;
} else {
$customPivots[$relationObj->getPivotAccessor()] = [$pivot];
Expand Down Expand Up @@ -781,7 +781,7 @@ public function getPropertiesFromMethods($model)
}
}

foreach($customPivots as $pivotAccessor => $pivots){
foreach ($customPivots as $pivotAccessor => $pivots) {
$this->setProperty(
$pivotAccessor,
implode('|', $pivots) . '|null',
Expand Down

0 comments on commit 5ae9921

Please # to comment.