familytree365 /
laravel-gedcom
| 1 | <?php |
||
| 2 | |||
| 3 | namespace FamilyTree365\LaravelGedcom\Models; |
||
| 4 | |||
| 5 | use Illuminate\Database\Eloquent\Model; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | class Place extends Model |
||
| 8 | { |
||
| 9 | protected $fillable = ['description', 'title', 'date']; |
||
| 10 | |||
| 11 | public static function getIdByTitle($title) |
||
| 12 | { |
||
| 13 | $id = null; |
||
| 14 | if (empty($title)) { |
||
| 15 | return $id; |
||
| 16 | } |
||
| 17 | $place = self::query()->where('title', $title)->first(); |
||
| 18 | if ($place !== null) { |
||
| 19 | $id = $place->id; |
||
| 20 | } else { |
||
| 21 | $place = self::query()->create(compact('title')); |
||
| 22 | $id = $place->id; |
||
| 23 | } |
||
| 24 | |||
| 25 | return $id; |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
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