@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * The promise waits until all the promises have been resolved or rejected |
48 | 48 | * and returns the results of each request. |
49 | 49 | * |
50 | - * @param \Illuminate\Support\Collection|array[] $parameters |
|
50 | + * @param Collection $parameters |
|
51 | 51 | * @return \Illuminate\Support\Collection|object[] |
52 | 52 | */ |
53 | 53 | public function purge(Collection $parameters) |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * The returned promise is fulfilled with a collection of results. |
69 | 69 | * |
70 | - * @param \Illuminate\Support\Collection|\GuzzleHttp\Promise\PromiseInterface[] $promises |
|
70 | + * @param Collection $promises |
|
71 | 71 | * @return \GuzzleHttp\Promise\PromiseInterface |
72 | 72 | */ |
73 | 73 | protected function settle(Collection $promises) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Put the body of the fulfilled promise into the results. |
88 | 88 | * |
89 | - * @param \Illuminate\Support\Collection|object[] $results |
|
89 | + * @param Collection $results |
|
90 | 90 | * @return \Closure |
91 | 91 | */ |
92 | 92 | protected function onFulfilled(Collection $results) |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Handle the rejected promise and put the errors into the results. |
101 | 101 | * |
102 | - * @param \Illuminate\Support\Collection|object[] $results |
|
102 | + * @param Collection $results |
|
103 | 103 | * @return \Closure |
104 | 104 | */ |
105 | 105 | protected function onRejected(Collection $results) |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Sebdesign\ArtisanCloudflare; |
4 | 4 | |
5 | -use GuzzleHttp\Promise; |
|
6 | -use Psr\Log\LoggerInterface; |
|
7 | -use GuzzleHttp\Psr7\Response; |
|
8 | 5 | use GuzzleHttp\Client as GuzzleClient; |
9 | -use Illuminate\Support\Collection; |
|
10 | 6 | use GuzzleHttp\Exception\ClientException; |
11 | 7 | use GuzzleHttp\Exception\RequestException; |
8 | +use GuzzleHttp\Promise; |
|
9 | +use GuzzleHttp\Psr7\Response; |
|
10 | +use Illuminate\Support\Collection; |
|
11 | +use Psr\Log\LoggerInterface; |
|
12 | 12 | |
13 | 13 | class Client |
14 | 14 | { |
@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | * |
96 | 96 | * Use the config for each zone, unless options are passed in the command. |
97 | 97 | * |
98 | - * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones |
|
99 | - * @return \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] |
|
98 | + * @param Collection $zones |
|
99 | + * @return Collection |
|
100 | 100 | */ |
101 | 101 | private function applyParameters(Collection $zones) |
102 | 102 | { |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * Execute the purging operations and return each result. |
120 | 120 | * |
121 | - * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones |
|
122 | - * @return \Illuminate\Support\Collection|object[] |
|
121 | + * @param Collection $zones |
|
122 | + * @return Collection |
|
123 | 123 | */ |
124 | 124 | private function purge(Collection $zones) |
125 | 125 | { |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * Display a table with the results. |
141 | 141 | * |
142 | - * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones |
|
143 | - * @param \Illuminate\Support\Collection|object[] $results |
|
142 | + * @param Collection $zones |
|
143 | + * @param Collection $results |
|
144 | 144 | * @return void |
145 | 145 | */ |
146 | 146 | private function displayResults(Collection $zones, Collection $results) |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | /** |
230 | 230 | * Get the zone identifier from the input argument or the configuration. |
231 | 231 | * |
232 | - * @return \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] |
|
232 | + * @return Collection |
|
233 | 233 | */ |
234 | 234 | private function getZones() |
235 | 235 | { |