Skip to content

Commit 4aebd78

Browse files
committed
Merge branch 'avoid_duplicate_class_names' of github.com:pataar/laravel-ide-helper into avoid_duplicate_class_names
2 parents b10515b + 5fa5f31 commit 4aebd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ public function getPropertiesFromMethods($model)
729729
$pivot = $this->getClassNameInDestinationFile($model, $pivot);
730730

731731
if ($existingPivot = ($this->properties[$relationObj->getPivotAccessor()] ?? null)) {
732-
if(!str_contains($existingPivot['type'], $pivot . '|')) {
732+
if (!str_contains($existingPivot['type'], $pivot . '|')) {
733733
// If the pivot is already set, we need to append the type to it
734734
$pivot .= '|' . $existingPivot['type'];
735735
} else {

0 commit comments

Comments
 (0)