Commit 57fbd4f5 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

CI: use phpcbf before commit

parent 9767ba67
Pipeline #17930 passed with stage
in 8 minutes and 16 seconds
......@@ -18,17 +18,17 @@ $url = "https://raw.githubusercontent.com/DISIC/sill/master/2020/sill-2020.csv";
$fileName = 'SILL_2020.csv';
$dataSrc = file_get_contents($url);
file_put_contents($fileName, $dataSrc); /* [0] => ID
[1] => nom
[2] => fonction
[3] => annees
[4] => statut
[5] => parent
[6] => public
[7] => support
[8] => similaire-a
[9] => wikidata
[10] => comptoir-du-libre
[11] => licence */
[1] => nom
[2] => fonction
[3] => annees
[4] => statut
[5] => parent
[6] => public
[7] => support
[8] => similaire-a
[9] => wikidata
[10] => comptoir-du-libre
[11] => licence */
// column numbers of the csv file
$numberOfFileFields = 17;
......@@ -71,8 +71,8 @@ if (($handle = fopen($fileName, "r")) !== false) {
foreach ($lineYears as $year) {
$year = trim($year);
if ($year !== '') {
$year = (int) $year;
$years[$year][$idComptoir] = $idWikidata;
$year = (int) $year;
$years[$year][$idComptoir] = $idWikidata;
}
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment