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