| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function toArray($request): array |
||
| 20 | { |
||
| 21 | /** @var Tag $this */ |
||
| 22 | return [ |
||
| 23 | 'id' => $this->id, |
||
| 24 | 'name' => $this->name, |
||
| 25 | 'slug' => $this->slug instanceof Slug ? $this->slug->key : $this->slug, |
||
|
|
|||
| 26 | 'description' => $this->description, |
||
| 27 | 'posts_count' => $this->posts_count, |
||
| 28 | ]; |
||
| 31 |