| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ShopItemRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Find the latest shop items for the sidebar. |
||
| 11 | * |
||
| 12 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 13 | */ |
||
| 14 | public static function sidebar(): Collection |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create the new article and save it. |
||
| 21 | * |
||
| 22 | * @param array $data The data used to create the shop item. |
||
| 23 | * |
||
| 24 | * @return \Xetaravel\Models\ShopItem |
||
| 25 | */ |
||
| 26 | public static function create(array $data): ShopItem |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Update the shop item data and save it. |
||
| 32 | * |
||
| 33 | * @param array $data The data used to update the shop item. |
||
| 34 | * @param \Xetaravel\Models\ShopItem $item The shop item to update. |
||
| 35 | * |
||
| 36 | * @return \Xetaravel\Models\ShopItem |
||
| 37 | */ |
||
| 38 | public static function update(array $data, ShopItem $item): ShopItem |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.