@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function isProxyValid(?string $proxy = null) |
| 23 | 23 | { |
| 24 | - $keywords = ['bateau', 'avion', 'navire', 'seconde', 'bac', 'piscine', 'fuser', 'place', 'homme', 'femme', 'quad', 'moto', 'velo', |
|
| 24 | + $keywords = ['bateau', 'avion', 'navire', 'seconde', 'bac', 'piscine', 'fuser', 'place', 'homme', 'femme', 'quad', 'moto', 'velo', |
|
| 25 | 25 | 'enfant', 'poilu', 'voiture', 'oiseau', 'singe', 'animaux', 'nature', 'paysage', 'jeux', 'maison', 'paysage', 'jardin', ]; |
| 26 | 26 | |
| 27 | 27 | $GoogleSerp = new Search($keywords[array_rand($keywords)]); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function extractResults() |
| 95 | 95 | { |
| 96 | 96 | for ($this->page = 1; $this->page <= $this->nbrPage; ++$this->page) { |
| 97 | - if (! isset($url)) {// On génère l'url pour la première requète... Ensuite, on utilisera le lien Suivant. |
|
| 97 | + if (!isset($url)) {// On génère l'url pour la première requète... Ensuite, on utilisera le lien Suivant. |
|
| 98 | 98 | $url = $this->generateGoogleSearchUrl(); |
| 99 | 99 | } |
| 100 | 100 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function extractResults() |
| 95 | 95 | { |
| 96 | 96 | for ($this->page = 1; $this->page <= $this->nbrPage; ++$this->page) { |
| 97 | - if (! isset($url)) {// On génère l'url pour la première requète... Ensuite, on utilisera le lien Suivant. |
|
| 97 | + if (!isset($url)) {// On génère l'url pour la première requète... Ensuite, on utilisera le lien Suivant. |
|
| 98 | 98 | $url = $this->generateGoogleSearchUrl(); |
| 99 | 99 | } |
| 100 | 100 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function deleteCacheFiles(): int |
| 44 | 44 | { |
| 45 | - if (! $this->cacheFolder) { |
|
| 45 | + if (!$this->cacheFolder) { |
|
| 46 | 46 | throw new Exception('Cache Folder is not defined : you can\'t delete cache files'); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | protected function getCacheManager(): ?SimpleCacheFile |
| 60 | 60 | { |
| 61 | - if (! $this->cacheFolder) { |
|
| 61 | + if (!$this->cacheFolder) { |
|
| 62 | 62 | return null; |
| 63 | 63 | } |
| 64 | 64 | |