@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | private string |
16 | 16 | $checksum; |
17 | 17 | |
18 | - public function __construct(string|Uuid $uuid, int $size, int $nbChunks, string $checksum) |
|
18 | + public function __construct(string | Uuid $uuid, int $size, int $nbChunks, string $checksum) |
|
19 | 19 | { |
20 | - if(! $uuid instanceof Uuid) |
|
20 | + if( ! $uuid instanceof Uuid) |
|
21 | 21 | { |
22 | 22 | $uuid = new Uuid($uuid); |
23 | 23 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | foreach($requiredKeys as $key) |
36 | 36 | { |
37 | - if(! isset($headers[$key])) |
|
37 | + if( ! isset($headers[$key])) |
|
38 | 38 | { |
39 | 39 | throw new \InvalidArgumentException("Missing $key in chunked message metadata"); |
40 | 40 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Puzzle\AMQP\Workers; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Puzzle\AMQP\Workers; |
6 | 6 |
@@ -41,12 +41,12 @@ |
||
41 | 41 | 'max_execution_time' => self::DEFAULT_MAX_EXECUTION_TIME, |
42 | 42 | ]; |
43 | 43 | |
44 | - if(!empty($this->retries)) |
|
44 | + if( ! empty($this->retries)) |
|
45 | 45 | { |
46 | 46 | $options['instant_retry_attempts'] = $this->retries; |
47 | 47 | } |
48 | 48 | |
49 | - if(!empty($this->delay)) |
|
49 | + if( ! empty($this->delay)) |
|
50 | 50 | { |
51 | 51 | $options['instant_retry_delay'] = $this->delay * 1000000; //computed in microseconds |
52 | 52 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'retry_key_pattern' => sprintf(self::RETRY_ROUTING_KEY_PATTERN, $queue), |
52 | 52 | ]; |
53 | 53 | |
54 | - if(! empty($this->retries)) |
|
54 | + if( ! empty($this->retries)) |
|
55 | 55 | { |
56 | 56 | $options['retry_attempts'] = $this->retries; |
57 | 57 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Puzzle\AMQP\ValueObjects; |
6 | 6 |