Skip to content

Commit

Permalink
apply php cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jun 11, 2016
1 parent aa607af commit 6668bf8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -36,9 +36,9 @@
"require-dev": {
"container-interop/container-interop": "^1.1",
"sandrokeil/interop-config": "^1.0",
"phpunit/phpunit": "~5.3",
"phpunit/phpunit": "^5.4",
"phpspec/prophecy": "^1.6",
"fabpot/php-cs-fixer": "1.7.*",
"fabpot/php-cs-fixer": "^1.11.0",
"satooshi/php-coveralls": "^1.0",
"zendframework/zend-servicemanager": "^2.7 || ^3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/AmqpCommandConsumerCallback.php
Expand Up @@ -56,7 +56,7 @@ public function __invoke(Envelope $envelope, Queue $queue) : DeliveryResult
{
$data = json_decode($envelope->getBody(), true);
$data['created_at'] = DateTimeImmutable::createFromFormat(
'Y-m-d\TH:i:s.u',
'Y-m-d\TH:i:s.u',
$data['created_at'],
new DateTimeZone('UTC')
);
Expand Down
1 change: 0 additions & 1 deletion tests/AmqpDelayedMessageProducerTest.php
Expand Up @@ -77,7 +77,6 @@ public function it_publishes_messages()

$messageProducer = new AmqpDelayedMessageProducer($producer->reveal(), $messageConverter->reveal(), 'test_app');
$messageProducer($message->reveal());

}

/**
Expand Down
1 change: 0 additions & 1 deletion tests/AmqpMessageProducerTest.php
Expand Up @@ -68,7 +68,6 @@ public function it_publishes_messages()

$messageProducer = new AmqpMessageProducer($producer->reveal(), $messageConverter->reveal(), 'test_app');
$messageProducer($message->reveal());

}

/**
Expand Down
33 changes: 17 additions & 16 deletions tests/DelayedCommandTest.php
Expand Up @@ -69,26 +69,27 @@ public function it_can_call_execute_at()
*/
private function delayedComamnd()
{
return new class extends DelayedCommand {
return new class extends DelayedCommand
{

protected $messageName = 'test-delayed-command';
protected $messageName = 'test-delayed-command';

protected $payload;
protected $payload;

public function __construct()
{
$this->init();
}
public function __construct()
{
$this->init();
}

public function payload() : array
{
return $this->payload;
}
public function payload() : array
{
return $this->payload;
}

protected function setPayload(array $payload)
{
$this->payload = $payload;
}
};
protected function setPayload(array $payload)
{
$this->payload = $payload;
}
};
}
}

0 comments on commit 6668bf8

Please sign in to comment.