Skip to content

Commit

Permalink
PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Feb 29, 2024
1 parent 1193295 commit 398c55f
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 53 deletions.
5 changes: 3 additions & 2 deletions app/Models/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function scopePreparedWith(Builder $query): Builder
'entities',
'children' => function ($sub) {
$sub->select('id', 'tag_id');
}
},
]);
}

Expand Down Expand Up @@ -184,6 +184,7 @@ public function allChildren(bool $withTags = false)
foreach ($this->entities->pluck('id')->toArray() as $entity) {
$children[] = $entity;
}
// @phpstan-ignore-next-line
foreach ($this->descendants as $desc) {
foreach ($desc->entities()->pluck('entities.id')->toArray() as $entity) {
$children[] = $entity;
Expand Down Expand Up @@ -226,7 +227,7 @@ public function menuItems(array $items = []): array
$items['second']['tags'] = [
'name' => Module::plural($this->entityTypeId(), 'entities.tags'),
'route' => 'tags.tags',
'count' => $count
'count' => $count,
];
}
return parent::menuItems($items);
Expand Down
50 changes: 0 additions & 50 deletions public/build/assets/family-tree-vue-24250a29.js

This file was deleted.

50 changes: 50 additions & 0 deletions public/build/assets/family-tree-vue-7cb8710a.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"src": "resources/js/editors/summernote.js"
},
"resources/js/family-tree-vue.js": {
"file": "assets/family-tree-vue-24250a29.js",
"file": "assets/family-tree-vue-7cb8710a.js",
"imports": [
"__plugin-vue_export-helper-c420bb3b.js",
"_mitt-f7ef348c.js",
Expand Down

0 comments on commit 398c55f

Please sign in to comment.