@@ -4,11 +4,10 @@ |
||
4 | 4 | require_once '../../../bootstrap.php'; |
5 | 5 | |
6 | 6 | use NFePHP\Common\Certificate; |
7 | -use JsonSchema\Validator; |
|
8 | -use NFePHP\eFinanc\Event; |
|
9 | -use NFePHP\eFinanc\Tools; |
|
10 | 7 | use NFePHP\eFinanc\Common\FakePretty; |
11 | 8 | use NFePHP\eFinanc\Common\Soap\SoapFake; |
9 | +use NFePHP\eFinanc\Event; |
|
10 | +use NFePHP\eFinanc\Tools; |
|
12 | 11 | |
13 | 12 | $config = [ |
14 | 13 | 'tpAmb' => 2, //tipo de ambiente 1 - Produção; 2 - pre-produção |
@@ -3,8 +3,8 @@ |
||
3 | 3 | ini_set('display_errors', 'On'); |
4 | 4 | require_once '../../../bootstrap.php'; |
5 | 5 | |
6 | -use NFePHP\eFinanc\Event; |
|
7 | 6 | use NFePHP\Common\Certificate; |
7 | +use NFePHP\eFinanc\Event; |
|
8 | 8 | |
9 | 9 | $config = [ |
10 | 10 | 'tpAmb' => 2, //tipo de ambiente 1 - Produção; 2 - pre-produção |
@@ -164,7 +164,7 @@ |
||
164 | 164 | /** |
165 | 165 | * Check if certificate is valid |
166 | 166 | * @param Certificate $certificate |
167 | - * @return mixed |
|
167 | + * @return null|Certificate |
|
168 | 168 | * @throws RuntimeException |
169 | 169 | */ |
170 | 170 | private function checkCertValidity(Certificate $certificate = null) |
@@ -15,13 +15,12 @@ |
||
15 | 15 | * @link http://github.com/nfephp-org/sped-efinanceira for the canonical source repository |
16 | 16 | */ |
17 | 17 | |
18 | +use League\Flysystem\Adapter\Local; |
|
19 | +use League\Flysystem\Filesystem; |
|
18 | 20 | use NFePHP\Common\Certificate; |
19 | -use NFePHP\eFinanc\Common\Soap\SoapInterface; |
|
20 | -use NFePHP\Common\Exception\SoapException; |
|
21 | 21 | use NFePHP\Common\Exception\RuntimeException; |
22 | 22 | use NFePHP\Common\Strings; |
23 | -use League\Flysystem\Filesystem; |
|
24 | -use League\Flysystem\Adapter\Local; |
|
23 | +use NFePHP\eFinanc\Common\Soap\SoapInterface; |
|
25 | 24 | use Psr\Log\LoggerInterface; |
26 | 25 | |
27 | 26 | abstract class SoapBase implements SoapInterface |
@@ -15,10 +15,10 @@ |
||
15 | 15 | * @link http://github.com/nfephp-org/sped-efinanceira for the canonical source repository |
16 | 16 | */ |
17 | 17 | |
18 | +use NFePHP\Common\Certificate; |
|
19 | +use NFePHP\Common\Exception\SoapException; |
|
18 | 20 | use NFePHP\eFinanc\Common\Soap\SoapBase; |
19 | 21 | use NFePHP\eFinanc\Common\Soap\SoapInterface; |
20 | -use NFePHP\Common\Exception\SoapException; |
|
21 | -use NFePHP\Common\Certificate; |
|
22 | 22 | use Psr\Log\LoggerInterface; |
23 | 23 | |
24 | 24 | class SoapCurl extends SoapBase implements SoapInterface |
@@ -12,14 +12,14 @@ |
||
12 | 12 | * @author Roberto L. Machado <linux.rlm at gmail dot com> |
13 | 13 | * @link http://github.com/nfephp-org/sped-efinanceira for the canonical source repository |
14 | 14 | */ |
15 | -use stdClass; |
|
16 | 15 | use NFePHP\Common\Validator; |
17 | -use NFePHP\eFinanc\Common\Tools as Base; |
|
18 | 16 | use NFePHP\eFinanc\Common\Crypto; |
19 | 17 | use NFePHP\eFinanc\Common\FactoryInterface; |
18 | +use NFePHP\eFinanc\Common\Tools as Base; |
|
19 | +use NFePHP\eFinanc\Exception\ConsultException; |
|
20 | 20 | use NFePHP\eFinanc\Exception\EventsException; |
21 | 21 | use NFePHP\eFinanc\Exception\ProcessException; |
22 | -use NFePHP\eFinanc\Exception\ConsultException; |
|
22 | +use stdClass; |
|
23 | 23 | |
24 | 24 | class Tools extends Base |
25 | 25 | { |
@@ -4,11 +4,10 @@ |
||
4 | 4 | require_once '../../../bootstrap.php'; |
5 | 5 | |
6 | 6 | use NFePHP\Common\Certificate; |
7 | -use JsonSchema\Validator; |
|
8 | -use NFePHP\eFinanc\Event; |
|
9 | -use NFePHP\eFinanc\Tools; |
|
10 | 7 | use NFePHP\eFinanc\Common\FakePretty; |
11 | 8 | use NFePHP\eFinanc\Common\Soap\SoapFake; |
9 | +use NFePHP\eFinanc\Event; |
|
10 | +use NFePHP\eFinanc\Tools; |
|
12 | 11 | |
13 | 12 | $config = [ |
14 | 13 | 'tpAmb' => 2, //tipo de ambiente 1 - Produção; 2 - pre-produção |
@@ -4,11 +4,10 @@ |
||
4 | 4 | require_once '../../../bootstrap.php'; |
5 | 5 | |
6 | 6 | use NFePHP\Common\Certificate; |
7 | -use JsonSchema\Validator; |
|
8 | -use NFePHP\eFinanc\Event; |
|
9 | -use NFePHP\eFinanc\Tools; |
|
10 | 7 | use NFePHP\eFinanc\Common\FakePretty; |
11 | 8 | use NFePHP\eFinanc\Common\Soap\SoapFake; |
9 | +use NFePHP\eFinanc\Event; |
|
10 | +use NFePHP\eFinanc\Tools; |
|
12 | 11 | |
13 | 12 | $config = [ |
14 | 13 | 'tpAmb' => 2, //tipo de ambiente 1 - Produção; 2 - pre-produção |
@@ -4,11 +4,10 @@ |
||
4 | 4 | require_once '../../../bootstrap.php'; |
5 | 5 | |
6 | 6 | use NFePHP\Common\Certificate; |
7 | -use JsonSchema\Validator; |
|
8 | -use NFePHP\eFinanc\Event; |
|
9 | -use NFePHP\eFinanc\Tools; |
|
10 | 7 | use NFePHP\eFinanc\Common\FakePretty; |
11 | 8 | use NFePHP\eFinanc\Common\Soap\SoapFake; |
9 | +use NFePHP\eFinanc\Event; |
|
10 | +use NFePHP\eFinanc\Tools; |
|
12 | 11 | |
13 | 12 | $config = [ |
14 | 13 | 'tpAmb' => 2, //tipo de ambiente 1 - Produção; 2 - pre-produção |
@@ -3,8 +3,8 @@ |
||
3 | 3 | ini_set('display_errors', 'On'); |
4 | 4 | require_once '../../../bootstrap.php'; |
5 | 5 | |
6 | -use NFePHP\eFinanc\Event; |
|
7 | 6 | use NFePHP\Common\Certificate; |
7 | +use NFePHP\eFinanc\Event; |
|
8 | 8 | |
9 | 9 | $config = [ |
10 | 10 | 'tpAmb' => 2, //tipo de ambiente 1 - Produção; 2 - pre-produção |