| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | trait Attribute |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Return "status" attribute value. |
||
| 20 | * |
||
| 21 | * @return \App\Enum\OrderStatus |
||
| 22 | */ |
||
| 23 | public function getStatusAttribute(): OrderStatus |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Return "item_total_bundle_quantity" attribute value. |
||
| 30 | * |
||
| 31 | * @return int |
||
| 32 | */ |
||
| 33 | public function getItemTotalBundleQuantityAttribute($value): int |
||
|
|
|||
| 34 | { |
||
| 35 | return $this->items->sum->bundle_quantity; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Return "item_total" attribute value. |
||
| 40 | * |
||
| 41 | * @return float |
||
| 42 | */ |
||
| 43 | public function getItemTotalAttribute($value): float |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.