Skip to content

Commit 67ffb72

Browse files
author
Ni Nelli
committed
chore: delete redundant code
refs: #204
1 parent 0cd7937 commit 67ffb72

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Generators/ModelGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public function prepareRelatedModels(): void
9090
// TODO: use ronasit/larabuilder instead regexp
9191
$fixedContent = preg_replace('/\}$/', "\n {$newRelation}\n}", $content);
9292

93-
// TODO: use ronasit/larabuilder instead regexp
9493
$this->insertImport($fixedContent, 'Illuminate\Database\Eloquent\Relations\\' . Str::ucfirst($types[$type]));
9594

9695
$this->insertPropertyAnnotation($fixedContent, $this->getRelationType($this->model, $types[$type]), $relationName);

0 commit comments

Comments
 (0)