| Total Complexity | 9 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | class Hook extends TypesHook |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param $row |
||
| 17 | * @param $column DatetimeModel |
||
|
|
|||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | public function indexRender($row, $column) |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | public function assignment($value, $column) |
||
| 30 | { |
||
| 31 | if($column->getFormat()) { |
||
| 32 | $date = date_create_from_format($column->getFormat(), $value); |
||
| 33 | return $date ? $date->format('Y-m-d') : $value; |
||
| 34 | } else { |
||
| 35 | return $value; |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | public function detailRender($row, $column) |
||
| 40 | { |
||
| 41 | return $this->indexRender($row, $column); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function filterQuery($query, $column, $value) |
||
| 54 | } |
||
| 55 | |||
| 56 | } |
||
| 57 |
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