Skip to content

Commit 88accf9

Browse files
committed
Running php-cs-fixer
Running php-cs-fixer to fix CS drift
1 parent c53a498 commit 88accf9

15 files changed

+15
-66
lines changed

JsonSerializer.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ public function toString(WampMessage $message): string
1414
'headers' => $message->getHeaders(),
1515
]);
1616

17-
if (JSON_ERROR_NONE !== json_last_error()) {
18-
throw new \InvalidArgumentException(sprintf(
19-
'The malformed json given. Error %s and message %s',
20-
json_last_error(),
21-
json_last_error_msg()
22-
));
17+
if (\JSON_ERROR_NONE !== json_last_error()) {
18+
throw new \InvalidArgumentException(sprintf('The malformed json given. Error %s and message %s', json_last_error(), json_last_error_msg()));
2319
}
2420

2521
return $json;
@@ -28,12 +24,8 @@ public function toString(WampMessage $message): string
2824
public function toMessage(string $string): WampMessage
2925
{
3026
$data = json_decode($string, true);
31-
if (JSON_ERROR_NONE !== json_last_error()) {
32-
throw new \InvalidArgumentException(sprintf(
33-
'The malformed json given. Error %s and message %s',
34-
json_last_error(),
35-
json_last_error_msg()
36-
));
27+
if (\JSON_ERROR_NONE !== json_last_error()) {
28+
throw new \InvalidArgumentException(sprintf('The malformed json given. Error %s and message %s', json_last_error(), json_last_error_msg()));
3729
}
3830

3931
return new WampMessage($data['body'], $data['properties'], $data['headers']);

SerializerAwareTrait.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ trait SerializerAwareTrait
1111
*/
1212
private $serializer;
1313

14-
/**
15-
* @param Serializer $serializer
16-
*/
1714
public function setSerializer(Serializer $serializer)
1815
{
1916
$this->serializer = $serializer;

Tests/Functional/WampConsumerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/**
1313
* @group functional
1414
* @group Wamp
15+
*
1516
* @retry 5
1617
*/
1718
class WampConsumerTest extends TestCase

Tests/Spec/JsonSerializerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testThrowIfFailedToEncodeMessageToJson()
3737

3838
$resource = fopen(__FILE__, 'r');
3939

40-
//guard
40+
// guard
4141
$this->assertIsResource($resource);
4242

4343
$message = new WampMessage('theBody', ['aProp' => $resource]);

Tests/Spec/WampConnectionFactoryTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
*/
1111
class WampConnectionFactoryTest extends ConnectionFactorySpec
1212
{
13-
/**
14-
* {@inheritdoc}
15-
*/
1613
protected function createConnectionFactory()
1714
{
1815
return new WampConnectionFactory();

Tests/Spec/WampContextTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ class WampContextTest extends ContextSpec
1313
{
1414
use WampExtension;
1515

16-
/**
17-
* {@inheritdoc}
18-
*/
1916
protected function createContext()
2017
{
2118
return $this->buildWampContext();

Tests/Spec/WampMessageTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
*/
1111
class WampMessageTest extends MessageSpec
1212
{
13-
/**
14-
* {@inheritdoc}
15-
*/
1613
protected function createMessage()
1714
{
1815
return new WampMessage();

Tests/Spec/WampProducerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ class WampProducerTest extends ProducerSpec
1313
{
1414
use WampExtension;
1515

16-
/**
17-
* {@inheritdoc}
18-
*/
1916
protected function createProducer()
2017
{
2118
return $this->buildWampContext()->createProducer();

Tests/Spec/WampQueueTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
*/
1111
class WampQueueTest extends QueueSpec
1212
{
13-
/**
14-
* {@inheritdoc}
15-
*/
1613
protected function createQueue()
1714
{
1815
return new WampDestination(self::EXPECTED_QUEUE_NAME);

Tests/Spec/WampTopicTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
*/
1111
class WampTopicTest extends TopicSpec
1212
{
13-
/**
14-
* {@inheritdoc}
15-
*/
1613
protected function createTopic()
1714
{
1815
return new WampDestination(self::EXPECTED_TOPIC_NAME);

0 commit comments

Comments
 (0)