Test Setup Failed
Branch master (d800c5)
by Nikolay
24:15
created
library/vendor/sentry/sentry/src/Integration/ModulesIntegration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function setupOnce(): void
28 28
     {
29
-        Scope::addGlobalEventProcessor(function (Event $event) {
29
+        Scope::addGlobalEventProcessor(function(Event $event) {
30 30
             $self = Hub::getCurrent()->getIntegration(self::class);
31 31
 
32 32
             if ($self instanceof self) {
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/Stacktrace.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             $result = array_map([$this, 'serializeArgument'], $frame['args']);
318 318
         } else {
319 319
             foreach (array_values($frame['args']) as $index => $argument) {
320
-                $result['param' . ($index + 1)] = $this->serializeArgument($argument);
320
+                $result['param'.($index + 1)] = $this->serializeArgument($argument);
321 321
             }
322 322
         }
323 323
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
                 // Assign the argument by the parameter name
394 394
                 $args[$params[$index]->name] = $arg;
395 395
             } else {
396
-                $args['param' . $index] = $arg;
396
+                $args['param'.$index] = $arg;
397 397
             }
398 398
         }
399 399
 
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/Options.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -693,13 +693,13 @@  discard block
 block discarded – undo
693 693
             'release' => null,
694 694
             'dsn' => $_SERVER['SENTRY_DSN'] ?? null,
695 695
             'server_name' => gethostname(),
696
-            'before_send' => function (Event $event): ?Event {
696
+            'before_send' => function(Event $event): ?Event {
697 697
                 return $event;
698 698
             },
699 699
             'tags' => [],
700 700
             'error_types' => E_ALL,
701 701
             'max_breadcrumbs' => self::DEFAULT_MAX_BREADCRUMBS,
702
-            'before_breadcrumb' => function (Breadcrumb $breadcrumb): ?Breadcrumb {
702
+            'before_breadcrumb' => function(Breadcrumb $breadcrumb): ?Breadcrumb {
703 703
                 return $breadcrumb;
704 704
             },
705 705
             'excluded_exceptions' => [],
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
         $resolver->setAllowedValues('max_breadcrumbs', Closure::fromCallable([$this, 'validateMaxBreadcrumbsOptions']));
742 742
 
743 743
         $resolver->setNormalizer('dsn', Closure::fromCallable([$this, 'normalizeDsnOption']));
744
-        $resolver->setNormalizer('project_root', function (SymfonyOptions $options, $value) {
744
+        $resolver->setNormalizer('project_root', function(SymfonyOptions $options, $value) {
745 745
             if (null === $value) {
746 746
                 return null;
747 747
             }
@@ -749,11 +749,11 @@  discard block
 block discarded – undo
749 749
             return $this->normalizeAbsolutePath($value);
750 750
         });
751 751
 
752
-        $resolver->setNormalizer('prefixes', function (SymfonyOptions $options, $value) {
752
+        $resolver->setNormalizer('prefixes', function(SymfonyOptions $options, $value) {
753 753
             return array_map([$this, 'normalizeAbsolutePath'], $value);
754 754
         });
755 755
 
756
-        $resolver->setNormalizer('in_app_exclude', function (SymfonyOptions $options, $value) {
756
+        $resolver->setNormalizer('in_app_exclude', function(SymfonyOptions $options, $value) {
757 757
             return array_map([$this, 'normalizeAbsolutePath'], $value);
758 758
         });
759 759
     }
@@ -804,10 +804,10 @@  discard block
 block discarded – undo
804 804
 
805 805
         $parsed = @parse_url($dsn);
806 806
 
807
-        $this->dsn = $parsed['scheme'] . '://' . $parsed['host'];
807
+        $this->dsn = $parsed['scheme'].'://'.$parsed['host'];
808 808
 
809 809
         if (isset($parsed['port']) && ((80 !== $parsed['port'] && 'http' === $parsed['scheme']) || (443 !== $parsed['port'] && 'https' === $parsed['scheme']))) {
810
-            $this->dsn .= ':' . $parsed['port'];
810
+            $this->dsn .= ':'.$parsed['port'];
811 811
         }
812 812
 
813 813
         $lastSlashPosition = strrpos($parsed['path'], '/');
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
             return false;
868 868
         }
869 869
 
870
-        if (! in_array(strtolower($parsed['scheme']), ['http', 'https'])) {
870
+        if (!in_array(strtolower($parsed['scheme']), ['http', 'https'])) {
871 871
             return false;
872 872
         }
873 873
 
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/Breadcrumb.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function __construct(string $level, string $type, string $category, ?string $message = null, array $metadata = [])
116 116
     {
117
-        if (! in_array($level, self::ALLOWED_LEVELS, true)) {
117
+        if (!in_array($level, self::ALLOWED_LEVELS, true)) {
118 118
             throw new InvalidArgumentException('The value of the $level argument must be one of the Breadcrumb::LEVEL_* constants.');
119 119
         }
120 120
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function withLevel(string $level): self
211 211
     {
212
-        if (! in_array($level, self::ALLOWED_LEVELS, true)) {
212
+        if (!in_array($level, self::ALLOWED_LEVELS, true)) {
213 213
             throw new InvalidArgumentException('The value of the $level argument must be one of the Breadcrumb::LEVEL_* constants.');
214 214
         }
215 215
 
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/Severity.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,28 +80,28 @@
 block discarded – undo
80 80
     public static function fromError(int $severity): self
81 81
     {
82 82
         switch ($severity) {
83
-             case E_DEPRECATED:
83
+                case E_DEPRECATED:
84 84
              case E_USER_DEPRECATED:
85 85
              case E_WARNING:
86 86
              case E_USER_WARNING:
87 87
              case E_RECOVERABLE_ERROR:
88 88
                  return self::warning();
89
-             case E_ERROR:
89
+                case E_ERROR:
90 90
              case E_PARSE:
91 91
              case E_CORE_ERROR:
92 92
              case E_CORE_WARNING:
93 93
              case E_COMPILE_ERROR:
94 94
              case E_COMPILE_WARNING:
95 95
                  return self::fatal();
96
-             case E_USER_ERROR:
96
+                case E_USER_ERROR:
97 97
                  return self::error();
98
-             case E_NOTICE:
98
+                case E_NOTICE:
99 99
              case E_USER_NOTICE:
100 100
              case E_STRICT:
101 101
                  return self::info();
102
-             default:
102
+                default:
103 103
                  return self::error();
104
-         }
104
+            }
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function __construct(string $value = self::INFO)
65 65
     {
66
-        if (! in_array($value, self::ALLOWED_SEVERITIES, true)) {
66
+        if (!in_array($value, self::ALLOWED_SEVERITIES, true)) {
67 67
             throw new InvalidArgumentException(sprintf('The "%s" is not a valid enum value.', $value));
68 68
         }
69 69
 
Please login to merge, or discard this patch.
www/back-end/library/vendor/sentry/sentry/src/Context/TagsContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         }
26 26
 
27 27
         foreach ($data as $value) {
28
-            if (! is_string($value)) {
28
+            if (!is_string($value)) {
29 29
                 throw new InvalidArgumentException('The $data argument must contains a simple array of string values.');
30 30
             }
31 31
         }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function setData(array $data): void
40 40
     {
41 41
         foreach ($data as $value) {
42
-            if (! is_string($value)) {
42
+            if (!is_string($value)) {
43 43
                 throw new InvalidArgumentException('The $data argument must contains a simple array of string values.');
44 44
             }
45 45
         }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function replaceData(array $data): void
54 54
     {
55 55
         foreach ($data as $value) {
56
-            if (! is_string($value)) {
56
+            if (!is_string($value)) {
57 57
                 throw new InvalidArgumentException('The $data argument must contains a simple array of string values.');
58 58
             }
59 59
         }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function offsetSet($offset, $value): void
68 68
     {
69
-        if (! is_string($value)) {
69
+        if (!is_string($value)) {
70 70
             throw new InvalidArgumentException('The $value argument must be a string.');
71 71
         }
72 72
 
Please login to merge, or discard this patch.
back-end/library/vendor/zendframework/zend-diactoros/src/StreamFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function createStreamFromResource($resource) : StreamInterface
47 47
     {
48
-        if (! is_resource($resource) || 'stream' !== get_resource_type($resource)) {
48
+        if (!is_resource($resource) || 'stream' !== get_resource_type($resource)) {
49 49
             throw new Exception\InvalidArgumentException(
50 50
                 'Invalid stream provided; must be a stream resource'
51 51
             );
Please login to merge, or discard this patch.
back-end/library/vendor/zendframework/zend-diactoros/src/PhpInputStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     public function read($length) : string
62 62
     {
63 63
         $content = parent::read($length);
64
-        if (! $this->reachedEof) {
64
+        if (!$this->reachedEof) {
65 65
             $this->cache .= $content;
66 66
         }
67 67
 
Please login to merge, or discard this patch.
vendor/zendframework/zend-diactoros/src/functions/create_uploaded_file.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
  */
19 19
 function createUploadedFile(array $spec) : UploadedFile
20 20
 {
21
-    if (! isset($spec['tmp_name'])
22
-        || ! isset($spec['size'])
23
-        || ! isset($spec['error'])
21
+    if (!isset($spec['tmp_name'])
22
+        || !isset($spec['size'])
23
+        || !isset($spec['error'])
24 24
     ) {
25 25
         throw new Exception\InvalidArgumentException(sprintf(
26 26
             '$spec provided to %s MUST contain each of the keys "tmp_name",'
Please login to merge, or discard this patch.