Passed
Push — master ( 6fa77a...f2e587 )
by Petr
02:58
created
Category
php-src/Bans/Factory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
 
95 95
     protected function emptyContent(Sources\ASources $sources): bool
96 96
     {
97
-        return empty( $sources->getRecords() );
97
+        return empty($sources->getRecords());
98 98
     }
99 99
 
100 100
     protected function containsIp4(Sources\ASources $sources): bool
101 101
     {
102
-        return empty( array_filter($sources->getRecords(), [$this, 'checkForNotIp4']) );
102
+        return empty(array_filter($sources->getRecords(), [$this, 'checkForNotIp4']));
103 103
     }
104 104
 
105 105
     public function checkForNotIp4(string $content): bool
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     protected function containsIp6(Sources\ASources $sources): bool
111 111
     {
112
-        return empty( array_filter($sources->getRecords(), [$this, 'checkForNotIp6']) );
112
+        return empty(array_filter($sources->getRecords(), [$this, 'checkForNotIp6']));
113 113
     }
114 114
 
115 115
     public function checkForNotIp6(string $content): bool
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
     protected function containsNames(Sources\ASources $sources): bool
121 121
     {
122
-        return empty( array_filter($sources->getRecords(), [$this, 'checkForNames']) );
122
+        return empty(array_filter($sources->getRecords(), [$this, 'checkForNames']));
123 123
     }
124 124
 
125 125
     /**
Please login to merge, or discard this patch.
php-src/Bans/AIP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $this->setLang($lang ?: new Translations());
27 27
         $this->setBasicIp(new Ip());
28
-        $this->knownIps = array_map(function ($row) {
28
+        $this->knownIps = array_map(function($row) {
29 29
             return $this->expandIP($row);
30 30
         }, $source->getRecords());
31 31
     }
Please login to merge, or discard this patch.