Completed
Pull Request — master (#286)
by Sebastiao
04:07
created
src/Common/Tools.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * Canonical conversion options
99 99
      * @var array
100 100
      */
101
-    protected $canonical = [true,false,null,null];
101
+    protected $canonical = [true, false, null, null];
102 102
     /**
103 103
      * Model of NFe 55 or 65
104 104
      * @var int
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $this->config = json_decode($configJson);
187 187
         $this->pathwsfiles = realpath(
188 188
             __DIR__ . '/../../storage'
189
-        ).'/';
189
+        ) . '/';
190 190
         $this->version($this->config->versao);
191 191
         $this->setEnvironmentTimeZone($this->config->siglaUF);
192 192
         $this->certificate = $certificate;
@@ -269,8 +269,8 @@  discard block
 block discarded – undo
269 269
         $this->versao = $version;
270 270
         $this->config->schemes = $this->availableVersions[$version];
271 271
         $this->pathschemes = realpath(
272
-            __DIR__ . '/../../schemes/'. $this->config->schemes
273
-        ).'/';
272
+            __DIR__ . '/../../schemes/' . $this->config->schemes
273
+        ) . '/';
274 274
         
275 275
         return $this->versao;
276 276
     }
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      */
369 369
     protected function isValid($version, $body, $method)
370 370
     {
371
-        $schema = $this->pathschemes.$method."_v$version.xsd";
371
+        $schema = $this->pathschemes . $method . "_v$version.xsd";
372 372
         if (!is_file($schema)) {
373 373
             return true;
374 374
         }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      * @param array $opt
435 435
      * @return array
436 436
      */
437
-    public function canonicalOptions($opt = [true,false,null,null])
437
+    public function canonicalOptions($opt = [true, false, null, null])
438 438
     {
439 439
         if (!empty($opt) && is_array($opt)) {
440 440
             $this->canonical = $opt;
@@ -553,11 +553,11 @@  discard block
 block discarded – undo
553 553
     {
554 554
         $file = $this->pathwsfiles
555 555
             . DIRECTORY_SEPARATOR
556
-            . "wsnfe_".$this->versao."_mod55.xml";
556
+            . "wsnfe_" . $this->versao . "_mod55.xml";
557 557
         if ($this->modelo == 65) {
558 558
             $file = str_replace('55', '65', $file);
559 559
         }
560
-        if (! file_exists($file)) {
560
+        if (!file_exists($file)) {
561 561
             return '';
562 562
         }
563 563
         return file_get_contents($file);
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
         //os URI estão em storage/uri_consulta_nfce.json
608 608
         $std = json_decode(
609 609
             file_get_contents(
610
-                $this->pathwsfiles.'uri_consulta_nfce.json'
610
+                $this->pathwsfiles . 'uri_consulta_nfce.json'
611 611
             )
612 612
         );
613 613
         return $std->$uf;
Please login to merge, or discard this patch.