| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | trait WherePublicStatus |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Scope query results to only results that are public. |
||
| 9 | * |
||
| 10 | * @param int $value |
||
| 11 | * @return $this |
||
| 12 | */ |
||
| 13 | public function wherePublic($value = 1) |
||
|
|
|||
| 14 | { |
||
| 15 | $this->where('public_status', '=', 1); |
||
| 16 | |||
| 17 | return $this; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Scope query results to only results that are private. |
||
| 22 | * |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | public function wherePrivate() |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.