Test Failed
Pull Request — master (#814)
by Maxim
07:25
created
src/Queue/src/Options.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
107 107
      * @param non-empty-string $name
108 108
      * @param non-empty-string|array<non-empty-string> $value
109 109
      */
110
-    public function withHeader(string $name, string|array $value): self
110
+    public function withHeader(string $name, string | array $value): self
111 111
     {
112 112
         $self = clone $this;
113 113
         $self->headers[$name] = [];
114 114
 
115
-        foreach ($value as $item) {
115
+        foreach ($value as $item){
116 116
             $self->headers[$name][] = (string)$item;
117 117
         }
118 118
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param non-empty-string $name
124 124
      * @param non-empty-string|array<non-empty-string> $value
125 125
      */
126
-    public function withAddedHeader(string $name, string|array $value): self
126
+    public function withAddedHeader(string $name, string | array $value): self
127 127
     {
128 128
         /** @var iterable<non-empty-string> $value */
129 129
         $value = \is_iterable($value) ? $value : [$value];
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         /** @var array<non-empty-string> $headers */
132 132
         $headers = $this->headers[$name] ?? [];
133 133
 
134
-        foreach ($value as $item) {
134
+        foreach ($value as $item){
135 135
             $headers[] = $item;
136 136
         }
137 137
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function withoutHeader(string $name): self
145 145
     {
146
-        if (!isset($this->headers[$name])) {
146
+        if (!isset($this->headers[$name])){
147 147
             return $this;
148 148
         }
149 149
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,8 @@  discard block
 block discarded – undo
112 112
         $self = clone $this;
113 113
         $self->headers[$name] = [];
114 114
 
115
-        foreach ($value as $item) {
115
+        foreach ($value as $item)
116
+        {
116 117
             $self->headers[$name][] = (string)$item;
117 118
         }
118 119
 
@@ -131,7 +132,8 @@  discard block
 block discarded – undo
131 132
         /** @var array<non-empty-string> $headers */
132 133
         $headers = $this->headers[$name] ?? [];
133 134
 
134
-        foreach ($value as $item) {
135
+        foreach ($value as $item)
136
+        {
135 137
             $headers[] = $item;
136 138
         }
137 139
 
@@ -143,7 +145,8 @@  discard block
 block discarded – undo
143 145
      */
144 146
     public function withoutHeader(string $name): self
145 147
     {
146
-        if (!isset($this->headers[$name])) {
148
+        if (!isset($this->headers[$name]))
149
+        {
147 150
             return $this;
148 151
         }
149 152
 
Please login to merge, or discard this patch.