Skip to content

Commit e073ea4

Browse files
committed
resolve conflicts
1 parent 36a77f9 commit e073ea4

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
->setUsingCache(false)
88
->setFinder($finder)
99
->setRules([
10-
'psr0' => false,
10+
'psr_autoloading' => false,
1111
'@PSR2' => true,
1212
'blank_line_after_namespace' => true,
1313
'braces' => true,
@@ -17,10 +17,10 @@
1717
'function_declaration' => true,
1818
'indentation_type' => true,
1919
'line_ending' => true,
20-
'lowercase_constants' => true,
20+
'constant_case' => true,
2121
'lowercase_keywords' => true,
2222
'method_argument_space' => [
23-
'ensure_fully_multiline' => true,
23+
'on_multiline' => 'ensure_fully_multiline',
2424
],
2525
'no_break_comment' => true,
2626
'no_closing_tag' => true,
@@ -39,9 +39,9 @@
3939
'visibility_required' => true,
4040
'encoding' => true,
4141
'full_opening_tag' => true,
42-
'blank_line_before_return' => true,
42+
'blank_line_before_statement' => true,
4343
'no_trailing_comma_in_singleline_array' => true,
44-
'trailing_comma_in_multiline_array' => true,
44+
'trailing_comma_in_multiline' => true,
4545
'array_indentation' => true,
4646
'binary_operator_spaces' => [
4747
'operators' => [

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
"@test:style",
5050
"@test:unit"
5151
],
52-
"test:style": "@php vendor/bin/php-cs-fixer fix --config=.php_cs.dist --allow-risky=yes --dry-run --diff --verbose",
52+
"test:style": "@php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run --diff --verbose",
5353
"test:unit": "@php vendor/bin/phpunit",
54-
"fix:style": "@php vendor/bin/php-cs-fixer fix --config=.php_cs.dist --allow-risky=yes --diff --verbose"
54+
"fix:style": "@php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes --diff --verbose"
5555
},
5656
"minimum-stability": "dev",
5757
"prefer-stable": true

src/Console/QueueDeclareCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function handle(RabbitMQConnector $connector): void
4141
$arguments['x-max-priority'] = $maxPriority;
4242
}
4343

44-
if($this->option('quorum')) {
44+
if ($this->option('quorum')) {
4545
$arguments['x-queue-type'] = 'quorum';
4646
}
4747

src/Consumer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ function (AMQPMessage $message) use ($connection, $options, $connectionName, $qu
136136
// make sure we do not need to kill this worker process off completely.
137137
if (! $this->daemonShouldRun($options, $connectionName, $queue)) {
138138
$this->pauseWorker($options, $lastRestart);
139+
139140
continue;
140141
}
141142

src/Queue/Connectors/RabbitMQConnector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,14 @@ private function filter(array $array): array
113113
foreach ($array as $index => &$value) {
114114
if (is_array($value)) {
115115
$value = $this->filter($value);
116+
116117
continue;
117118
}
118119

119120
// If the value is null then remove it.
120121
if ($value === null) {
121122
unset($array[$index]);
123+
122124
continue;
123125
}
124126
}

tests/Functional/TestCase.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
namespace VladimirYuldashev\LaravelQueueRabbitMQ\Tests\Functional;
44

5+
use Exception;
56
use PhpAmqpLib\Connection\AMQPLazyConnection;
7+
use ReflectionClass;
8+
use ReflectionException;
69
use VladimirYuldashev\LaravelQueueRabbitMQ\Tests\TestCase as BaseTestCase;
710

811
abstract class TestCase extends BaseTestCase
@@ -162,15 +165,15 @@ protected function getEnvironmentSetUp($app): void
162165
* @param string $method
163166
* @param array $parameters
164167
* @return mixed
165-
* @throws \Exception
168+
* @throws Exception
166169
*/
167170
protected function callMethod($object, string $method, array $parameters = [])
168171
{
169172
try {
170173
$className = get_class($object);
171-
$reflection = new \ReflectionClass($className);
172-
} catch (\ReflectionException $e) {
173-
throw new \Exception($e->getMessage());
174+
$reflection = new ReflectionClass($className);
175+
} catch (ReflectionException $e) {
176+
throw new Exception($e->getMessage());
174177
}
175178

176179
$method = $reflection->getMethod($method);

0 commit comments

Comments
 (0)