| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait PublicStatusTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Determine if a Model's 'public_status' is true. |
||
| 14 | * |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | public function isPublic(): bool |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Determine if a Model's 'public_status' is false. |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function isPrivate(): bool |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Update a Model's 'public_status' attribute. |
||
| 34 | * |
||
| 35 | * - if a $status is not provided, the $status_id is automatically changed |
||
| 36 | * |
||
| 37 | * @param int|null $status |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function updatePublicStatus(int $status = null): bool |
||
| 47 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.