Skip to content

Commit

Permalink
chore: cslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Sep 12, 2023
1 parent e222a00 commit 85c4e90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/src/MessageProvider/send.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$connection = new AMQPStreamConnection('localhost', 5672, 'guest', 'guest');

// build the message with appropriate metadata
$providerMessage = new \MessageProvider\ExampleMessageProvider(['queue'=>'myKey', 'routing_key'=>'myKey']);
$providerMessage = new \MessageProvider\ExampleMessageProvider(['queue' => 'myKey', 'routing_key' => 'myKey']);
$content = new \stdClass();
$content->text = 'Hello Mary';
$providerMessage->setContents($content);
Expand Down
4 changes: 2 additions & 2 deletions example/tests/MessageConsumer/ExampleMessageConsumerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testProcessText()
$contents = new stdClass();
$contents->text = 'Hello Mary';

$metadata = ['queue'=>'wind cries', 'routing_key'=>'wind cries'];
$metadata = ['queue' => 'wind cries', 'routing_key' => 'wind cries'];

$builder
->given('a message', ['foo'])
Expand Down Expand Up @@ -80,7 +80,7 @@ public function testProcessSong()
$contents = new stdClass();
$contents->song = 'And the wind whispers Mary';

$metadata = ['queue'=>'And the clowns have all gone to bed', 'routing_key'=>'And the clowns have all gone to bed'];
$metadata = ['queue' => 'And the clowns have all gone to bed', 'routing_key' => 'And the clowns have all gone to bed'];

$builder
->given('You can hear happiness staggering on down the street')
Expand Down
4 changes: 2 additions & 2 deletions example/tests/MessageProvider/ExampleMessageProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function testProcess()
$callbacks = [];
$callbacks['an alligator named Mary exists'] = function () {
$content = new \stdClass();
$content->text ='Hello Mary';
$content->text = 'Hello Mary';

$metadata = [];
$metadata['queue'] = 'myKey';
Expand All @@ -33,7 +33,7 @@ public function testProcess()

$callbacks['footprints dressed in red'] = function () {
$content = new \stdClass();
$content->song ='And the wind whispers Mary';
$content->song = 'And the wind whispers Mary';

$metadata = [];
$metadata['queue'] = 'myKey';
Expand Down

0 comments on commit 85c4e90

Please sign in to comment.