| Total Complexity | 4 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class TrackSpam extends AbstractModel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The "booting" method of the model. |
||
| 15 | * |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | protected static function boot() |
||
| 19 | { |
||
| 20 | parent::boot(); |
||
| 21 | static::addGlobalScope(new CreatedOrderScope('desc')); |
||
| 22 | static::addGlobalScope(new IdOrderScope()); |
||
| 23 | } |
||
| 24 | |||
| 25 | protected $connection = 'mysql'; |
||
| 26 | protected $table = 'track_spam'; |
||
| 27 | protected $primaryKey = 'track_spam_id'; |
||
| 28 | |||
| 29 | protected $fillable = [ |
||
| 30 | 'track_spam_id', |
||
| 31 | 'request_token', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array Relationships that are always eager loaded |
||
| 36 | */ |
||
| 37 | protected $with = [ |
||
| 38 | 'tracking', |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Related TrackTraffic data. |
||
| 43 | * |
||
| 44 | * @return BelongsTo |
||
| 45 | */ |
||
| 46 | public function tracking() |
||
| 47 | { |
||
| 48 | return $this->belongsTo(TrackTraffic::class, 'request_token', 'request_token'); |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Retrieve the created_at in date format. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getCreatedAtDateAttribute(): string |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Retrieve the created_at in date format. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getCreatedAtTimeAttribute(): string |
||
| 71 |
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