Skip to content

Commit 9563e80

Browse files
style(*): Pass through Phpcs fixer
1 parent 5f27af6 commit 9563e80

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/ApiCache.php

-2
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,8 @@ private function hit(string $ip): string
694694
}
695695

696696
/**
697-
* @param string $cacheScope
698697
* @param $value
699698
*
700-
* @return string
701699
* @throws InvalidArgumentException
702700
* @throws Exception
703701
*/

src/StandaloneBounce.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ public function init(array $configs, array $forcedConfigs = []): Bouncer
4646
session_start();
4747
}
4848
// Convert array of string to array of array with comparable IPs
49-
if(is_array(($configs['trust_ip_forward_array']))){
49+
if (\is_array(($configs['trust_ip_forward_array']))) {
5050
$forwardConfigs = $configs['trust_ip_forward_array'];
5151
$finalForwardConfigs = [];
52-
foreach($forwardConfigs as $forwardConfig){
53-
if(\is_string($forwardConfig)){
52+
foreach ($forwardConfigs as $forwardConfig) {
53+
if (\is_string($forwardConfig)) {
5454
$parsedString = Factory::parseAddressString($forwardConfig, 3);
55-
if(!empty($parsedString)){
55+
if (!empty($parsedString)) {
5656
$comparableValue = $parsedString->getComparableString();
5757
$finalForwardConfigs[] = [$comparableValue, $comparableValue];
5858
}
59-
} elseif (\is_array($forwardConfig)){
59+
} elseif (\is_array($forwardConfig)) {
6060
$finalForwardConfigs[] = $forwardConfig;
6161
}
6262
}

0 commit comments

Comments
 (0)