@@ -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)]); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function deleteCacheFiles() |
41 | 41 | { |
42 | - if (! $this->cacheFolder) { |
|
42 | + if (!$this->cacheFolder) { |
|
43 | 43 | throw new Exception('Cache Folder is not defined : you can\'t delete cache files'); |
44 | 44 | } |
45 | 45 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function getCacheManager() |
57 | 57 | { |
58 | - if (! $this->cacheFolder) { |
|
58 | + if (!$this->cacheFolder) { |
|
59 | 59 | return null; |
60 | 60 | } |
61 | 61 |
@@ -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 |
@@ -88,7 +88,7 @@ |
||
88 | 88 | public function extractResults() |
89 | 89 | { |
90 | 90 | for ($this->page = 1; $this->page <= $this->nbrPage; ++$this->page) { |
91 | - if (! isset($url)) {// On génère l'url pour la première requète... Ensuite, on utilisera le lien Suivant. |
|
91 | + if (!isset($url)) {// On génère l'url pour la première requète... Ensuite, on utilisera le lien Suivant. |
|
92 | 92 | $url = $this->generateGoogleSearchUrl(); |
93 | 93 | } |
94 | 94 |