| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait AcceptsCustomFormat |
||
| 6 | { |
||
| 7 | /** @var null\Closure */ |
||
|
|
|||
| 8 | protected $format; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @return bool |
||
| 12 | */ |
||
| 13 | public function hasFormat() |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param \Closure $format |
||
| 20 | * |
||
| 21 | * @return BelongsTo |
||
| 22 | */ |
||
| 23 | public function renderAs(\Closure $format): self |
||
| 24 | { |
||
| 25 | $this->format = $format; |
||
| 26 | |||
| 27 | return $this; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $args |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | protected function callFormatter($args) |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
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