Skip to content

Commit ccd22e2

Browse files
committed
Fix Code Style in all files
1 parent 81a58a1 commit ccd22e2

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

DbalConsumer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
class DbalConsumer implements Consumer
1515
{
16-
use ConsumerPollingTrait,
17-
DbalConsumerHelperTrait;
16+
use ConsumerPollingTrait;
17+
use DbalConsumerHelperTrait;
1818

1919
/**
2020
* @var DbalContext

DbalMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class DbalMessage implements Message
4949
private $timeToLive;
5050

5151
/**
52-
* @var null|string
52+
* @var string|null
5353
*/
5454
private $deliveryId;
5555

Tests/DbalConsumerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public function testShouldDeleteMessageOnAcknowledge()
7979
$context
8080
->expects($this->once())
8181
->method('getDbalConnection')
82-
->will($this->returnValue($dbal))
82+
->willReturn($dbal)
8383
;
8484
$context
8585
->expects($this->once())
8686
->method('getTableName')
87-
->will($this->returnValue('some-table-name'))
87+
->willReturn('some-table-name')
8888
;
8989

9090
$consumer = new DbalConsumer($context, $queue);
@@ -150,12 +150,12 @@ public function testShouldDeleteMessageFromQueueOnReject()
150150
$context
151151
->expects($this->once())
152152
->method('getDbalConnection')
153-
->will($this->returnValue($dbal))
153+
->willReturn($dbal)
154154
;
155155
$context
156156
->expects($this->once())
157157
->method('getTableName')
158-
->will($this->returnValue('some-table-name'))
158+
->willReturn('some-table-name')
159159
;
160160

161161
$consumer = new DbalConsumer($context, $queue);
@@ -182,7 +182,7 @@ public function testRejectShouldReSendMessageToSameQueueOnRequeue()
182182
$context
183183
->expects($this->once())
184184
->method('createProducer')
185-
->will($this->returnValue($producerMock))
185+
->willReturn($producerMock)
186186
;
187187

188188
$consumer = new DbalConsumer($context, $queue);

Tests/DbalSubscriptionConsumerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function createDbalContextMock()
153153
}
154154

155155
/**
156-
* @param null|mixed $queueName
156+
* @param mixed|null $queueName
157157
*
158158
* @return Consumer|\PHPUnit_Framework_MockObject_MockObject
159159
*/

0 commit comments

Comments
 (0)