Passed
Push — master ( 3c5c71...77c285 )
by Kris
02:07
created
lib/ApiHandler.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function report(string $ip, string $categories, string $message): ApiResponse
94 94
     {
95
-         // ip must be set
95
+            // ip must be set
96 96
         if (empty($ip)){
97 97
             throw new \InvalidArgumentException('Ip was empty');
98 98
         }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
         // option
233 233
         if ($verbose){
234
-           $data['verbose'] = true;
234
+            $data['verbose'] = true;
235 235
         }
236 236
 
237 237
         return $this->apiRequest('check', $data, 'GET') ;
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
      * @access public
404 404
      * @param string      $message           The original message 
405 405
      *  
406
-	 * @return string
406
+     * @return string
407 407
      */
408 408
     public function cleanMessage(string $message): string
409 409
     {
Please login to merge, or discard this patch.
lib/ApiBase.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
         // Open proxy, open relay, or Tor exit node.
80 80
         ['openproxy'       , '9', 'Open Proxy', true],        
81 81
 
82
-         // Comment/forum spam, HTTP referer spam, or other CMS spam.
83
-         ['webspam'         , '10', 'Web Spam', true],        
82
+            // Comment/forum spam, HTTP referer spam, or other CMS spam.
83
+            ['webspam'         , '10', 'Web Spam', true],        
84 84
 
85 85
         // Spam email content, infected attachments, and phishing emails. Note: Limit comments to only relevent
86 86
         // information (instead of log dumps) and be sure to remove PII if you want to remain anonymous.
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             if ($cat[0] === $categoryName) {
160 160
                 return $cat;
161 161
             }
162
-         }
162
+            }
163 163
 
164 164
         // not found
165 165
         return false;
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
     public static function getCategoryNameById(string $categoryId)
178 178
     {
179 179
         foreach (self::$aipdbApiCategories as $cat){
180
-           if ($cat[1] === $categoryId) {
181
-               return $cat;
182
-           }
180
+            if ($cat[1] === $categoryId) {
181
+                return $cat;
182
+            }
183 183
         }
184 184
 
185 185
         // not found
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                 return $i;
205 205
             }
206 206
             $i++;
207
-         }
207
+            }
208 208
 
209 209
         // not found
210 210
         return false;
Please login to merge, or discard this patch.