| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | public function validate(): bool |
||
| 41 | { |
||
| 42 | if ($this->bot->minutesSinceLastEdit($this->title) < 10) { |
||
| 43 | // to improve : Gestion d'une repasse dans X jours |
||
| 44 | $this->log->notice( |
||
| 45 | sprintf( |
||
| 46 | "SKIP : édition humaine dans les dernières %s minutes.\n", |
||
| 47 | OuvrageEditWorker::DELAY_MINUTES_AFTER_HUMAN_EDIT |
||
| 48 | ) |
||
| 49 | ); |
||
| 50 | sleep(60 * OuvrageEditWorker::DELAY_MINUTES_AFTER_HUMAN_EDIT); // hack: waiting cycles |
||
| 51 | |||
| 52 | return false; |
||
| 53 | } |
||
| 54 | |||
| 55 | return true; |
||
| 56 | } |
||
| 57 | } |