Passed
Push — master ( 44e8a7...e83590 )
by Luiz Kim
13:16 queued 05:49
created
src/Library/NFePHP.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -377,16 +377,19 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.