Passed
Push — 2.x ( a6612a...ac5abc )
by Terry
02:22
created
src/Firewall/Driver/SqliteDriver.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
         parent::__construct($pdo, $debug);
28 28
     }
29 29
 
30
-      /**
31
-     * Create SQL tables that Shieldon needs.
32
-     *
33
-     * @return bool
34
-     */
30
+        /**
31
+         * Create SQL tables that Shieldon needs.
32
+         *
33
+         * @return bool
34
+         */
35 35
     protected function installSql(): bool
36 36
     {
37 37
         try {
Please login to merge, or discard this patch.
src/Firewall/Component/Ip.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $ip = $ipData[0];
258 258
         $cidr = (int) $ipData[1] ?? 32;
259 259
 
260
-		$result[0] = long2ip((ip2long($ip)) & ((-1 << (32 - $cidr))));
260
+        $result[0] = long2ip((ip2long($ip)) & ((-1 << (32 - $cidr))));
261 261
         $result[1] = long2ip((ip2long($ip)) + pow(2, (32 - $cidr)) - 1);
262 262
 
263 263
         if ($isDecimal) {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             $result[1] = ip2long($result[1]);
266 266
         }
267 267
 
268
-		return $result;
268
+        return $result;
269 269
     }
270 270
 
271 271
     /**
Please login to merge, or discard this patch.
src/Firewall/Driver/SqlDriverProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         return $this->{$method}($ip);
97 97
     }
98 98
 
99
-   /**
99
+    /**
100 100
      * {@inheritDoc}
101 101
      */
102 102
     protected function doFetchAll(string $type = 'filter'): array
Please login to merge, or discard this patch.
src/Firewall/Panel/ConfigMethodsTrait.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
  */
36 36
 trait ConfigMethodsTrait
37 37
 {
38
-     /**
39
-     * Parse the POST fields and set them into configuration data structure.
40
-     * Used for saveConfig method only.
41
-     *
42
-     * @param array $postParams
43
-     *
44
-     * @return void
45
-     */
38
+        /**
39
+         * Parse the POST fields and set them into configuration data structure.
40
+         * Used for saveConfig method only.
41
+         *
42
+         * @param array $postParams
43
+         *
44
+         * @return void
45
+         */
46 46
     protected function saveConfigPrepareSettings(array $postParams): void
47 47
     {
48 48
         foreach ($postParams as $postKey => $postData) {
Please login to merge, or discard this patch.
src/Firewall/Kernel/SessionTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  */
23 23
 trait SessionTrait
24 24
 {
25
-   /**
25
+    /**
26 26
      * Are you willing to limit the online session amount?
27 27
      *
28 28
      * @var array
Please login to merge, or discard this patch.
src/Firewall/Log/ActionLogger.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -224,13 +224,13 @@
 block discarded – undo
224 224
     }
225 225
 
226 226
 /**
227
-     * Get data from log file.
228
-     *
229
-     * @param string $fromYmd The string in Ymd Date format.
230
-     * @param string $toYmd   The end date.
231
-     *
232
-     * @return array
233
-     */
227
+ * Get data from log file.
228
+ *
229
+ * @param string $fromYmd The string in Ymd Date format.
230
+ * @param string $toYmd   The end date.
231
+ *
232
+ * @return array
233
+ */
234 234
     private function getDataFromSingleDate(string $fromYmd = '', string $toYmd = ''): array
235 235
     {
236 236
         $results = [];
Please login to merge, or discard this patch.
src/Firewall/Firewall/Captcha/CaptchaFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         // If the class doesn't exist.
52 52
         if (!file_exists(__DIR__ . '/' . self::getCamelCase($type) . '.php')) {
53
-   //         return false;
53
+    //         return false;
54 54
         }
55 55
 
56 56
         return true;
Please login to merge, or discard this patch.