@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | $extension = $config['extension']; |
| 127 | 127 | |
| 128 | - if (empty($extension) || ! isset($this->extensions[$extension])) { |
|
| 128 | + if (empty($extension) || !isset($this->extensions[$extension])) { |
|
| 129 | 129 | throw new InvalidConfigException( |
| 130 | 130 | vsprintf( |
| 131 | 131 | 'The given extension "%s" is not supported. Extensions supported are "%s"', |
@@ -146,14 +146,14 @@ discard block |
||
| 146 | 146 | // Remove the attributes with null value. |
| 147 | 147 | $config = array_filter( |
| 148 | 148 | $config, |
| 149 | - function ($value) { |
|
| 149 | + function($value) { |
|
| 150 | 150 | return null !== $value; |
| 151 | 151 | } |
| 152 | 152 | ); |
| 153 | 153 | |
| 154 | 154 | $class = $this->extensions[$extension]; |
| 155 | 155 | |
| 156 | - if (! class_exists($class)) { |
|
| 156 | + if (!class_exists($class)) { |
|
| 157 | 157 | throw new ClassNotFoundException(vsprintf('Class %s not found.', [$class])); |
| 158 | 158 | } |
| 159 | 159 | |
@@ -102,12 +102,12 @@ discard block |
||
| 102 | 102 | $properties, |
| 103 | 103 | array_filter( |
| 104 | 104 | $this->config, |
| 105 | - function ($value) { |
|
| 105 | + function($value) { |
|
| 106 | 106 | return $value === true; |
| 107 | 107 | } |
| 108 | 108 | ) |
| 109 | 109 | ), |
| 110 | - function ($a, $b) { |
|
| 110 | + function($a, $b) { |
|
| 111 | 111 | return ($a | $b); |
| 112 | 112 | }, |
| 113 | 113 | (AmqpTopic::FLAG_NOPARAM) |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $exchange->setType($this->config['type']); |
| 117 | 117 | $exchange->setFlags($flags); |
| 118 | 118 | |
| 119 | - if (! empty($this->config['arguments'])) { |
|
| 119 | + if (!empty($this->config['arguments'])) { |
|
| 120 | 120 | $exchange->setArguments($this->config['arguments']); |
| 121 | 121 | } |
| 122 | 122 | |
@@ -166,14 +166,14 @@ discard block |
||
| 166 | 166 | try { |
| 167 | 167 | $bind = Collection::make($default)->merge($bind)->all(); |
| 168 | 168 | |
| 169 | - if (! empty($bind['queue'])) { |
|
| 169 | + if (!empty($bind['queue'])) { |
|
| 170 | 170 | $queue = $this->context()->createQueue($bind['queue']); |
| 171 | 171 | $queueBind = new AmqpBind($this->model(), $queue, $bind['routing_key']); |
| 172 | 172 | |
| 173 | 173 | $this->context()->bind($queueBind); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - if (! empty($bind['topic'])) { |
|
| 176 | + if (!empty($bind['topic'])) { |
|
| 177 | 177 | $topic = $this->context()->createTopic($bind['topic']); |
| 178 | 178 | $exchangeBind = new AmqpBind($this->model(), $topic, $bind['routing_key']); |
| 179 | 179 | |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | $properties, |
| 96 | 96 | array_filter( |
| 97 | 97 | $this->config, |
| 98 | - function ($value) { |
|
| 98 | + function($value) { |
|
| 99 | 99 | return $value === true; |
| 100 | 100 | } |
| 101 | 101 | ) |
| 102 | 102 | ), |
| 103 | - function ($a, $b) { |
|
| 103 | + function($a, $b) { |
|
| 104 | 104 | return ($a | $b); |
| 105 | 105 | }, |
| 106 | 106 | (AmqpQueue::FLAG_NOPARAM) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $queue->setFlags($flags); |
| 110 | 110 | |
| 111 | - if (! empty($this->config['arguments'])) { |
|
| 111 | + if (!empty($this->config['arguments'])) { |
|
| 112 | 112 | $queue->setArguments($this->config['arguments']); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | */ |
| 155 | 155 | protected function wireProducer(bool $refresh = false): Amqp\AmqpProducer |
| 156 | 156 | { |
| 157 | - if ($refresh || ! isset($this->producer)) { |
|
| 157 | + if ($refresh || !isset($this->producer)) { |
|
| 158 | 158 | $context = $this->topic->connection()->context(true); |
| 159 | 159 | $this->producer = $context->createProducer(); |
| 160 | 160 | |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | */ |
| 76 | 76 | public function onStart(Event\Consumer\Start $event): void |
| 77 | 77 | { |
| 78 | - if (! extension_loaded('pcntl')) { |
|
| 78 | + if (!extension_loaded('pcntl')) { |
|
| 79 | 79 | throw new Exception('The pcntl extension is required in order to catch signals.'); |
| 80 | 80 | } |
| 81 | 81 | |