Completed
Push — master ( 1768c8...189bb6 )
by Matthew
03:41
created
src/ServiceProvider/LogServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->getContainer()->singleton('Monolog\Logger', function () {
23
+        $this->getContainer()->singleton('Monolog\Logger', function() {
24 24
             $log = new Logger('app');
25 25
             $log->pushHandler(
26 26
                 new StreamHandler(__DIR__ . '/../../logs/app.log', Logger::DEBUG)
Please login to merge, or discard this patch.
src/Loader/Statistics/AlertStatisticsLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@
 block discarded – undo
88 88
             return $this->getFromRedis($masterRedisKey);
89 89
         }
90 90
 
91
-        $servers  = [1,10,13,17,25,1000,2000];
92
-        $zones    = [2,4,6,8];
93
-        $factions = ['vs','nc','tr','draw'];
91
+        $servers  = [1, 10, 13, 17, 25, 1000, 2000];
92
+        $zones    = [2, 4, 6, 8];
93
+        $factions = ['vs', 'nc', 'tr', 'draw'];
94 94
 
95 95
         $results = [];
96 96
         $this->setCacheExpireTime(3600); // 1 Hour
Please login to merge, or discard this patch.
src/Loader/Statistics/AbstractStatisticsLoader.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -75,33 +75,33 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function appendRedisKey($post, $redisKey)
77 77
     {
78
-        if (! empty($post['selects'])) {
78
+        if (!empty($post['selects'])) {
79 79
             $whereMD5 = md5($post['selects']);
80 80
             $redisKey .= "/select{$whereMD5}";
81 81
         }
82 82
 
83
-        if (! empty($post['wheres'])) {
83
+        if (!empty($post['wheres'])) {
84 84
             $whereMD5 = md5($post['wheres']);
85 85
             $redisKey .= "/where{$whereMD5}";
86 86
         }
87 87
 
88
-        if (! empty($post['whereIns'])) {
88
+        if (!empty($post['whereIns'])) {
89 89
             $whereInMD5 = md5($post['whereIns']);
90 90
             $redisKey .= "/whereIn{$whereInMD5}";
91 91
         }
92 92
 
93
-        if (! empty($post['orderBy'])) {
93
+        if (!empty($post['orderBy'])) {
94 94
             $orderMD5 = md5($post['orderBy']);
95 95
             $redisKey .= "/order{$orderMD5}";
96 96
         }
97
-        if (! empty($post['limit'])) {
97
+        if (!empty($post['limit'])) {
98 98
             // Enforce a max limit
99 99
             if ($post['limit'] > 50) {
100 100
                 $post['limit'] = 50;
101 101
             }
102 102
         }
103 103
 
104
-        if (empty($post['limit']) || ! isset($post['limit'])) {
104
+        if (empty($post['limit']) || !isset($post['limit'])) {
105 105
             $post['limit'] = 10;
106 106
         }
107 107
 
@@ -119,20 +119,20 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function processPostVars($post)
121 121
     {
122
-        if (! empty($post['wheres'])) {
122
+        if (!empty($post['wheres'])) {
123 123
             $return['wheres'] = json_decode($post['wheres'], true);
124 124
             $this->getLogDriver()->addDebug(json_encode($return['wheres']));
125 125
         }
126 126
 
127
-        if (! empty($post['whereIns'])) {
127
+        if (!empty($post['whereIns'])) {
128 128
             $return['whereIns'] = json_decode($post['whereIns'], true);
129 129
         }
130 130
 
131
-        if (! empty($post['orderBy'])) {
131
+        if (!empty($post['orderBy'])) {
132 132
             $return['orderBy'] = json_decode($post['orderBy'], true);
133 133
         }
134 134
 
135
-        if (empty($post['limit']) || ! isset($post['limit'])) {
135
+        if (empty($post['limit']) || !isset($post['limit'])) {
136 136
             $post['limit'] = 10;
137 137
         }
138 138
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function setupQueryObject($queryObject, $post)
158 158
     {
159
-        if (! empty($post['wheres'])) {
159
+        if (!empty($post['wheres'])) {
160 160
             foreach ($post['wheres'] as $key => $value) {
161 161
                 $queryObject->addWhere([
162 162
                     'col'   => $key,
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             }
166 166
         }
167 167
 
168
-        if (! empty($post['whereIns'])) {
168
+        if (!empty($post['whereIns'])) {
169 169
             foreach ($post['whereIns'] as $key => $value) {
170 170
                 // Escape strings manually, incase of player IDs etc
171 171
                 foreach ($value as $i => $val) {
@@ -181,16 +181,16 @@  discard block
 block discarded – undo
181 181
             }
182 182
         }
183 183
 
184
-        if (! empty($post['orderBy'])) {
184
+        if (!empty($post['orderBy'])) {
185 185
             $queryObject->setOrderBy(array_keys($post['orderBy'])[0]);
186 186
             $queryObject->setOrderByDirection(array_values($post['orderBy'])[0]);
187 187
         }
188 188
 
189
-        if (! empty($post['limit'])) {
189
+        if (!empty($post['limit'])) {
190 190
             $queryObject->setLimit($post['limit']);
191 191
         }
192 192
 
193
-        if (! empty($this->getFlags())) {
193
+        if (!empty($this->getFlags())) {
194 194
             // If there are some funky things we have to do, set them.
195 195
             $queryObject->setFlags($this->getFlags());
196 196
         }
Please login to merge, or discard this patch.