@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | { |
| 338 | 338 | $country = $this->makeCountryFromString($country); |
| 339 | 339 | |
| 340 | - return $this->all()->filter(function ($item) use ($country) { |
|
| 340 | + return $this->all()->filter(function($item) use ($country) { |
|
| 341 | 341 | return $item['ip_address'] == $country || |
| 342 | 342 | $this->makeCountryFromString($this->getCountryFromIp($item['ip_address'])) == $country; |
| 343 | 343 | }); |
@@ -387,13 +387,13 @@ discard block |
||
| 387 | 387 | private function getNonDatabaseIps() |
| 388 | 388 | { |
| 389 | 389 | return array_merge_recursive( |
| 390 | - array_map(function ($ip) { |
|
| 390 | + array_map(function($ip) { |
|
| 391 | 391 | $ip['whitelisted'] = true; |
| 392 | 392 | |
| 393 | 393 | return $ip; |
| 394 | 394 | }, $this->formatIpArray($this->config->get('whitelist'))), |
| 395 | 395 | |
| 396 | - array_map(function ($ip) { |
|
| 396 | + array_map(function($ip) { |
|
| 397 | 397 | $ip['whitelisted'] = false; |
| 398 | 398 | |
| 399 | 399 | return $ip; |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | |
| 479 | 479 | private function formatIpArray($list) |
| 480 | 480 | { |
| 481 | - return array_map(function ($ip) { |
|
| 481 | + return array_map(function($ip) { |
|
| 482 | 482 | return ['ip_address' => $ip]; |
| 483 | 483 | }, $this->makeArrayOfIps($list)); |
| 484 | 484 | } |