Passed
Push — master ( 1d4724...87feaa )
by Luiz Kim
01:43
created
src/Library/NFePHP.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -377,12 +377,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.