| Total Complexity | 1 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ShareToken extends DataObject |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private static $db = array( |
||
| 22 | 'Token' => 'Varchar(16)', |
||
| 23 | 'ValidForDays' => 'Int', |
||
| 24 | ); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | private static $has_one = array( |
||
| 30 | 'Page' => Page::class |
||
| 31 | ); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private static $table_name = 'ShareToken'; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Determines whether the token is still valid (from days since it was created). |
||
| 40 | * |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function isExpired() |
||
| 54 |
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