Passed
Push — master ( 489f9e...c62eb9 )
by Dmitry
02:07
created
src/config/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     ]),
30 30
     'container' => [
31 31
         'singletons' => [
32
-            \hiqdev\hiart\ConnectionInterface::class => function () {
32
+            \hiqdev\hiart\ConnectionInterface::class => function() {
33 33
                 return Yii::$app->get(Yii::$app->params['hiart.dbname']);
34 34
             },
35 35
         ],
Please login to merge, or discard this patch.
src/AbstractRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     public function createFullUri()
81 81
     {
82
-        return ($this->isFullUri($this->uri) ? '' : $this->getDb()->getBaseUri()) . $this->uri;
82
+        return ($this->isFullUri($this->uri) ? '' : $this->getDb()->getBaseUri()).$this->uri;
83 83
     }
84 84
 
85 85
     public function isFullUri($uri)
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $params = http_build_query($params, '', '&');
163 163
         }
164 164
         if (!empty($params)) {
165
-            $this->uri .= '?' . $params;
165
+            $this->uri .= '?'.$params;
166 166
         }
167 167
     }
168 168
 
Please login to merge, or discard this patch.
src/rest/QueryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
     {
25 25
         $auth = $this->db->getAuth();
26 26
         if (isset($auth['headerToken'])) {
27
-            $this->authHeaders['Authorization'] = 'token ' . $auth['headerToken'];
27
+            $this->authHeaders['Authorization'] = 'token '.$auth['headerToken'];
28 28
         }
29 29
         if (isset($auth['headerBearer'])) {
30
-            $this->authHeaders['Authorization'] = 'Bearer ' . $auth['headerBearer'];
30
+            $this->authHeaders['Authorization'] = 'Bearer '.$auth['headerBearer'];
31 31
         }
32 32
     }
33 33
 
Please login to merge, or discard this patch.
src/debug/Timing.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
         if (!empty($this->traces)) {
93 93
             $result .= Html::ul($this->traces, [
94 94
                 'class' => 'trace',
95
-                'item' => function ($trace) {
96
-                    return '<li>' . $this->panel->getTraceLine($trace) . '</li>';
95
+                'item' => function($trace) {
96
+                    return '<li>'.$this->panel->getTraceLine($trace).'</li>';
97 97
                 },
98 98
             ]);
99 99
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $uri = rtrim($this->request->getFullUri(), '?');
117 117
         $sign = strpos($uri, '?') === false ? '?' : '&';
118
-        $newTabUrl = rtrim($uri, '&') . $sign . $this->request->getBody();
118
+        $newTabUrl = rtrim($uri, '&').$sign.$this->request->getBody();
119 119
 
120 120
         return Html::a('to new tab', $newTabUrl, ['target' => '_blank']);
121 121
     }
Please login to merge, or discard this patch.
src/curl/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         } elseif ($this->getVersion() === '1.0') {
72 72
             $requestOptions[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0;
73 73
         } else {
74
-            throw new RequestErrorException('Request version "' . $this->getVersion() . '" is not support by cURL', $this);
74
+            throw new RequestErrorException('Request version "'.$this->getVersion().'" is not support by cURL', $this);
75 75
         }
76 76
 
77 77
         return ArrayHelper::merge($this->defaultOptions, $this->getDb()->config, $requestOptions, $options);
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 
11 11
 error_reporting(E_ALL);
12 12
 
13
-require_once __DIR__ . '/../vendor/autoload.php';
14
-require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
13
+require_once __DIR__.'/../vendor/autoload.php';
14
+require_once __DIR__.'/../vendor/yiisoft/yii2/Yii.php';
15 15
 
16 16
 use hiqdev\composer\config\Builder;
17 17
 use yii\console\Application;
Please login to merge, or discard this patch.
src/AbstractQueryBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
                 return $this->$method($operator, $condition);
177 177
             } else {
178
-                throw new InvalidParamException('Found unknown operator in query: ' . $operator);
178
+                throw new InvalidParamException('Found unknown operator in query: '.$operator);
179 179
             }
180 180
         } else {
181 181
             return $this->buildHashCondition($condition);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         foreach ($condition as $attribute => $value) {
189 189
             if (is_array($value)) { // IN condition
190 190
                 // $parts[] = [$attribute.'s' => join(',',$value)];
191
-                $parts[$attribute . 's'] = implode(',', $value);
191
+                $parts[$attribute.'s'] = implode(',', $value);
192 192
             } else {
193 193
                 $parts[$attribute] = $value;
194 194
             }
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 
200 200
     protected function buildLikeCondition($operator, $operands)
201 201
     {
202
-        return [$operands[0] . '_like' => $operands[1]];
202
+        return [$operands[0].'_like' => $operands[1]];
203 203
     }
204 204
 
205 205
     protected function buildIlikeCondition($operator, $operands)
206 206
     {
207
-        return [$operands[0] . '_ilike' => $operands[1]];
207
+        return [$operands[0].'_ilike' => $operands[1]];
208 208
     }
209 209
 
210 210
     protected function buildCompareCondition($operator, $operands)
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             throw new InvalidParamException("Operator '$operator' requires three operands.");
214 214
         }
215 215
 
216
-        return [$operands[0] . '_' . $operator => $operands[1]];
216
+        return [$operands[0].'_'.$operator => $operands[1]];
217 217
     }
218 218
 
219 219
     protected function buildAndCondition($operator, $operands)
@@ -260,9 +260,9 @@  discard block
 block discarded – undo
260 260
         }
261 261
 
262 262
         if ($not) {
263
-            $key = $column . '_ni'; // not in
263
+            $key = $column.'_ni'; // not in
264 264
         } else {
265
-            $key = $column . '_in';
265
+            $key = $column.'_in';
266 266
         }
267 267
 
268 268
         return [$key => $values];
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     {
285 285
         $key = array_shift($operands);
286 286
 
287
-        return [$key . '_' . $operator => reset($operands)];
287
+        return [$key.'_'.$operator => reset($operands)];
288 288
     }
289 289
 
290 290
     protected function buildCompositeInCondition($operator, $columns, $values)
Please login to merge, or discard this patch.
src/debug/DebugPanel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         return $this->render('summary', [
51 51
             'url'   => $this->getUrl(),
52 52
             'count' => count($timings),
53
-            'total' => number_format($total * 1000) . ' ms',
53
+            'total' => number_format($total * 1000).' ms',
54 54
         ]);
55 55
     }
56 56
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public function getViewPath()
125 125
     {
126 126
         if ($this->_viewPath === null) {
127
-            $this->_viewPath = dirname(__DIR__) . '/views/debug';
127
+            $this->_viewPath = dirname(__DIR__).'/views/debug';
128 128
         }
129 129
 
130 130
         return $this->_viewPath;
Please login to merge, or discard this patch.