Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cslint fixes #337

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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