Skip to content

Commit

Permalink
Merge pull request #337 from pact-foundation/chore/cslint
Browse files Browse the repository at this point in the history
chore: cslint fixes
  • Loading branch information
YOU54F authored Oct 12, 2023
2 parents e222a00 + 85c4e90 commit 9eb4661
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 9eb4661

Please sign in to comment.