Passed
Push — 2.x ( 3ffcc1...d9d5f3 )
by Terry
02:26
created
src/Firewall/Middleware/UserAgent.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
     protected $deniedList = [
41 41
 
42 42
         // Backlink crawlers
43
-        'Ahrefs',     // http://ahrefs.com/robot/
44
-        'roger',      // rogerbot (SEOMOZ)
45
-        'moz.com',    // SEOMOZ crawlers
46
-        'MJ12bot',    // Majestic crawlers
47
-        'findlinks',  // http://wortschatz.uni-leipzig.de/findlinks
48
-        'Semrush',    // http://www.semrush.com/bot.html
43
+        'Ahrefs', // http://ahrefs.com/robot/
44
+        'roger', // rogerbot (SEOMOZ)
45
+        'moz.com', // SEOMOZ crawlers
46
+        'MJ12bot', // Majestic crawlers
47
+        'findlinks', // http://wortschatz.uni-leipzig.de/findlinks
48
+        'Semrush', // http://www.semrush.com/bot.html
49 49
 
50 50
         // Web information crawlers
51
-        'domain',     // Domain name information crawlers.
52
-        'copyright',  // Copyright information crawlers.
51
+        'domain', // Domain name information crawlers.
52
+        'copyright', // Copyright information crawlers.
53 53
 
54 54
         // Others
55
-        'archive',    // Wayback machine
55
+        'archive', // Wayback machine
56 56
     ];
57 57
 
58 58
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function __construct(array $deniedList = [])
66 66
     {
67 67
         if (!empty($deniedList)) {
68
-            $this->deniedList =$deniedList;
68
+            $this->deniedList = $deniedList;
69 69
         }
70 70
     }
71 71
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
         if (!empty($this->deniedList)) {
89
-            if (preg_match('/(' . implode('|', $this->deniedList). ')/i', $userAgent)) {
89
+            if (preg_match('/(' . implode('|', $this->deniedList) . ')/i', $userAgent)) {
90 90
                 return (new Response)->withStatus(self::HTTP_STATUS_CODE);
91 91
             }
92 92
         }
Please login to merge, or discard this patch.
src/Firewall/Middleware/Header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function __construct(array $fieldList = [])
52 52
     {
53 53
         if (!empty($fieldList)) {
54
-            $this->fieldList =$fieldList;
54
+            $this->fieldList = $fieldList;
55 55
         }
56 56
     }
57 57
 
Please login to merge, or discard this patch.