Cancelled
Push — master ( 09ff16...d975cb )
by Dmitry
30:01 queued 30:01
created
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/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.
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.
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 Yiisoft\Composer\Config\Builder;
17 17
 use yii\console\Application;
Please login to merge, or discard this patch.
src/AbstractQueryBuilder.php 1 patch
Spacing   +7 added lines, -7 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);
@@ -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/Collection.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -624,7 +624,7 @@
 block discarded – undo
624 624
         throw new InvalidValueException('There is no implementation for a response from api without an index on ID');
625 625
     }
626 626
 
627
-   /**
627
+    /**
628 628
      * Perform operation with collection models
629 629
      * @param string $command (create||update||delete)
630 630
      * @param array $data
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@
 block discarded – undo
397 397
             // update models
398 398
             foreach ($results as $id => $payload) {
399 399
                 $pk = $this->first->primaryKey()[0];
400
-                if ((string)$model->{$pk} === (string)$id) {
400
+                if ((string) $model->{$pk} === (string) $id) {
401 401
                     $model->setAttributes($payload);
402 402
                     break;
403 403
                 }
Please login to merge, or discard this patch.
src/debug/Timing.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
         if (!empty($this->traces)) {
108 108
             $result .= Html::ul($this->traces, [
109 109
                 'class' => 'trace',
110
-                'item' => function ($trace) {
111
-                    return '<li>' . $this->panel->getTraceLine($trace) . '</li>';
110
+                'item' => function($trace) {
111
+                    return '<li>'.$this->panel->getTraceLine($trace).'</li>';
112 112
                 },
113 113
             ]);
114 114
         }
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $uri = rtrim($this->request->getFullUri(), '?');
132 132
         $sign = strpos($uri, '?') === false ? '?' : '&';
133
-        $newTabUrl = rtrim($uri, '&') . $sign . $this->request->getBody();
133
+        $newTabUrl = rtrim($uri, '&').$sign.$this->request->getBody();
134 134
 
135 135
         return Html::a('to new tab', $newTabUrl, ['target' => '_blank']);
136 136
     }
137 137
 
138 138
     public function getCopyAsCurlLink(): string
139 139
     {
140
-        $curl = Json::htmlEncode((string)(new Request2Curl($this->request)));
140
+        $curl = Json::htmlEncode((string) (new Request2Curl($this->request)));
141 141
 
142 142
         return Html::a('copy as cURL', '#', [
143 143
             'onclick' => new JsExpression("
Please login to merge, or discard this patch.
src/AbstractRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
 
85 85
     public function createFullUri()
86 86
     {
87
-        return ($this->isFullUri($this->uri) ? '' : $this->getDb()->getBaseUri()) . $this->uri;
87
+        return ($this->isFullUri($this->uri) ? '' : $this->getDb()->getBaseUri()).$this->uri;
88 88
     }
89 89
 
90 90
     public function isFullUri($uri)
91 91
     {
92
-        return preg_match('/^https?:\\/\\//i', (string)$uri);
92
+        return preg_match('/^https?:\\/\\//i', (string) $uri);
93 93
     }
94 94
 
95 95
     public function getHeaders()
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             $params = http_build_query($params, '', '&');
168 168
         }
169 169
         if (!empty($params)) {
170
-            $this->uri .= '?' . $params;
170
+            $this->uri .= '?'.$params;
171 171
         }
172 172
     }
173 173
 
Please login to merge, or discard this patch.
src/helpers/Request2Curl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
     public function __toString(): string
68 68
     {
69 69
         return 'curl --insecure '
70
-            . '-X ' . $this->getMethod()
71
-            . ' ' . self::DOUBLE_QUOTE
70
+            . '-X '.$this->getMethod()
71
+            . ' '.self::DOUBLE_QUOTE
72 72
             . $this->getFullURLPart()
73 73
             . self::DOUBLE_QUOTE
74 74
             . $this->getHeadersPart()
Please login to merge, or discard this patch.