also looking at this
Apply fixes from StyleCI
#2
6 files
+31
-33
| @@ -2,12 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Cion\LaravelCloudflare\Commands\Cache; |
| 4 | 4 | |
| 5 | use Illuminate\Console\Command; | |
| 6 | 5 | use Cion\LaravelCloudflare\Client; |
| 6 | use Illuminate\Console\Command; | |
| 7 | 7 | use Illuminate\Support\Collection; |
| 8 | 8 | use Symfony\Component\Console\Helper\TableCell; |
| 9 | use Symfony\Component\HttpFoundation\ParameterBag; | |
| 10 | 9 | use Symfony\Component\Console\Helper\TableSeparator; |
| 10 | use Symfony\Component\HttpFoundation\ParameterBag; | |
| 11 | 11 | |
| 12 | 12 | class Purge extends Command |
| 13 | 13 | { |
| @@ -52,8 +52,8 @@ class Purge extends Command | ||
| 52 | 52 | /** |
| 53 | 53 | * Purge constructor. |
| 54 | 54 | * |
| 55 | * @param \Cion\LaravelCloudflare\Client $client | |
| 56 | * @param array $zones | |
| 55 | * @param \Cion\LaravelCloudflare\Client $client | |
| 56 | * @param array $zones | |
| 57 | 57 | */ |
| 58 | 58 | public function __construct(Client $client, array $zones) |
| 59 | 59 | { |
| @@ -95,7 +95,7 @@ class Purge extends Command | ||
| 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 | |
| 98 | * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones | |
| 99 | 99 | * @return \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] |
| 100 | 100 | */ |
| 101 | 101 | private function applyParameters(Collection $zones) |
| @@ -118,7 +118,7 @@ class Purge extends Command | ||
| 118 | 118 | /** |
| 119 | 119 | * Execute the purging operations and return each result. |
| 120 | 120 | * |
| 121 | * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones | |
| 121 | * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones | |
| 122 | 122 | * @return \Illuminate\Support\Collection|\stdClass[] |
| 123 | 123 | */ |
| 124 | 124 | private function purge(Collection $zones) |
| @@ -139,8 +139,8 @@ class Purge extends Command | ||
| 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|\stdClass[] $results | |
| 142 | * @param \Illuminate\Support\Collection|\Symfony\Component\HttpFoundation\ParameterBag[] $zones | |
| 143 | * @param \Illuminate\Support\Collection|\stdClass[] $results | |
| 144 | 144 | * @return void |
| 145 | 145 | */ |
| 146 | 146 | private function displayResults(Collection $zones, Collection $results) |
| @@ -198,7 +198,7 @@ class Purge extends Command | ||
| 198 | 198 | /** |
| 199 | 199 | * Format an array into a multiline string. |
| 200 | 200 | * |
| 201 | * @param array|null $items | |
| 201 | * @param array|null $items | |
| 202 | 202 | * @return string |
| 203 | 203 | */ |
| 204 | 204 | private function formatItems(array $items = null) |
| @@ -209,7 +209,7 @@ class Purge extends Command | ||
| 209 | 209 | /** |
| 210 | 210 | * Format the errors. |
| 211 | 211 | * |
| 212 | * @param \stdClass[] $errors | |
| 212 | * @param \stdClass[] $errors | |
| 213 | 213 | * @return string[] |
| 214 | 214 | */ |
| 215 | 215 | private function formatErrors(array $errors) |
| @@ -248,7 +248,7 @@ class Purge extends Command | ||
| 248 | 248 | /** |
| 249 | 249 | * Return 1 if all successes are false, otherwise return 0. |
| 250 | 250 | * |
| 251 | * @param \Illuminate\Support\Collection $results | |
| 251 | * @param \Illuminate\Support\Collection $results | |
| 252 | 252 | * @return int |
| 253 | 253 | */ |
| 254 | 254 | private function getExitCode(Collection $results) |