Skip to content

Commit f6e26ac

Browse files
committed
Code Tweaks
1 parent 48e5b4f commit f6e26ac

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/LeanOrm/Model/CommonRecordCodeTrait.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,28 +110,6 @@ public function getDataAndRelatedData(): array {
110110
/** @psalm-suppress MixedArrayOffset */
111111
$data[$relation] = $this->related_data[$relation]->getDataAndRelatedData();
112112

113-
} elseif(\is_array($this->related_data[$relation])) {
114-
115-
/** @psalm-suppress MixedArrayOffset */
116-
$data[$relation] = [];
117-
118-
foreach ($this->related_data[$relation] as $record) {
119-
120-
if(
121-
$record instanceof Record
122-
|| $record instanceof ReadOnlyRecord
123-
) {
124-
// definitely an array of records
125-
/** @psalm-suppress MixedArrayOffset */
126-
$data[$relation][] = $record->getDataAndRelatedData();
127-
128-
} else {
129-
130-
/** @psalm-suppress MixedArrayOffset */
131-
$data[$relation][] = $record;
132-
}
133-
}
134-
135113
} else {
136114

137115
/** @psalm-suppress MixedArrayOffset */

0 commit comments

Comments
 (0)