@@ -377,16 +377,19 @@ |
||
| 377 | 377 | 'people' => $provider, |
| 378 | 378 | 'configKey' => 'cert-pass' |
| 379 | 379 | ]); |
| 380 | - if (!$dacteKey || !$dacteKeyPass) |
|
| 381 | - throw new \Exception("Key cert is required", 1); |
|
| 380 | + if (!$dacteKey || !$dacteKeyPass) { |
|
| 381 | + throw new \Exception("Key cert is required", 1); |
|
| 382 | + } |
|
| 382 | 383 | |
| 383 | 384 | $certPath = $dacteKey->getConfigValue(); |
| 384 | 385 | |
| 385 | - if (! $certPath) |
|
| 386 | - throw new \Exception("Key cert path is invalid: " . $certPath, 1); |
|
| 386 | + if (! $certPath) { |
|
| 387 | + throw new \Exception("Key cert path is invalid: " . $certPath, 1); |
|
| 388 | + } |
|
| 387 | 389 | $certContent = $this->manager->getRepository(File::class)->find($dacteKey->getConfigValue()); |
| 388 | - if (!$certContent) |
|
| 389 | - throw new \Exception("Key content on table files is empty " . $certPath, 1); |
|
| 390 | + if (!$certContent) { |
|
| 391 | + throw new \Exception("Key content on table files is empty " . $certPath, 1); |
|
| 392 | + } |
|
| 390 | 393 | |
| 391 | 394 | return Certificate::readPfx( |
| 392 | 395 | $certContent->getContent(), |