Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | return 'Generate a set of static pages from URLs'; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param string $url |
||
26 | * @param int $priority |
||
27 | */ |
||
28 | protected function processUrl(string $url, int $priority): void |
||
29 | { |
||
30 | $meta = Publisher::singleton()->publishURL($url, true); |
||
31 | $meta = is_array($meta) ? $meta : []; |
||
32 | |||
33 | if (array_key_exists('success', $meta) && $meta['success']) { |
||
34 | $this->markUrlAsProcessed($url); |
||
35 | |||
36 | return; |
||
37 | } |
||
42 |