@@ -122,8 +122,7 @@ |
||
| 122 | 122 | } |
| 123 | 123 | if (isset($this->summary->memo['count lien brisé'])) { |
| 124 | 124 | $suffix .= ', ⚠️️️lien brisé'; //⚠️ |
@@ -22,9 +22,9 @@ |
||
| 22 | 22 | include __DIR__.'/../myBootstrap.php'; |
| 23 | 23 | |
| 24 | 24 | $quota = new GoogleApiQuota(); |
| 25 | -dump('Google quota : '. $quota ->getCount()); |
|
| 25 | +dump('Google quota : '.$quota ->getCount()); |
|
| 26 | 26 | |
| 27 | -if( $quota->isQuotaReached() ) { |
|
| 27 | +if ($quota->isQuotaReached()) { |
|
| 28 | 28 | throw new \Exception("Google Books API quota reached => exit"); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | $row['id'], |
| 110 | 110 | $this->raw |
| 111 | 111 | ) |
| 112 | - );; |
|
| 112 | + ); ; |
|
| 113 | 113 | $this->queueAdapter->skipRow(intval($row['id'])); |
| 114 | 114 | sleep(10); |
| 115 | 115 | continue; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $this->pastAnalyzed = ($analyzed !== false) ? $analyzed : []; |
| 91 | 91 | |
| 92 | 92 | // @throw exception on "Invalid CSRF token" |
| 93 | - $this->run();//todo delete that and use (Worker)->run($duration) or process management |
|
| 93 | + $this->run(); //todo delete that and use (Worker)->run($duration) or process management |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | protected function setUpInConstructor(): void |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | dump($result); |
| 269 | - echo "Sleep ".(string)static::SLEEP_AFTER_EDITION."\n"; |
|
| 269 | + echo "Sleep ".(string) static::SLEEP_AFTER_EDITION."\n"; |
|
| 270 | 270 | sleep(static::SLEEP_AFTER_EDITION); |
| 271 | 271 | } |
| 272 | 272 | |