Passed
Push — master ( fa42da...3c5c71 )
by Kris
01:35
created
lib/ApiBase.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
         // Open proxy, open relay, or Tor exit node.
71 71
         ['openproxy'       , '9', 'Open Proxy', true],        
72 72
 
73
-         // Comment/forum spam, HTTP referer spam, or other CMS spam.
74
-         ['webspam'         , '10', 'Web Spam', true],        
73
+            // Comment/forum spam, HTTP referer spam, or other CMS spam.
74
+            ['webspam'         , '10', 'Web Spam', true],        
75 75
 
76 76
         // Spam email content, infected attachments, and phishing emails. Note: Limit comments to only relevent
77 77
         // information (instead of log dumps) and be sure to remove PII if you want to remain anonymous.
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             if ($cat[0] === $categoryName) {
148 148
                 return $cat;
149 149
             }
150
-         }
150
+            }
151 151
 
152 152
         // not found
153 153
         return false;
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
     public function getCategoryNameById(string $categoryId)
165 165
     {
166 166
         foreach ($this->aipdbApiCategories as $cat){
167
-           if ($cat[1] === $categoryId) {
168
-               return $cat;
169
-           }
167
+            if ($cat[1] === $categoryId) {
168
+                return $cat;
169
+            }
170 170
         }
171 171
 
172 172
         // not found
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 return $i;
191 191
             }
192 192
             $i++;
193
-         }
193
+            }
194 194
 
195 195
         // not found
196 196
         return false;
Please login to merge, or discard this patch.
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.