| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class NotTrashed implements Rule |
||
| 9 | { |
||
| 10 | protected $item; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Create a new rule instance. |
||
| 14 | * |
||
| 15 | * @param Item $item |
||
| 16 | */ |
||
| 17 | public function __construct(Item $item = null) |
||
| 18 | { |
||
| 19 | $this->item = $item; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Determine if the validation rule passes. |
||
| 24 | * |
||
| 25 | * @param string $attribute |
||
| 26 | * @param mixed $value |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public function passes($attribute, $value) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the validation error message. |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function message() |
||
| 44 | ); |
||
| 45 | } |
||
| 47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths