Test Failed
Pull Request — master (#37)
by
unknown
08:52
created
Tests/RabbitMq/BindingTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $key = 'example_key';
47 47
         $ch->expects($this->once())
48 48
             ->method('queue_bind')
49
-            ->will($this->returnCallback(function ($d, $s, $k, $n, $a) use ($destination, $source, $key) {
49
+            ->will($this->returnCallback(function($d, $s, $k, $n, $a) use ($destination, $source, $key) {
50 50
                 Assert::assertSame($destination, $d);
51 51
                 Assert::assertSame($source, $s);
52 52
                 Assert::assertSame($key, $k);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $key = 'example_key';
72 72
         $ch->expects($this->once())
73 73
             ->method('exchange_bind')
74
-            ->will($this->returnCallback(function ($d, $s, $k, $n, $a) use ($destination, $source, $key) {
74
+            ->will($this->returnCallback(function($d, $s, $k, $n, $a) use ($destination, $source, $key) {
75 75
                 Assert::assertSame($destination, $d);
76 76
                 Assert::assertSame($source, $s);
77 77
                 Assert::assertSame($key, $k);
Please login to merge, or discard this patch.
DependencyInjection/OldSoundRabbitMqExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $this->container = $container;
39 39
 
40
-        $loader = new XmlFileLoader($this->container, new FileLocator(array(__DIR__ . '/../Resources/config')));
40
+        $loader = new XmlFileLoader($this->container, new FileLocator(array(__DIR__.'/../Resources/config')));
41 41
         $loader->load('rabbitmq.xml');
42 42
 
43 43
         $configuration = $this->getConfiguration($configs, $container);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
             if (empty($consumer['queues']) && empty($consumer['queues_provider'])) {
252 252
                 throw new InvalidConfigurationException(
253
-                    "Error on loading $key multiple consumer. " .
253
+                    "Error on loading $key multiple consumer. ".
254 254
                     "Either 'queues' or 'queues_provider' parameters should be defined."
255 255
                 );
256 256
             }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
             if (empty($consumer['queue_options_provider'])) {
332 332
                 throw new InvalidConfigurationException(
333
-                    "Error on loading $key dynamic consumer. " .
333
+                    "Error on loading $key dynamic consumer. ".
334 334
                     "'queue_provider' parameter should be defined."
335 335
                 );
336 336
             }
Please login to merge, or discard this patch.
RabbitMq/AMQPConnectionFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->parameters = array_merge($this->parameters, $parameters);
46 46
         $this->parameters = $this->parseUrl($this->parameters);
47 47
         if (is_array($this->parameters['ssl_context'])) {
48
-            $this->parameters['ssl_context'] = ! empty($this->parameters['ssl_context'])
48
+            $this->parameters['ssl_context'] = !empty($this->parameters['ssl_context'])
49 49
                 ? stream_context_create(array('ssl' => $this->parameters['ssl_context']))
50 50
                 : null;
51 51
         }
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
                     $this->parameters['user'],
75 75
                     $this->parameters['password'],
76 76
                     $this->parameters['vhost'],
77
-                    false,      // insist
77
+                    false, // insist
78 78
                     'AMQPLAIN', // login_method
79
-                    null,       // login_response
80
-                    'en_US',    // locale
79
+                    null, // login_response
80
+                    'en_US', // locale
81 81
                     isset($this->parameters['read_timeout']) ? $this->parameters['read_timeout'] : $this->parameters['read_write_timeout'],
82 82
                     $this->parameters['keepalive'],
83 83
                     isset($this->parameters['write_timeout']) ? $this->parameters['write_timeout'] : $this->parameters['read_write_timeout'],
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
                 $this->parameters['user'],
92 92
                 $this->parameters['password'],
93 93
                 $this->parameters['vhost'],
94
-                false,      // insist
94
+                false, // insist
95 95
                 'AMQPLAIN', // login_method
96
-                null,       // login_response
97
-                'en_US',    // locale
96
+                null, // login_response
97
+                'en_US', // locale
98 98
                 $this->parameters['connection_timeout'],
99 99
                 $this->parameters['read_write_timeout'],
100 100
                 $this->parameters['ssl_context'],
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $parameters['host'] = urldecode($url['host']);
129 129
         }
130 130
         if (isset($url['port'])) {
131
-            $parameters['port'] = (int)$url['port'];
131
+            $parameters['port'] = (int) $url['port'];
132 132
         }
133 133
         if (isset($url['user'])) {
134 134
             $parameters['user'] = urldecode($url['user']);
Please login to merge, or discard this patch.
Command/RpcServerCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         $this->getContainer()
45
-               ->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name')))
46
-               ->start($amount);
45
+                ->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name')))
46
+                ->start($amount);
47 47
 
48 48
         return 0;
49 49
     }
Please login to merge, or discard this patch.
Tests/RabbitMq/ConsumerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $amqpChannel = $this->prepareAMQPChannel();
50 50
         $consumer = $this->getConsumer($amqpConnection, $amqpChannel);
51 51
 
52
-        $callbackFunction = function () use ($processFlag) {
52
+        $callbackFunction = function() use ($processFlag) {
53 53
             return $processFlag;
54 54
         }; // Create a callback function with a return value set by the data provider.
55 55
         $consumer->setCallback($callbackFunction);
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
         if ($expectedMethod) {
63 63
             $amqpChannel->expects($this->any())
64 64
                 ->method('basic_reject')
65
-                ->will($this->returnCallback(function ($delivery_tag, $requeue) use ($expectedMethod, $expectedRequeue) {
65
+                ->will($this->returnCallback(function($delivery_tag, $requeue) use ($expectedMethod, $expectedRequeue) {
66 66
                     Assert::assertSame($expectedMethod, 'basic_reject'); // Check if this function should be called.
67 67
                     Assert::assertSame($requeue, $expectedRequeue); // Check if the message should be requeued.
68 68
                 }));
69 69
 
70 70
             $amqpChannel->expects($this->any())
71 71
                 ->method('basic_ack')
72
-                ->will($this->returnCallback(function ($delivery_tag) use ($expectedMethod) {
72
+                ->will($this->returnCallback(function($delivery_tag) use ($expectedMethod) {
73 73
                     Assert::assertSame($expectedMethod, 'basic_ack'); // Check if this function should be called.
74 74
                 }));
75 75
         } else {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             ->with(null, false, $consumer->getIdleTimeout())
175 175
             ->will(
176 176
                 $this->returnCallback(
177
-                    function () use ($amqpChannel) {
177
+                    function() use ($amqpChannel) {
178 178
                         /** remove an element on each loop like ... simulate an ACK */
179 179
                         array_splice($amqpChannel->callbacks, 0, 1);
180 180
                     })
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         $eventDispatcher->expects($this->at(1))
260 260
             ->method('dispatch')
261 261
             ->with($this->isInstanceOf(OnIdleEvent::class), OnIdleEvent::NAME)
262
-            ->willReturnCallback(function (OnIdleEvent $event, $eventName) {
262
+            ->willReturnCallback(function(OnIdleEvent $event, $eventName) {
263 263
                 $event->setForceStop(false);
264 264
 
265 265
                 return $event;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $eventDispatcher->expects($this->at(3))
269 269
             ->method('dispatch')
270 270
             ->with($this->isInstanceOf(OnIdleEvent::class), OnIdleEvent::NAME)
271
-            ->willReturnCallback(function (OnIdleEvent $event, $eventName) {
271
+            ->willReturnCallback(function(OnIdleEvent $event, $eventName) {
272 272
                 $event->setForceStop(true);
273 273
 
274 274
                 return $event;
Please login to merge, or discard this patch.
Tests/RabbitMq/MultipleConsumerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -310,14 +310,14 @@  discard block
 block discarded – undo
310 310
     {
311 311
         $this->amqpChannel->expects($this->any())
312 312
             ->method('basic_reject')
313
-            ->will($this->returnCallback(function ($delivery_tag, $requeue) use ($expectedMethod, $expectedRequeue) {
313
+            ->will($this->returnCallback(function($delivery_tag, $requeue) use ($expectedMethod, $expectedRequeue) {
314 314
                 Assert::assertSame($expectedMethod, 'basic_reject'); // Check if this function should be called.
315 315
                 Assert::assertSame($requeue, $expectedRequeue); // Check if the message should be requeued.
316 316
             }));
317 317
 
318 318
         $this->amqpChannel->expects($this->any())
319 319
             ->method('basic_ack')
320
-            ->will($this->returnCallback(function ($delivery_tag) use ($expectedMethod) {
320
+            ->will($this->returnCallback(function($delivery_tag) use ($expectedMethod) {
321 321
                 Assert::assertSame($expectedMethod, 'basic_ack'); // Check if this function should be called.
322 322
             }));
323 323
     }
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      */
330 330
     private function prepareCallback(?int $processFlag)
331 331
     {
332
-        return function ($msg) use ($processFlag) {
332
+        return function($msg) use ($processFlag) {
333 333
             return $processFlag;
334 334
         };
335 335
     }
Please login to merge, or discard this patch.
Tests/RabbitMq/AMQPConnectionFactoryTest.php 1 patch
Spacing   +117 added lines, -117 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@  discard block
 block discarded – undo
23 23
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
24 24
         $this->assertEquals(array(
25 25
             'localhost', // host
26
-            5672,        // port
27
-            'guest',     // user
28
-            'guest',     // password
29
-            '/',         // vhost
30
-            false,       // insist
31
-            "AMQPLAIN",  // login method
32
-            null,        // login response
33
-            "en_US",     // locale
34
-            3,           // connection timeout
35
-            3,           // read write timeout
36
-            null,        // context
37
-            false,       // keepalive
38
-            0,           // heartbeat
26
+            5672, // port
27
+            'guest', // user
28
+            'guest', // password
29
+            '/', // vhost
30
+            false, // insist
31
+            "AMQPLAIN", // login method
32
+            null, // login response
33
+            "en_US", // locale
34
+            3, // connection timeout
35
+            3, // read write timeout
36
+            null, // context
37
+            false, // keepalive
38
+            0, // heartbeat
39 39
         ), $instance->constructParams);
40 40
     }
41 41
 
@@ -51,18 +51,18 @@  discard block
 block discarded – undo
51 51
         $this->assertInstanceOf('PhpAmqpLib\Connection\AMQPSocketConnection', $instance);
52 52
         $this->assertEquals(array(
53 53
             'localhost', // host
54
-            5672,        // port
55
-            'guest',     // user
56
-            'guest',     // password
57
-            '/',         // vhost
58
-            false,       // insist
59
-            "AMQPLAIN",  // login method
60
-            null,        // login response
61
-            "en_US",     // locale
62
-            3,           // read_timeout
63
-            false,       // keepalive
64
-            3,           // write_timeout
65
-            0,           // heartbeat
54
+            5672, // port
55
+            'guest', // user
56
+            'guest', // password
57
+            '/', // vhost
58
+            false, // insist
59
+            "AMQPLAIN", // login method
60
+            null, // login response
61
+            "en_US", // locale
62
+            3, // read_timeout
63
+            false, // keepalive
64
+            3, // write_timeout
65
+            0, // heartbeat
66 66
         ), $instance->constructParams);
67 67
     }
68 68
 
@@ -81,18 +81,18 @@  discard block
 block discarded – undo
81 81
         $this->assertInstanceOf('PhpAmqpLib\Connection\AMQPSocketConnection', $instance);
82 82
         $this->assertEquals(array(
83 83
             'localhost', // host
84
-            5672,        // port
85
-            'guest',     // user
86
-            'guest',     // password
87
-            '/',         // vhost
88
-            false,       // insist
89
-            "AMQPLAIN",  // login method
90
-            null,        // login response
91
-            "en_US",     // locale
92
-            31,           // read_timeout
93
-            false,       // keepalive
94
-            32,           // write_timeout
95
-            0,           // heartbeat
84
+            5672, // port
85
+            'guest', // user
86
+            'guest', // password
87
+            '/', // vhost
88
+            false, // insist
89
+            "AMQPLAIN", // login method
90
+            null, // login response
91
+            "en_US", // locale
92
+            31, // read_timeout
93
+            false, // keepalive
94
+            32, // write_timeout
95
+            0, // heartbeat
96 96
         ), $instance->constructParams);
97 97
     }
98 98
 
@@ -113,20 +113,20 @@  discard block
 block discarded – undo
113 113
         $instance = $factory->createConnection();
114 114
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
115 115
         $this->assertEquals(array(
116
-            'foo_host',  // host
117
-            123,         // port
118
-            'foo_user',  // user
116
+            'foo_host', // host
117
+            123, // port
118
+            'foo_user', // user
119 119
             'foo_password', // password
120
-            '/vhost',    // vhost
121
-            false,       // insist
122
-            "AMQPLAIN",  // login method
123
-            null,        // login response
124
-            "en_US",     // locale
125
-            3,           // connection timeout
126
-            3,           // read write timeout
127
-            null,        // context
128
-            false,       // keepalive
129
-            0,           // heartbeat
120
+            '/vhost', // vhost
121
+            false, // insist
122
+            "AMQPLAIN", // login method
123
+            null, // login response
124
+            "en_US", // locale
125
+            3, // connection timeout
126
+            3, // read write timeout
127
+            null, // context
128
+            false, // keepalive
129
+            0, // heartbeat
130 130
         ), $instance->constructParams);
131 131
     }
132 132
 
@@ -148,20 +148,20 @@  discard block
 block discarded – undo
148 148
         $instance = $factory->createConnection();
149 149
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
150 150
         $this->assertEquals(array(
151
-            'bar_host',  // host
152
-            321,         // port
153
-            'bar_user',  // user
151
+            'bar_host', // host
152
+            321, // port
153
+            'bar_user', // user
154 154
             'bar_password', // password
155
-            'whost',     // vhost
156
-            false,       // insist
157
-            "AMQPLAIN",  // login method
158
-            null,        // login response
159
-            "en_US",     // locale
160
-            6,           // connection timeout
161
-            6,           // read write timeout
162
-            null,        // context
163
-            true,        // keepalive
164
-            0,           // heartbeat
155
+            'whost', // vhost
156
+            false, // insist
157
+            "AMQPLAIN", // login method
158
+            null, // login response
159
+            "en_US", // locale
160
+            6, // connection timeout
161
+            6, // read write timeout
162
+            null, // context
163
+            true, // keepalive
164
+            0, // heartbeat
165 165
         ), $instance->constructParams);
166 166
     }
167 167
 
@@ -178,20 +178,20 @@  discard block
 block discarded – undo
178 178
         $instance = $factory->createConnection();
179 179
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
180 180
         $this->assertEquals(array(
181
-            'hoast',     // host
182
-            10000,       // port
183
-            'usera',     // user
184
-            'apass',     // password
185
-            'v/host',    // vhost
186
-            false,       // insist
187
-            "AMQPLAIN",  // login method
188
-            null,        // login response
189
-            "en_US",     // locale
190
-            6,           // connection timeout
191
-            6,           // read write timeout
192
-            null,        // context
193
-            true,        // keepalive
194
-            0,           // heartbeat
181
+            'hoast', // host
182
+            10000, // port
183
+            'usera', // user
184
+            'apass', // password
185
+            'v/host', // vhost
186
+            false, // insist
187
+            "AMQPLAIN", // login method
188
+            null, // login response
189
+            "en_US", // locale
190
+            6, // connection timeout
191
+            6, // read write timeout
192
+            null, // context
193
+            true, // keepalive
194
+            0, // heartbeat
195 195
         ), $instance->constructParams);
196 196
     }
197 197
 
@@ -208,20 +208,20 @@  discard block
 block discarded – undo
208 208
         $instance = $factory->createConnection();
209 209
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
210 210
         $this->assertEquals(array(
211
-            'host',     // host
212
-            321,        // port
213
-            'user',     // user
214
-            'pass',     // password
215
-            '',         // vhost
216
-            false,      // insist
211
+            'host', // host
212
+            321, // port
213
+            'user', // user
214
+            'pass', // password
215
+            '', // vhost
216
+            false, // insist
217 217
             "AMQPLAIN", // login method
218
-            null,       // login response
219
-            "en_US",    // locale
220
-            6,          // connection timeout
221
-            6,          // read write timeout
222
-            null,       // context
223
-            true,       // keepalive
224
-            0,          // heartbeat
218
+            null, // login response
219
+            "en_US", // locale
220
+            6, // connection timeout
221
+            6, // read write timeout
222
+            null, // context
223
+            true, // keepalive
224
+            0, // heartbeat
225 225
         ), $instance->constructParams);
226 226
     }
227 227
 
@@ -254,19 +254,19 @@  discard block
 block discarded – undo
254 254
         $this->assertEquals(array('ssl' => array('verify_peer' => false)), $options);
255 255
         $this->assertEquals(array(
256 256
             'ssl_host', // host
257
-            123,        // port
257
+            123, // port
258 258
             'ssl_user', // user
259 259
             'ssl_password', // password
260
-            '/ssl',      // vhost
261
-            false,       // insist
262
-            "AMQPLAIN",  // login method
263
-            null,        // login response
264
-            "en_US",     // locale
265
-            3,           // connection timeout
266
-            3,           // read write timeout
267
-            null,        // context checked earlier
268
-            false,       // keepalive
269
-            0,           // heartbeat
260
+            '/ssl', // vhost
261
+            false, // insist
262
+            "AMQPLAIN", // login method
263
+            null, // login response
264
+            "en_US", // locale
265
+            3, // connection timeout
266
+            3, // read write timeout
267
+            null, // context checked earlier
268
+            false, // keepalive
269
+            0, // heartbeat
270 270
         ), $instance->constructParams);
271 271
     }
272 272
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             ->method('getConnectionParameters')
278 278
             ->will($this->returnValue(
279 279
                 array(
280
-                    'constructor_args' => array(1,2,3,4)
280
+                    'constructor_args' => array(1, 2, 3, 4)
281 281
                 )
282 282
             ));
283 283
         $factory = new AMQPConnectionFactory(
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         /** @var AMQPConnection $instance */
290 290
         $instance = $factory->createConnection();
291 291
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
292
-        $this->assertEquals(array(1,2,3,4), $instance->constructParams);
292
+        $this->assertEquals(array(1, 2, 3, 4), $instance->constructParams);
293 293
     }
294 294
 
295 295
     public function testConnectionsParametersProvider(): void
@@ -316,20 +316,20 @@  discard block
 block discarded – undo
316 316
         $instance = $factory->createConnection();
317 317
         $this->assertInstanceOf('OldSound\RabbitMqBundle\Tests\RabbitMq\Fixtures\AMQPConnection', $instance);
318 318
         $this->assertEquals(array(
319
-            '1.2.3.4',   // host
320
-            5678,        // port
321
-            'admin',     // user
322
-            'admin',     // password
323
-            'foo',       // vhost
324
-            false,       // insist
325
-            "AMQPLAIN",  // login method
326
-            null,        // login response
327
-            "en_US",     // locale
328
-            3,           // connection timeout
329
-            3,           // read write timeout
330
-            null,        // context
331
-            false,       // keepalive
332
-            0,           // heartbeat
319
+            '1.2.3.4', // host
320
+            5678, // port
321
+            'admin', // user
322
+            'admin', // password
323
+            'foo', // vhost
324
+            false, // insist
325
+            "AMQPLAIN", // login method
326
+            null, // login response
327
+            "en_US", // locale
328
+            3, // connection timeout
329
+            3, // read write timeout
330
+            null, // context
331
+            false, // keepalive
332
+            0, // heartbeat
333 333
         ), $instance->constructParams);
334 334
     }
335 335
 
Please login to merge, or discard this patch.
RabbitMq/MultipleConsumer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             //PHP 5.3 Compliant
62 62
             $currentObject = $this;
63 63
 
64
-            $this->getChannel()->basic_consume($name, $this->getQueueConsumerTag($name), false, false, false, false, function (AMQPMessage $msg) use($currentObject, $name) {
64
+            $this->getChannel()->basic_consume($name, $this->getQueueConsumerTag($name), false, false, false, false, function(AMQPMessage $msg) use($currentObject, $name) {
65 65
                 $currentObject->processQueueMessage($name, $msg);
66 66
             });
67 67
         }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     protected function queueDeclare(): void
71 71
     {
72 72
         foreach ($this->queues as $name => $options) {
73
-            list($queueName, ,) = $this->getChannel()->queue_declare(
73
+            list($queueName,,) = $this->getChannel()->queue_declare(
74 74
                 $name, $options['passive'],
75 75
                 $options['durable'], $options['exclusive'],
76 76
                 $options['auto_delete'], $options['nowait'],
Please login to merge, or discard this patch.
RabbitMq/AmqpPartsHolder.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,21 +5,21 @@
 block discarded – undo
5 5
 class AmqpPartsHolder
6 6
 {
7 7
     /** @var array */
8
-	protected $parts;
8
+    protected $parts;
9 9
 
10
-	public function __construct()
11
-	{
12
-		$this->parts = array();
13
-	}
10
+    public function __construct()
11
+    {
12
+        $this->parts = array();
13
+    }
14 14
 
15
-	public function addPart(string $type, BaseAmqp $part): void
16
-	{
17
-		$this->parts[$type][] = $part;
18
-	}
15
+    public function addPart(string $type, BaseAmqp $part): void
16
+    {
17
+        $this->parts[$type][] = $part;
18
+    }
19 19
 
20
-	public function getParts(string $type): array
21
-	{
20
+    public function getParts(string $type): array
21
+    {
22 22
         $type = (string) $type;
23
-		return isset($this->parts[$type]) ? $this->parts[$type] : array();
24
-	}
23
+        return isset($this->parts[$type]) ? $this->parts[$type] : array();
24
+    }
25 25
 }
Please login to merge, or discard this patch.