Completed
Pull Request — master (#4)
by Yoshiaki
02:17
created
Checker.php 2 patches
Switch Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -56,25 +56,25 @@
 block discarded – undo
56 56
 
57 57
                 foreach(array_keys(self::$ipAddress) as $type) {
58 58
                     switch ($type) {
59
-                    case 'static':
60
-                        $result = array_filter(self::$ipAddress[$type], function($ipAddress) use($onPageIpAddress) {
61
-                            return in_array($ipAddress, $onPageIpAddress);
62
-                        });
63
-                        break;
64
-                    case 'regexp':
65
-                        $result = array_filter(self::$ipAddress[$type], function($regExp) use($onPageIpAddress) {
66
-                            $existsPatten = [];
67
-                            foreach ($onPageIpAddress as $ipAddress) {
68
-                                if (preg_match($regExp, $ipAddress) === 1) {
69
-                                    $existsPatten[] = $ipAddress;
59
+                        case 'static':
60
+                            $result = array_filter(self::$ipAddress[$type], function($ipAddress) use($onPageIpAddress) {
61
+                                return in_array($ipAddress, $onPageIpAddress);
62
+                            });
63
+                            break;
64
+                        case 'regexp':
65
+                            $result = array_filter(self::$ipAddress[$type], function($regExp) use($onPageIpAddress) {
66
+                                $existsPatten = [];
67
+                                foreach ($onPageIpAddress as $ipAddress) {
68
+                                    if (preg_match($regExp, $ipAddress) === 1) {
69
+                                        $existsPatten[] = $ipAddress;
70
+                                    }
70 71
                                 }
71
-                            }
72 72
 
73
-                            return count($existsPatten) !== 0;
74
-                        });
75
-                        break;
76
-                    default:
77
-                        throw new \InvalidArgumentException("invalid type");
73
+                                return count($existsPatten) !== 0;
74
+                            });
75
+                            break;
76
+                        default:
77
+                            throw new \InvalidArgumentException("invalid type");
78 78
                     }
79 79
 
80 80
                     if (count($result) !== 0) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
                 $onPageIpAddress = $matches['ipaddress'];
56 56
 
57
-                foreach(array_keys(self::$ipAddress) as $type) {
57
+                foreach (array_keys(self::$ipAddress) as $type) {
58 58
                     switch ($type) {
59 59
                     case 'static':
60 60
                         $result = array_filter(self::$ipAddress[$type], function($ipAddress) use($onPageIpAddress) {
Please login to merge, or discard this patch.