Passed
Push — 2.x ( b39b75...fea0f7 )
by Terry
01:57
created
src/Firewall/Panel/BaseController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             define('SHIELDON_VIEW', true);
175 175
         }
176 176
 
177
-        $viewFilePath =  __DIR__ . '/../../../templates/' . $page . '.php';
177
+        $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php';
178 178
     
179 179
         if (!empty($data)) {
180 180
             extract($data);
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
                     } else {
526 526
                         if (is_numeric($postData)) {
527 527
                             $this->setConfig(str_replace('__', '.', $postKey), (int) $postData);
528
-                        } else  {
528
+                        } else {
529 529
                             $this->setConfig(str_replace('__', '.', $postKey), $postData);
530 530
                         }
531 531
                     }
@@ -611,10 +611,10 @@  discard block
 block discarded – undo
611 611
                 // Create default log files.
612 612
                 if (is_writable($iptablesWatchingFolder)) {
613 613
                     fopen($iptablesWatchingFolder . '/iptables_queue.log', 'w+');
614
-                    fopen($iptablesWatchingFolder . '/ipv4_status.log',    'w+');
615
-                    fopen($iptablesWatchingFolder . '/ipv6_status.log',    'w+');
616
-                    fopen($iptablesWatchingFolder . '/ipv4_command.log',   'w+');
617
-                    fopen($iptablesWatchingFolder . '/ipv6_command.log',   'w+');
614
+                    fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+');
615
+                    fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+');
616
+                    fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+');
617
+                    fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+');
618 618
                 }
619 619
             }
620 620
     
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
                             (string) $db['user'],
662 662
                             (string) $db['pass']
663 663
                         );
664
-                    } catch(PDOException $e) {
664
+                    } catch (PDOException $e) {
665 665
                         $result = false;
666 666
                         $this->pushMessage('error', 
667 667
                             __(
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
                 if (class_exists('PDO')) {
705 705
                     try {
706 706
                         $pdo = new PDO('sqlite:' . $sqliteFilePath);
707
-                    } catch(PDOException $e) {
707
+                    } catch (PDOException $e) {
708 708
                         $result = false;
709 709
                         $this->pushMessage('error', $e->getMessage());
710 710
                     }
@@ -737,9 +737,9 @@  discard block
 block discarded – undo
737 737
                         $redis = new Redis();
738 738
                         $redis->connect(
739 739
                             (string) $this->getConfig('drivers.redis.host'), 
740
-                            (int)    $this->getConfig('drivers.redis.port')
740
+                            (int) $this->getConfig('drivers.redis.port')
741 741
                         );
742
-                    } catch(RedisException $e) {
742
+                    } catch (RedisException $e) {
743 743
                         $result = false;
744 744
                         $this->pushMessage('error', $e->getMessage());
745 745
                     }
Please login to merge, or discard this patch.
templates/panel/template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 if (
98 98
     isset($_SERVER['HTTP_HOST']) && 
99 99
     strpos($_SERVER['HTTP_HOST'], 'project.lo') !== false
100
-)  {
100
+) {
101 101
     // `shieldon-doc.lo` is the virtual domain that Terry is using to design CSS for Firewall Panel UI.
102 102
     $staticSrc = 'http://shieldon-doc.lo/static';
103 103
 }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
                 </div>
331 331
             </div>
332 332
         </div>
333
-        <?php if (! empty($this->messages)) : ?>
333
+        <?php if (!empty($this->messages)) : ?>
334 334
         <div id="message-modal" class="modal fade" tabindex="-1" role="dialog">
335 335
             <div class="modal-dialog modal-dialog-centered modal-lightbox" role="document">
336 336
                 <div class="modal-content">
Please login to merge, or discard this patch.