@@ -137,16 +137,16 @@ discard block |
||
137 | 137 | ->willReturn($row); |
138 | 138 | $mockSubject->expects($this->any()) |
139 | 139 | ->method('hasHeader') |
140 | - ->willReturnCallback(function ($key) use ($headers) { |
|
140 | + ->willReturnCallback(function($key) use ($headers) { |
|
141 | 141 | return array_key_exists($key, $headers); |
142 | 142 | }); |
143 | 143 | $mockSubject->expects($this->any()) |
144 | 144 | ->method('getHeader') |
145 | - ->willReturnCallback(function ($key) use ($headers) { |
|
145 | + ->willReturnCallback(function($key) use ($headers) { |
|
146 | 146 | if (array_key_exists($key, $headers)) { |
147 | 147 | return $headers[$key]; |
148 | 148 | } |
149 | - throw new \InvalidArgumentException(sprintf('Header %s is not available', $key));; |
|
149 | + throw new \InvalidArgumentException(sprintf('Header %s is not available', $key)); ; |
|
150 | 150 | }); |
151 | 151 | $mockSubject->expects($this->once()) |
152 | 152 | ->method('hasBeenProcessed') |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | // mock the entity merger method |
212 | 212 | $this->mockEntityMerger->expects($this->any()) |
213 | 213 | ->method('merge') |
214 | - ->willReturnCallback(function ($observer, $entity, $attr) use ($headers) { |
|
214 | + ->willReturnCallback(function($observer, $entity, $attr) use ($headers) { |
|
215 | 215 | foreach (array_keys($attr) as $key) { |
216 | 216 | if (isset($headers[$key])) { |
217 | 217 | continue; |
@@ -331,16 +331,16 @@ discard block |
||
331 | 331 | ->willReturn($lastAttributeId = 1001); |
332 | 332 | $mockSubject->expects($this->any()) |
333 | 333 | ->method('hasHeader') |
334 | - ->willReturnCallback(function ($key) use ($headers) { |
|
334 | + ->willReturnCallback(function($key) use ($headers) { |
|
335 | 335 | return array_key_exists($key, $headers); |
336 | 336 | }); |
337 | 337 | $mockSubject->expects($this->any()) |
338 | 338 | ->method('getHeader') |
339 | - ->willReturnCallback(function ($key) use ($headers) { |
|
339 | + ->willReturnCallback(function($key) use ($headers) { |
|
340 | 340 | if (array_key_exists($key, $headers)) { |
341 | 341 | return $headers[$key]; |
342 | 342 | } |
343 | - throw new \InvalidArgumentException(sprintf('Header %s is not available', $key));; |
|
343 | + throw new \InvalidArgumentException(sprintf('Header %s is not available', $key)); ; |
|
344 | 344 | }); |
345 | 345 | |
346 | 346 | // initialize the existing entity |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | // mock the entity merger method |
425 | 425 | $this->mockEntityMerger->expects($this->any()) |
426 | 426 | ->method('merge') |
427 | - ->willReturnCallback(function ($observer, $entity, $attr) use ($headers) { |
|
427 | + ->willReturnCallback(function($observer, $entity, $attr) use ($headers) { |
|
428 | 428 | foreach (array_keys($attr) as $key) { |
429 | 429 | if (isset($headers[$key])) { |
430 | 430 | continue; |