@@ -501,21 +501,21 @@ discard block |
||
501 | 501 | $c[OutgoingOptionsFactory::class] |
502 | 502 | ); |
503 | 503 | |
504 | - $c[IncomingContextFactory::class] = function ($c) { |
|
504 | + $c[IncomingContextFactory::class] = function($c) { |
|
505 | 505 | return new IncomingContextFactory($c[BusOperations::class], $c[OutgoingOptionsFactory::class]); |
506 | 506 | }; |
507 | - $c[OutgoingContextFactory::class] = function () { |
|
507 | + $c[OutgoingContextFactory::class] = function() { |
|
508 | 508 | return new OutgoingContextFactory(); |
509 | 509 | }; |
510 | 510 | |
511 | - $c[ClockInterface::class] = function () { |
|
511 | + $c[ClockInterface::class] = function() { |
|
512 | 512 | return new SystemClock(); |
513 | 513 | }; |
514 | - $c[DateTimeConverter::class] = function () { |
|
514 | + $c[DateTimeConverter::class] = function() { |
|
515 | 515 | return new DateTimeConverter(); |
516 | 516 | }; |
517 | 517 | |
518 | - $c[PushPipe::class] = function ($c) { |
|
518 | + $c[PushPipe::class] = function($c) { |
|
519 | 519 | /** @var PipelineFactory $pipelineFactory */ |
520 | 520 | $pipelineFactory = $c[PipelineFactory::class]; |
521 | 521 | return new PushPipe( |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | ) |
527 | 527 | ); |
528 | 528 | }; |
529 | - $c[PushSettings::class] = function () { |
|
529 | + $c[PushSettings::class] = function() { |
|
530 | 530 | $errorQueue = $this->settings->tryGet(KnownSettingsEnum::ERROR_QUEUE); |
531 | 531 | if (!$errorQueue) { |
532 | 532 | throw new UnexpectedValueException( |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | $this->settings->tryGet(KnownSettingsEnum::PURGE_ON_STARTUP) ?: false |
540 | 540 | ); |
541 | 541 | }; |
542 | - $c[TransportReceiver::class] = function ($c) { |
|
542 | + $c[TransportReceiver::class] = function($c) { |
|
543 | 543 | return new TransportReceiver( |
544 | 544 | $c[MessagePusherInterface::class], |
545 | 545 | $c[PushSettings::class], |
@@ -100,7 +100,7 @@ |
||
100 | 100 | |
101 | 101 | array_walk_recursive( |
102 | 102 | $data, |
103 | - function (&$value) { |
|
103 | + function(&$value) { |
|
104 | 104 | if (is_float($value) && ctype_digit((string)$value)) { |
105 | 105 | // Due to PHP bug #50224, floats with no decimals are converted to integers when encoded |
106 | 106 | $value = '(' . self::FLOAT_CASTER . ')' . $value . '.0'; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function formalize(Settings $settings) |
32 | 32 | { |
33 | - return function () { |
|
33 | + return function() { |
|
34 | 34 | return new JsonMessageSerializer(new JsonSerializer(new ObjectNormalizer(), new JsonEncoder())); |
35 | 35 | }; |
36 | 36 | } |
@@ -91,7 +91,7 @@ |
||
91 | 91 | $className = get_class($object); |
92 | 92 | $normalizedObject = [$this->classAnnotation => $className]; |
93 | 93 | if ($className === 'DateTime') { |
94 | - $normalizedObject += (array) $object; |
|
94 | + $normalizedObject += (array)$object; |
|
95 | 95 | } else { |
96 | 96 | $normalizedObject += array_map([$this, 'normalizeValue'], $this->extractObjectProperties($object)); |
97 | 97 | } |