SyncBurials   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 32
dl 0
loc 41
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 32 1
1
<?php
2
3
namespace App\Jobs\Geneanum\Tunisia;
4
5
use App\Jobs\Geneanum\Sync;
6
7
class SyncBurials extends Sync
8
{
9
    protected const AREA = 'Tunisia';
10
    protected const DATABASE = 'Burials';
11
    protected const URL = 'https://static.geneanum.com/libs/grid/tunisie_sepulture.php?&_search=false&nd=%s&rows=100&page=%s&sidx=nom&sord=asc';
12
13
    /**
14
     * @inheritDoc
15
     */
16
    protected function getFields(array $row): array
17
    {
18
        [
19
            $photos,
20
            $death_date,
21
            $town,
22
            $burial_date,
23
            $parish,
24
            $name,
25
            $first_name,
26
            $father_first_name,
27
            $mother_name,
28
            $mother_first_name,
29
            $spouse_name,
30
            $index,
31
            $observation,
32
        ] = $row['cell'];
33
34
        return [
35
            'photos' => $photos,
36
            'death_date' => $death_date,
37
            'town' => $town,
38
            'burial_date' => $burial_date,
39
            'parish' => $parish,
40
            'name' => $name,
41
            'first_name' => $first_name,
42
            'father_first_name' => $father_first_name,
43
            'mother_name' => $mother_name,
44
            'mother_first_name' => $mother_first_name,
45
            'spouse_name' => $spouse_name,
46
            'index' => $index,
47
            'observation' => $observation,
48
        ];
49
    }
50
}
51