Test Failed
Push — master ( 961ded...a16012 )
by yufei
10:28 queued 07:03
created
src/Providers/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $this->app->singleton(
82 82
             Container::class,
83
-            function () use ($config) {
83
+            function() use ($config) {
84 84
                 $container = new ContainerBuilder();
85 85
                 return $container->createContainer($config);
86 86
             }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     private function registerPublishers()
94 94
     {
95 95
         // Get "tagged" like Publisher
96
-        $this->app->singleton(PublisherInterface::class, function (Application $application, $arguments) {
96
+        $this->app->singleton(PublisherInterface::class, function(Application $application, $arguments) {
97 97
             /** @var Container $container */
98 98
             $container = $application->make(Container::class);
99 99
             if (empty($arguments)) {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     private function registerConsumers()
111 111
     {
112 112
         // Get "tagged" like Consumers
113
-        $this->app->singleton(ConsumerInterface::class, function (Application $application, $arguments) {
113
+        $this->app->singleton(ConsumerInterface::class, function(Application $application, $arguments) {
114 114
             /** @var Container $container */
115 115
             $container = $application->make(Container::class);
116 116
             if (empty($arguments)) {
Please login to merge, or discard this patch.
config/laravel_rabbitmq_example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
             'lazy'               => true,
15 15
 
16 16
             # More info about timeouts can be found on https://www.rabbitmq.com/networking.html
17
-            'read_write_timeout' => 8,   // default timeout for writing/reading (in seconds)
17
+            'read_write_timeout' => 8, // default timeout for writing/reading (in seconds)
18 18
             'connect_timeout'    => 10,
19 19
             'heartbeat'          => 4,
20 20
             'access_key'=>'',
Please login to merge, or discard this patch.
src/Entity/QueueEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
             try {
299 299
                 $this->getChannel()->wait();
300 300
             } catch (AMQPTimeoutException $e) {
301
-                $this->logger->debug('startConsuming Exception--->'.$e->getMessage());
301
+                $this->logger->debug('startConsuming Exception--->' . $e->getMessage());
302 302
                 usleep(1000);
303 303
                 $this->getConnection()->reconnect();
304 304
                 $this->setupChannelConsumer();
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     private function registerShutdownHandler()
418 418
     {
419 419
         $consumer = $this;
420
-        register_shutdown_function(function () use ($consumer) {
420
+        register_shutdown_function(function() use ($consumer) {
421 421
             $consumer->stopConsuming();
422 422
         });
423 423
     }
Please login to merge, or discard this patch.
src/AMQPConnection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         'lazy' => true,
39 39
 
40 40
         # More info about timeouts can be found on https://www.rabbitmq.com/networking.html
41
-        'read_write_timeout' => 3,   // default timeout for writing/reading (in seconds)
41
+        'read_write_timeout' => 3, // default timeout for writing/reading (in seconds)
42 42
         'connect_timeout' => 3,
43 43
         'heartbeat' => 0,
44 44
         'keep_alive' => false,
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             $this->getConnection()->reconnect();
219 219
         } catch (AMQPChannelClosedException $e) {
220 220
             $this->logger->info('channel was closed');
221
-        } catch (AMQPConnectionClosedException $e){
221
+        } catch (AMQPConnectionClosedException $e) {
222 222
             $this->getConnection()->reconnect();
223 223
             $this->logger->info('connection was closed');
224 224
         }
Please login to merge, or discard this patch.