| Conditions | 2 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | protected function importConfigAndData(): void |
||
| 24 | { |
||
| 25 | // todo REFAC DataObject[] |
||
| 26 | $this->config = Yaml::parseFile(self::CONFIG_PRESSE); |
||
|
1 ignored issue
–
show
|
|||
| 27 | $skipFromFile = file( |
||
| 28 | self::SKIP_DOMAIN_FILENAME, |
||
|
1 ignored issue
–
show
|
|||
| 29 | FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES |
||
| 30 | ); |
||
| 31 | $this->skip_domain = $skipFromFile ?: []; |
||
|
1 ignored issue
–
show
|
|||
| 32 | |||
| 33 | $this->publisherData['newspaper'] = json_decode(file_get_contents(self::CONFIG_NEWSPAPER_JSON), true, 512, JSON_THROW_ON_ERROR); |
||
|
2 ignored issues
–
show
|
|||
| 34 | $this->publisherData['scientific domain'] = json_decode( |
||
| 35 | file_get_contents(self::CONFIG_SCIENTIFIC_JSON), |
||
|
1 ignored issue
–
show
|
|||
| 36 | true, |
||
| 37 | 512, |
||
| 38 | JSON_THROW_ON_ERROR |
||
| 39 | ); |
||
| 40 | $this->publisherData['scientific wiki'] = json_decode( |
||
| 41 | file_get_contents(self::CONFIG_SCIENTIFIC_WIKI_JSON), |
||
|
1 ignored issue
–
show
|
|||
| 42 | true, |
||
| 43 | 512, |
||
| 44 | JSON_THROW_ON_ERROR |
||
| 45 | ); |
||
| 100 | } |