| Total Complexity | 7 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class Dateable implements BetweenDatesContract |
||
| 9 | { |
||
| 10 | public function getRange(): array |
||
| 15 | ]; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getFormattedStartDate(): string |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getFormattedEndDate(): string |
||
| 24 | { |
||
| 25 | return $this->getDateFormat()->apply($this->getEndDate()); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function getDateFormat(): Format |
||
|
|
|||
| 29 | { |
||
| 30 | return Format::YMD_HIS(); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function toArray() |
||
| 34 | { |
||
| 35 | return [ |
||
| 36 | 'start' => $this->getStartDate(), |
||
| 37 | 'end' => $this->getEndDate(), |
||
| 38 | 'format' => [ |
||
| 39 | 'start' => $this->getFormattedStartDate(), |
||
| 40 | 'end' => $this->getFormattedEndDate(), |
||
| 41 | ], |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function toJson($options = 0) |
||
| 46 | { |
||
| 47 | return json_encode($this->toArray(), $options); |
||
| 48 | } |
||
| 49 | |||
| 50 | public function jsonSerialize() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
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