@@ -377,12 +377,14 @@ |
||
| 377 | 377 | 'people' => $provider, |
| 378 | 378 | 'config_key' => 'cert-pass' |
| 379 | 379 | ]); |
| 380 | - if (!$dacteKey || !$dacteKeyPass) |
|
| 381 | - throw new \Exception("DACTE key cert is required", 1); |
|
| 380 | + if (!$dacteKey || !$dacteKeyPass) { |
|
| 381 | + throw new \Exception("DACTE key cert is required", 1); |
|
| 382 | + } |
|
| 382 | 383 | |
| 383 | 384 | $certPath = $this->appKernel->getProjectDir() . $dacteKey->getConfigValue(); |
| 384 | - if (!is_file($certPath)) |
|
| 385 | - throw new \Exception("DACTE key cert path is invalid", 1); |
|
| 385 | + if (!is_file($certPath)) { |
|
| 386 | + throw new \Exception("DACTE key cert path is invalid", 1); |
|
| 387 | + } |
|
| 386 | 388 | return Certificate::readPfx($this->getSignData($order), $dacteKeyPass->getConfigValue()); |
| 387 | 389 | } |
| 388 | 390 | |