Skip to content

Commit 99e724b

Browse files
committed
Fix Code Style in all files
1 parent 4694032 commit 99e724b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Client/Message.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ public function __construct($body = '', array $properties = [], array $headers =
8888
}
8989

9090
/**
91-
* @return null|string
91+
* @return string|null
9292
*/
9393
public function getBody()
9494
{
9595
return $this->body;
9696
}
9797

9898
/**
99-
* @param null|string|int|float|array|\JsonSerializable $body
99+
* @param string|int|float|array|\JsonSerializable|null $body
100100
*/
101101
public function setBody($body)
102102
{

Consumption/Context/MessageResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getReceivedAt(): int
7676
}
7777

7878
/**
79-
* @return Result|null|object|string
79+
* @return Result|object|string|null
8080
*/
8181
public function getResult()
8282
{

Tests/Client/DelegateProcessorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public function testShouldProcessMessage()
3939
->expects($this->once())
4040
->method('process')
4141
->with($this->identicalTo($message), $this->identicalTo($session))
42-
->will($this->returnValue('return-value'))
42+
->willReturn('return-value')
4343
;
4444

4545
$processorRegistry = $this->createProcessorRegistryMock();
4646
$processorRegistry
4747
->expects($this->once())
4848
->method('get')
4949
->with('processor-name')
50-
->will($this->returnValue($processor))
50+
->willReturn($processor)
5151
;
5252

5353
$processor = new DelegateProcessor($processorRegistry);

Tests/Client/Extension/PrepareBodyExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testCouldConstructedWithoutAnyArguments()
3131
* @dataProvider provideMessages
3232
*
3333
* @param mixed $body
34-
* @param null|mixed $contentType
34+
* @param mixed|null $contentType
3535
*/
3636
public function testShouldSendStringUnchangedAndAddPlainTextContentTypeIfEmpty(
3737
$body,

Tests/Consumption/FallbackSubscriptionConsumerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function testShouldConsumeTillTimeoutIsReached()
227227
}
228228

229229
/**
230-
* @param null|mixed $body
230+
* @param mixed|null $body
231231
*
232232
* @return InteropMessage|\PHPUnit_Framework_MockObject_MockObject
233233
*/
@@ -244,7 +244,7 @@ private function createMessageStub($body = null)
244244
}
245245

246246
/**
247-
* @param null|mixed $queueName
247+
* @param mixed|null $queueName
248248
*
249249
* @return Consumer|\PHPUnit_Framework_MockObject_MockObject
250250
*/

0 commit comments

Comments
 (0)