Passed
Push — master ( d17b5e...1c1fe7 )
by Kris
01:36
created
lib/ApiDefintion.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
  */
29 29
 abstract class ApiDefintion
30 30
 {
31
-     /**
32
-     * AbuseIPDB API v2 Endpoint
33
-     * @var string $api_endpoint  
34
-     */
31
+        /**
32
+         * AbuseIPDB API v2 Endpoint
33
+         * @var string $api_endpoint  
34
+         */
35 35
     protected $aipdbApiEndpoint = 'https://api.abuseipdb.com/api/v2/'; 
36 36
 
37 37
     /**
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         // Open proxy, open relay, or Tor exit node.
68 68
         ['openproxy'       , '9', 'Open Proxy', true],        
69 69
 
70
-         // Comment/forum spam, HTTP referer spam, or other CMS spam.
71
-         ['webspam'         , '10', 'Web Spam', true],        
70
+            // Comment/forum spam, HTTP referer spam, or other CMS spam.
71
+            ['webspam'         , '10', 'Web Spam', true],        
72 72
 
73 73
         // Spam email content, infected attachments, and phishing emails. Note: Limit comments to only relevent
74 74
         // information (instead of log dumps) and be sure to remove PII if you want to remain anonymous.
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         // Abuse was targeted at an "Internet of Things" type device. Include 
118 118
         // information about what type of device was targeted in the comments.         
119 119
         ['oit'             , '23', 'IoT Targeted', true],     
120
-      ];
120
+        ];
121 121
 
122 122
     /**
123 123
      * Get the category id corresponding to given name
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             if ($cat[0] === $categoryName) {
134 134
                 return $cat;
135 135
             }
136
-         }
136
+            }
137 137
 
138 138
         // not found
139 139
         return false;
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
     public function getCategoryNameById(string $categoryId)
151 151
     {
152 152
         foreach ($this->aipdbApiCategories as $cat){
153
-           if ($cat[1] === $categoryId) {
154
-               return $cat;
155
-           }
153
+            if ($cat[1] === $categoryId) {
154
+                return $cat;
155
+            }
156 156
         }
157 157
 
158 158
         // not found
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             if ($cat[$index] === $value) {
179 179
                 return $i;
180 180
             }
181
-         }
181
+            }
182 182
 
183 183
         // not found
184 184
         return false;
Please login to merge, or discard this patch.