Passed
Pull Request — master (#814)
by Maxim
06:42
created
src/Queue/src/Options.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,14 +107,14 @@  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
         $value = \is_iterable($value) ? $value : [$value];
113 113
 
114 114
         $self = clone $this;
115 115
         $self->headers[$name] = [];
116 116
 
117
-        foreach ($value as $item) {
117
+        foreach ($value as $item){
118 118
             $self->headers[$name][] = (string)$item;
119 119
         }
120 120
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * @param non-empty-string $name
126 126
      * @param non-empty-string|array<non-empty-string> $value
127 127
      */
128
-    public function withAddedHeader(string $name, string|array $value): self
128
+    public function withAddedHeader(string $name, string | array $value): self
129 129
     {
130 130
         /** @var iterable<non-empty-string> $value */
131 131
         $value = \is_iterable($value) ? $value : [$value];
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         /** @var array<non-empty-string> $headers */
134 134
         $headers = $this->headers[$name] ?? [];
135 135
 
136
-        foreach ($value as $item) {
136
+        foreach ($value as $item){
137 137
             $headers[] = $item;
138 138
         }
139 139
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function withoutHeader(string $name): self
147 147
     {
148
-        if (!isset($this->headers[$name])) {
148
+        if (!isset($this->headers[$name])){
149 149
             return $this;
150 150
         }
151 151
 
Please login to merge, or discard this patch.