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($url, $priority) |
||
29 | { |
||
30 | $meta = Publisher::singleton()->publishURL($url, true); |
||
31 | $meta = (is_array($meta)) ? $meta : []; |
||
32 | if (array_key_exists('success', $meta) && $meta['success']) { |
||
33 | $this->markUrlAsProcessed($url); |
||
34 | |||
35 | return; |
||
36 | } |
||
37 | |||
41 |