Test Setup Failed
Pull Request — master (#28)
by Patrick
03:14
created
kafka_consume.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 // sudo pecl install rdkafka (select php)
7 7
 
8 8
 $conf = new RdKafka\Conf();
9
-$conf->set('log_level', (string) LOG_DEBUG);
9
+$conf->set('log_level', (string)LOG_DEBUG);
10 10
 //$conf->set('debug', 'all');
11 11
 // Set the group id. This is required when storing offsets on the broker
12 12
 $conf->set('group.id', 'myConsumerGroup');
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 $topic->consumeStart(0, RD_KAFKA_OFFSET_STORED);
29 29
 
30 30
 while (true) {
31
-    $message = $topic->consume(0, 120*10000);
31
+    $message = $topic->consume(0, 120 * 10000);
32 32
     switch ($message->err) {
33 33
         case RD_KAFKA_RESP_ERR_NO_ERROR:
34 34
             var_dump($message);
Please login to merge, or discard this patch.
src/ForecastAutomation/Serializer/SerializerFacade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
     //ToDo: Support original feature scope ie. normalize attributes path
23 23
     // see here https://symfony.com/doc/current/components/serializer.html
24 24
     // https://jmsyst.com/libs/serializer
25
-    public function serialize(object|array $dto, string $format = SerializerConstants::FORMAT_JSON): string
25
+    public function serialize(object | array $dto, string $format = SerializerConstants::FORMAT_JSON): string
26 26
     {
27
-        return \json_encode((array) $dto, JSON_THROW_ON_ERROR);
27
+        return \json_encode((array)$dto, JSON_THROW_ON_ERROR);
28 28
 //        return $this->getFactory()->createSerializer()->serialize($dto, $format);
29 29
     }
30 30
 
Please login to merge, or discard this patch.
src/ForecastAutomation/QueueClient/Shared/Plugin/QueuePluginCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     public function offsetGet($offset): QueuePluginInterface
65 65
     {
66
-        if (! $this->offsetExists($offset)) {
66
+        if (!$this->offsetExists($offset)) {
67 67
             throw new \Exception(
68 68
                 \sprintf(
69 69
                     'Unknown Queue %s, please register first to your configured queue dependencyprovider adapter.',
Please login to merge, or discard this patch.
src/ForecastAutomation/AmqpClient/AmqpClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         return (new AmqpConnectionFactory(
48 48
             [
49 49
                 'host' => $_ENV['AMQP_HOST'],
50
-                'port' => (int) $_ENV['AMQP_PORT'],
50
+                'port' => (int)$_ENV['AMQP_PORT'],
51 51
                 'vhost' => $_ENV['AMQP_VHOST'],
52 52
                 'user' => $_ENV['AMQP_USER'],
53 53
                 'pass' => $_ENV['AMQP_PASS'],
Please login to merge, or discard this patch.
ForecastClient/Shared/Plugin/ForecastClientQueuePluginPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $messageDto->data['needle'],
42 42
             $messageDto->data['description'],
43 43
             new \DateTime($messageDto->data['created']),
44
-            (int) $messageDto->data['duration']
44
+            (int)$messageDto->data['duration']
45 45
         );
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
Business/PeriodicalActivityDataImportProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         foreach ($activityDtoCollection as $activityDto) {
51 51
             $messages[] =
52 52
                 new MessageDto(
53
-                    ['created' => $activityDto->created->format('c')] + (array) $activityDto,
53
+                    ['created' => $activityDto->created->format('c')] + (array)$activityDto,
54 54
                     ForecastClientQueueConstants::QUEUE_NAME,
55 55
                     ForecastClientQueueConstants::IMPORT_EVENT
56 56
                 );
Please login to merge, or discard this patch.
ForecastDataImport/Business/ForecastDataImportProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         foreach ($activityDtoCollection as $activityDto) {
51 51
             $messages[] =
52 52
                 new MessageDto(
53
-                    ['created' => $activityDto->created->format('c')] + (array) $activityDto,
53
+                    ['created' => $activityDto->created->format('c')] + (array)$activityDto,
54 54
                     ForecastClientQueueConstants::QUEUE_NAME,
55 55
                     ForecastClientQueueConstants::IMPORT_EVENT
56 56
                 );
Please login to merge, or discard this patch.