@@ -21,17 +21,17 @@ |
||
| 21 | 21 | private function coerce_to_bool(String $value, String $name) |
| 22 | 22 | { |
| 23 | 23 | switch (strtolower($value)) { |
| 24 | - case "yes": |
|
| 25 | - case "1": |
|
| 26 | - case "true": |
|
| 27 | - return true; |
|
| 28 | - case "no": |
|
| 29 | - case "0": |
|
| 30 | - case "false": |
|
| 31 | - return false; |
|
| 32 | - default: |
|
| 33 | - throw new \Exception("Cannot coerce value '{$value}' into a boolean for {$name}"); |
|
| 34 | - return false; |
|
| 24 | + case "yes": |
|
| 25 | + case "1": |
|
| 26 | + case "true": |
|
| 27 | + return true; |
|
| 28 | + case "no": |
|
| 29 | + case "0": |
|
| 30 | + case "false": |
|
| 31 | + return false; |
|
| 32 | + default: |
|
| 33 | + throw new \Exception("Cannot coerce value '{$value}' into a boolean for {$name}"); |
|
| 34 | + return false; |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $rmq_config = $rmq_config ?: []; |
| 17 | 17 | $this->rmq_config['exchanges'] = isset($rmq_config['exchanges']) ? $rmq_config['exchanges'] : []; |
| 18 | - $this->rmq_config['queues'] = isset($rmq_config['queues']) ? $rmq_config['queues'] : []; |
|
| 18 | + $this->rmq_config['queues'] = isset($rmq_config['queues']) ? $rmq_config['queues'] : []; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | private function coerce_to_bool(String $value, String $name) |