Skip to content

Commit 66e35bc

Browse files
authored
Merge pull request vyuldashev#88 from vladimir-yuldashev/analysis-zEENQM
Applied fixes from StyleCI
2 parents eaaf494 + 2d38ac4 commit 66e35bc

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

tests/RabbitMQConnectorTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class RabbitMQConnectorTest extends TestCase
88
{
9-
109
public function test_connect()
1110
{
1211
$config = [
@@ -40,5 +39,4 @@ public function test_connect()
4039

4140
$this->assertInstanceOf(RabbitMQQueue::class, $queue);
4241
}
43-
44-
}
42+
}

tests/RabbitMQQueueTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
class RabbitMQQueueTest extends TestCase
1717
{
18-
1918
public function setUp()
2019
{
2120
parent::setUp();
@@ -111,9 +110,9 @@ public function test_later()
111110

112111
// delayed queue
113112
$this->channel->shouldReceive('queue_bind')->with(
114-
$this->config['queue'] . '_deferred_' . $delay,
113+
$this->config['queue'].'_deferred_'.$delay,
115114
$this->config['exchange_params']['name'],
116-
$this->config['queue'] . '_deferred_' . $delay
115+
$this->config['queue'].'_deferred_'.$delay
117116
)->once();
118117

119118
$this->channel->shouldReceive('basic_publish')->once();
@@ -155,16 +154,17 @@ public function test_pop()
155154
$this->queue->pop();
156155
}
157156

158-
public function test_setAttempts() {
157+
public function test_setAttempts()
158+
{
159159
$count = mt_rand();
160160

161161
$this->queue->setAttempts($count);
162162
}
163163

164-
public function test_setCorrelationId() {
164+
public function test_setCorrelationId()
165+
{
165166
$id = str_random();
166167

167168
$this->queue->setCorrelationId($id);
168169
}
169-
170-
}
170+
}

tests/jobs/TestJob.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
class TestJob
44
{
5-
65
public function handle()
76
{
8-
97
}
10-
11-
}
8+
}

0 commit comments

Comments
 (0)