Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class GoogleBooksWorker extends AbstractBotTaskWorker |
||
23 | { |
||
24 | const TASK_NAME = "Amélioration bibliographique : lien Google Books ⇒ {ouvrage}"; // 😎 |
||
25 | const SLEEP_AFTER_EDITION = 300; |
||
26 | protected $botFlag = false; |
||
27 | |||
28 | protected $modeAuto = true; |
||
29 | |||
30 | /** |
||
31 | * @param string $title |
||
32 | * @param string|null $text |
||
33 | * |
||
34 | * @return string|null |
||
35 | * @throws Throwable |
||
36 | */ |
||
37 | protected function processDomain(string $title, ?string $text): ?string |
||
52 |