1 | <?php |
||
2 | |||
3 | namespace FamilyTree365\LaravelGedcom\Models; |
||
4 | |||
5 | use FamilyTree365\LaravelGedcom\Observers\EventActionsObserver; |
||
6 | use Illuminate\Database\Eloquent\SoftDeletes; |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | class PersonEvent extends Event |
||
9 | { |
||
10 | use SoftDeletes; |
||
11 | |||
12 | protected $dates = ['deleted_at']; |
||
13 | |||
14 | protected $table = 'person_events'; |
||
15 | |||
16 | protected $fillable = [ |
||
17 | 'person_id', |
||
18 | 'title', |
||
19 | 'type', |
||
20 | 'attr', |
||
21 | 'date', |
||
22 | 'created_date', |
||
23 | 'plac', |
||
24 | 'phon', |
||
25 | 'caus', |
||
26 | 'age', |
||
27 | 'agnc', |
||
28 | 'places_id', |
||
29 | 'description', |
||
30 | 'year', |
||
31 | 'month', |
||
32 | 'day', |
||
33 | ]; |
||
34 | |||
35 | protected $gedcom_event_names = [ |
||
36 | 'BIRT' => 'Birth', |
||
37 | 'DEAT' => 'Death', |
||
38 | ]; |
||
39 | |||
40 | public static function boot() |
||
41 | { |
||
42 | parent::boot(); |
||
43 | |||
44 | self::observe(new EventActionsObserver()); |
||
45 | } |
||
46 | |||
47 | public function person() |
||
48 | { |
||
49 | return $this->hasOne(Person::class, 'id', 'person_id'); |
||
50 | } |
||
51 | } |
||
52 |
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