@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | // Now return the character the outfit injected |
| 78 | - if (! empty($character['data']['outfit'])) { |
|
| 78 | + if (!empty($character['data']['outfit'])) { |
|
| 79 | 79 | try { |
| 80 | 80 | $outfit = $this->getOutfit($character['data']['outfit']); |
| 81 | 81 | } catch (CensusErrorException $e) { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | // First, check if we have the character in Redis |
| 138 | 138 | $redisCheck = $this->getRedisUtility()->checkRedis('cache', 'character', $id); |
| 139 | 139 | |
| 140 | - if (! empty($redisCheck)) { |
|
| 140 | + if (!empty($redisCheck)) { |
|
| 141 | 141 | return $redisCheck; |
| 142 | 142 | } |
| 143 | 143 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | // First, check if we have the outfit in Redis |
| 187 | 187 | $redisCheck = $this->getRedisUtility()->checkRedis('cache', 'outfit', $id); |
| 188 | 188 | |
| 189 | - if (! empty($redisCheck)) { |
|
| 189 | + if (!empty($redisCheck)) { |
|
| 190 | 190 | return $redisCheck; |
| 191 | 191 | } |
| 192 | 192 | |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | ]; |
| 246 | 246 | |
| 247 | 247 | // Loop through each environment and get the first result |
| 248 | - foreach($environments as $env) { |
|
| 248 | + foreach ($environments as $env) { |
|
| 249 | 249 | $url = "https://census.daybreakgames.com/s:{$config['census_service_id']}/get/{$env}/{$endpoint}"; |
| 250 | 250 | |
| 251 | 251 | $req = $guzzle->request('GET', $url); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $alert = $this->alertRepo->readSingleById($id, 'primary', true); |
| 62 | 62 | |
| 63 | 63 | if (empty($force) && empty($alert)) { |
| 64 | - $output->writeln("ALERT {$id} DOES NOT EXIST!"); |
|
| 64 | + $output->writeln("alert {$id} DOES NOT EXIST!"); |
|
| 65 | 65 | return false; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $this->deleteAlert($id); |
| 107 | 107 | |
| 108 | 108 | if ($this->verbose === 1) { |
| 109 | - $output->writeln("Alert {$id} successfully deleted!"); |
|
| 109 | + $output->writeln("alert {$id} successfully deleted!"); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | return true; |
@@ -29,12 +29,12 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function validateTimeDifference($dates, int $maxDiff) |
| 31 | 31 | { |
| 32 | - if (! is_array($dates)) { |
|
| 32 | + if (!is_array($dates)) { |
|
| 33 | 33 | $dates = str_replace('\'', '', $dates); // Remove escaping quotes |
| 34 | 34 | $dates = explode(',', $dates); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - if (! is_array) { |
|
| 37 | + if (!is_array) { |
|
| 38 | 38 | throw new InvalidArgumentException('Somehow validateTimeDifference couldn\'t make a date array.'); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | protected $flag = 'NOT-USED'; |
| 13 | 13 | protected $misses = 0; |
| 14 | - protected $hits = 0; |
|
| 14 | + protected $hits = 0; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Sets the Redis Missed Flag |