Test Setup Failed
Branch master (d800c5)
by Nikolay
24:15
created
www/back-end/library/vendor/sentry/sentry/src/State/Hub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,6 +254,6 @@
 block discarded – undo
254 254
      */
255 255
     private function getStackTop(): Layer
256 256
     {
257
-        return $this->stack[ count($this->stack) - 1];
257
+        return $this->stack[count($this->stack) - 1];
258 258
     }
259 259
 }
Please login to merge, or discard this patch.
library/vendor/sentry/sentry/src/Serializer/RepresentationSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         if (is_float($value) && (int) $value == $value) {
45
-            return $value . '.0';
45
+            return $value.'.0';
46 46
         }
47 47
 
48 48
         if (is_numeric($value)) {
Please login to merge, or discard this patch.
back-end/library/vendor/sentry/sentry/src/Serializer/AbstractSerializer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         }
185 185
 
186 186
         if (mb_strlen($value) > $this->options->getMaxValueLength()) {
187
-            $value = mb_substr($value, 0, $this->options->getMaxValueLength() - 10, 'UTF-8') . ' {clipped}';
187
+            $value = mb_substr($value, 0, $this->options->getMaxValueLength() - 10, 'UTF-8').' {clipped}';
188 188
         }
189 189
 
190 190
         return $value;
@@ -202,11 +202,11 @@  discard block
 block discarded – undo
202 202
         }
203 203
 
204 204
         if (is_object($value)) {
205
-            return 'Object ' . get_class($value);
205
+            return 'Object '.get_class($value);
206 206
         }
207 207
 
208 208
         if (is_resource($value)) {
209
-            return 'Resource ' . get_resource_type($value);
209
+            return 'Resource '.get_resource_type($value);
210 210
         }
211 211
 
212 212
         if (is_callable($value)) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         }
215 215
 
216 216
         if (is_array($value)) {
217
-            return 'Array of length ' . count($value);
217
+            return 'Array of length '.count($value);
218 218
         }
219 219
 
220 220
         return $this->serializeString($value);
@@ -247,14 +247,14 @@  discard block
 block discarded – undo
247 247
         $value = $reflection->isClosure() ? 'Lambda ' : 'Callable ';
248 248
 
249 249
         if ($reflection->getReturnType()) {
250
-            $value .= $reflection->getReturnType() . ' ';
250
+            $value .= $reflection->getReturnType().' ';
251 251
         }
252 252
 
253 253
         if ($class) {
254
-            $value .= $class->getName() . '::';
254
+            $value .= $class->getName().'::';
255 255
         }
256 256
 
257
-        return $value . $reflection->getName() . ' ' . $this->serializeCallableParameters($reflection);
257
+        return $value.$reflection->getName().' '.$this->serializeCallableParameters($reflection);
258 258
     }
259 259
 
260 260
     /**
@@ -272,20 +272,20 @@  discard block
 block discarded – undo
272 272
                 $paramType .= '|null';
273 273
             }
274 274
 
275
-            $paramName = ($param->isPassedByReference() ? '&' : '') . $param->getName();
275
+            $paramName = ($param->isPassedByReference() ? '&' : '').$param->getName();
276 276
 
277 277
             if ($param->isOptional()) {
278
-                $paramName = '[' . $paramName . ']';
278
+                $paramName = '['.$paramName.']';
279 279
             }
280 280
 
281 281
             if ($paramType) {
282
-                $params[] = $paramType . ' ' . $paramName;
282
+                $params[] = $paramType.' '.$paramName;
283 283
             } else {
284 284
                 $params[] = $paramName;
285 285
             }
286 286
         }
287 287
 
288
-        return '[' . implode('; ', $params) . ']';
288
+        return '['.implode('; ', $params).']';
289 289
     }
290 290
 
291 291
     public function getMbDetectOrder(): string
Please login to merge, or discard this patch.
vendor/sentry/sentry/src/HttpClient/Authentication/SentryAuthentication.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $data = [
55 55
             'sentry_version' => Client::PROTOCOL_VERSION,
56
-            'sentry_client' => $this->sdkIdentifier . '/' . $this->sdkVersion,
56
+            'sentry_client' => $this->sdkIdentifier.'/'.$this->sdkVersion,
57 57
             'sentry_timestamp' => sprintf('%F', microtime(true)),
58 58
             'sentry_key' => $this->options->getPublicKey(),
59 59
         ];
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
         $headers = [];
66 66
 
67 67
         foreach ($data as $headerKey => $headerValue) {
68
-            $headers[] = $headerKey . '=' . $headerValue;
68
+            $headers[] = $headerKey.'='.$headerValue;
69 69
         }
70 70
 
71 71
         /** @var RequestInterface $request */
72
-        $request = $request->withHeader('X-Sentry-Auth', 'Sentry ' . implode(', ', $headers));
72
+        $request = $request->withHeader('X-Sentry-Auth', 'Sentry '.implode(', ', $headers));
73 73
 
74 74
         return $request;
75 75
     }
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/Transport/HttpTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $promise = $this->httpClient->sendAsyncRequest($request);
84 84
 
85 85
         // This function is defined in-line so it doesn't show up for type-hinting
86
-        $cleanupPromiseCallback = function ($responseOrException) use ($promise) {
86
+        $cleanupPromiseCallback = function($responseOrException) use ($promise) {
87 87
             $index = array_search($promise, $this->pendingRequests, true);
88 88
 
89 89
             if (false !== $index) {
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/ErrorHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     public function handleError(int $level, string $message, string $file, int $line): bool
188 188
     {
189 189
         if (0 === error_reporting()) {
190
-            $errorAsException = new SilencedErrorException(self::ERROR_LEVELS_DESCRIPTION[$level] . ': ' . $message, 0, $level, $file, $line);
190
+            $errorAsException = new SilencedErrorException(self::ERROR_LEVELS_DESCRIPTION[$level].': '.$message, 0, $level, $file, $line);
191 191
         } else {
192
-            $errorAsException = new ErrorException(self::ERROR_LEVELS_DESCRIPTION[$level] . ': ' . $message, 0, $level, $file, $line);
192
+            $errorAsException = new ErrorException(self::ERROR_LEVELS_DESCRIPTION[$level].': '.$message, 0, $level, $file, $line);
193 193
         }
194 194
 
195 195
         $backtrace = $this->cleanBacktraceFromErrorHandlerFrames($errorAsException->getTrace(), $file, $line);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         }
230 230
 
231 231
         if (!empty($error) && $error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING)) {
232
-            $errorAsException = new ErrorException(self::ERROR_LEVELS_DESCRIPTION[$error['type']] . ': ' . $error['message'], 0, $error['type'], $error['file'], $error['line']);
232
+            $errorAsException = new ErrorException(self::ERROR_LEVELS_DESCRIPTION[$error['type']].': '.$error['message'], 0, $error['type'], $error['file'], $error['line']);
233 233
 
234 234
             $this->invokeListeners($this->errorListeners, $errorAsException);
235 235
         }
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/ClientBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@
 block discarded – undo
288 288
             $this->addHttpClientPlugin(new BaseUriPlugin($this->uriFactory->createUri($this->options->getDsn())));
289 289
         }
290 290
 
291
-        $this->addHttpClientPlugin(new HeaderSetPlugin(['User-Agent' => $this->sdkIdentifier . '/' . $this->getSdkVersion()]));
291
+        $this->addHttpClientPlugin(new HeaderSetPlugin(['User-Agent' => $this->sdkIdentifier.'/'.$this->getSdkVersion()]));
292 292
         $this->addHttpClientPlugin(new AuthenticationPlugin(new SentryAuthentication($this->options, $this->sdkIdentifier, $this->getSdkVersion())));
293 293
         $this->addHttpClientPlugin(new RetryPlugin(['retries' => $this->options->getSendAttempts()]));
294 294
         $this->addHttpClientPlugin(new ErrorPlugin());
Please login to merge, or discard this patch.
library/vendor/sentry/sentry/src/Integration/RequestIntegration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function setupOnce(): void
43 43
     {
44
-        Scope::addGlobalEventProcessor(function (Event $event): Event {
44
+        Scope::addGlobalEventProcessor(function(Event $event): Event {
45 45
             $self = Hub::getCurrent()->getIntegration(self::class);
46 46
 
47 47
             if (!$self instanceof self) {
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $keysToRemove = ['authorization', 'cookie', 'set-cookie', 'remote_addr'];
113 113
 
114
-        return array_filter($headers, function ($key) use ($keysToRemove) {
115
-            return ! in_array(strtolower($key), $keysToRemove, true);
114
+        return array_filter($headers, function($key) use ($keysToRemove) {
115
+            return !in_array(strtolower($key), $keysToRemove, true);
116 116
         }, ARRAY_FILTER_USE_KEY);
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
library/vendor/sentry/sentry/src/Integration/ErrorListenerIntegration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function setupOnce(): void
38 38
     {
39
-        ErrorHandler::addErrorListener(function (ErrorException $error): void {
39
+        ErrorHandler::addErrorListener(function(ErrorException $error): void {
40 40
             if ($error instanceof SilencedErrorException && !$this->options->shouldCaptureSilencedErrors()) {
41 41
                 return;
42 42
             }
Please login to merge, or discard this patch.