Passed
Branch dev (d97c1f)
by Kris
01:38
created
src/UtilsTrait.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     protected static function inArguments(array $arguments, string $shortArg, string $longArg)
93 93
     {
94
-          return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments);
94
+            return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments);
95 95
     }
96 96
 
97 97
     /** 
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @access public
101 101
      * @static
102
-	 * @param string    $filePath       The file's full path
103
-	 * @param bool      $throwError     Throw error on true or silent process. Default is true
102
+     * @param string    $filePath       The file's full path
103
+     * @param bool      $throwError     Throw error on true or silent process. Default is true
104 104
      *  
105
-	 * @return object|null 
105
+     * @return object|null 
106 106
      * @throws \Exception
107 107
      * @throws \LogicException
108 108
      */
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
     {
111 111
         // check file exists
112 112
         if (!file_exists($filePath) || !is_file($filePath)){
113
-           if ($throwError) {
113
+            if ($throwError) {
114 114
                 throw new \Exception('Config file not found');
115
-           }
116
-           return null;  
115
+            }
116
+            return null;  
117 117
         }
118 118
 
119 119
         // get and parse content
Please login to merge, or discard this patch.
src/AbuseIPDBClient.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -105,38 +105,38 @@
 block discarded – undo
105 105
 
106 106
         Console::log(' ' . Console::text('SYNOPSIS:', 'white', 'underline')); 
107 107
         Console::log(' ' . Console::text('    abuseipdb -C ') . 
108
-                           Console::text('IP', 'yellow') . 
109
-                           Console::text(' [-d ') . 
110
-                           Console::text('DAYS', 'yellow') . 
111
-                           Console::text('] [-v] [-l ') . 
112
-                           Console::text('LIMIT', 'yellow') . 
113
-                           Console::text(']')); 
108
+                            Console::text('IP', 'yellow') . 
109
+                            Console::text(' [-d ') . 
110
+                            Console::text('DAYS', 'yellow') . 
111
+                            Console::text('] [-v] [-l ') . 
112
+                            Console::text('LIMIT', 'yellow') . 
113
+                            Console::text(']')); 
114 114
 
115 115
         Console::log(' ' . Console::text('    abuseipdb -K ') . 
116
-                           Console::text('NETWORK', 'yellow') . 
117
-                           Console::text(' [-d ') . 
118
-                           Console::text('DAYS', 'yellow') . 
119
-                           Console::text(']')); 
116
+                            Console::text('NETWORK', 'yellow') . 
117
+                            Console::text(' [-d ') . 
118
+                            Console::text('DAYS', 'yellow') . 
119
+                            Console::text(']')); 
120 120
 
121 121
         Console::log(' ' . Console::text('    abuseipdb -R ' .
122
-                           Console::text('IP', 'yellow') . ' -c ' .
123
-                           Console::text('CATEGORIES', 'yellow') . ' -m ' .
124
-                           Console::text('MESSAGE', 'yellow'))); 
122
+                            Console::text('IP', 'yellow') . ' -c ' .
123
+                            Console::text('CATEGORIES', 'yellow') . ' -m ' .
124
+                            Console::text('MESSAGE', 'yellow'))); 
125 125
 
126 126
         Console::log(' ' . Console::text('    abuseipdb -V ' .
127
-                           Console::text('FILE', 'yellow')));
127
+                            Console::text('FILE', 'yellow')));
128 128
 
129 129
         Console::log(' ' . Console::text('    abuseipdb -E ' .
130
-                           Console::text('IP', 'yellow')));
130
+                            Console::text('IP', 'yellow')));
131 131
                            
132 132
         Console::log(' ' . Console::text('    abuseipdb -B ') . 
133
-                           Console::text('[-l ') . 
134
-                           Console::text('LIMIT', 'yellow') . 
135
-                           Console::text('] [-s ') . 
136
-                           Console::text('SCORE', 'yellow') . 
137
-                           Console::text('] [-p ') . 
138
-                           Console::text('', 'yellow') . 
139
-                           Console::text(']')); 
133
+                            Console::text('[-l ') . 
134
+                            Console::text('LIMIT', 'yellow') . 
135
+                            Console::text('] [-s ') . 
136
+                            Console::text('SCORE', 'yellow') . 
137
+                            Console::text('] [-p ') . 
138
+                            Console::text('', 'yellow') . 
139
+                            Console::text(']')); 
140 140
 
141 141
         Console::log(' ' . Console::text('    abuseipdb -L | -G | -h | --version'));
142 142
                            
Please login to merge, or discard this patch.
src/ShellUtils.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -386,7 +386,7 @@
 block discarded – undo
386 386
      */
387 387
     protected static function getNumericParameter(array $arguments, string $shortArg, string $longArg, int $defaultValue)
388 388
     {
389
-         if (self::inArguments($arguments,$shortArg, $longArg)){
389
+            if (self::inArguments($arguments,$shortArg, $longArg)){
390 390
             $val = self::getArgumentValue($arguments,$shortArg, $longArg);
391 391
 
392 392
             if (!is_numeric($val)){
Please login to merge, or discard this patch.
src/BulkReportTrait.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -64,16 +64,16 @@
 block discarded – undo
64 64
         Console::log(Console::text('   ' . $savedIcon, $savedColor) . self::printResult(' Saved reports:    ', $nbSavedReports, $savedColor, '', false));
65 65
     }
66 66
 
67
-     /**
68
-     * Print report errors
69
-     * 
70
-     * @access protected
71
-     * @static
72
-     * @param object    $response
73
-     * @param string    $fileName
74
-     * 
75
-     * @return void
76
-     */
67
+        /**
68
+         * Print report errors
69
+         * 
70
+         * @access protected
71
+         * @static
72
+         * @param object    $response
73
+         * @param string    $fileName
74
+         * 
75
+         * @return void
76
+         */
77 77
     protected static function printBulkReportErrors(object $response)
78 78
     {
79 79
         $nbErrorReports = isset($response->data->invalidReports) ? count($response->data->invalidReports) : 0;
Please login to merge, or discard this patch.
src/CheckTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                             
172 172
         $line  = Console::text('    →', $defaultColor);
173 173
         $line .= self::printResult(' reported at: ', self::getDate($report->reportedAt), $defaultColor, '', false);
174
-  //    $line .= self::printResult(' by user: ', $report->reporterId, $defaultColor, '', false);
174
+    //    $line .= self::printResult(' by user: ', $report->reporterId, $defaultColor, '', false);
175 175
         if (isset($report->reporterCountryCode) && isset($report->reporterCountryName)){
176 176
             $line .= Console::text(' from: ', 'white');
177 177
             $line .= self::printResult('', $report->reporterCountryCode, $defaultColor, '', false);
@@ -206,5 +206,5 @@  discard block
 block discarded – undo
206 206
             }
207 207
         }
208 208
         return $categories;                          
209
-   }    
209
+    }    
210 210
 }
211 211
\ No newline at end of file
Please login to merge, or discard this patch.