Passed
Push — master ( 56af05...f48c1a )
by Roberto
04:56 queued 02:33
created
src/Certificate/Oids.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     private static function loadOids()
53 53
     {
54
-        $json = file_get_contents(__DIR__ .'/oids.json');
54
+        $json = file_get_contents(__DIR__ . '/oids.json');
55 55
         self::$oidsTable = (array) json_decode($json, true);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Strings.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
     public static function replaceSpecialsChars($string)
24 24
     {
25 25
         $string = trim($string);
26
-        $aFind = ['&','á','à','ã','â','é','ê','í','ó','ô','õ','ú','ü',
27
-            'ç','Á','À','Ã','Â','É','Ê','Í','Ó','Ô','Õ','Ú','Ü','Ç'];
28
-        $aSubs = ['e','a','a','a','a','e','e','i','o','o','o','u','u',
29
-            'c','A','A','A','A','E','E','I','O','O','O','U','U','C'];
26
+        $aFind = ['&', 'á', 'à', 'ã', 'â', 'é', 'ê', 'í', 'ó', 'ô', 'õ', 'ú', 'ü',
27
+            'ç', 'Á', 'À', 'Ã', 'Â', 'É', 'Ê', 'Í', 'Ó', 'Ô', 'Õ', 'Ú', 'Ü', 'Ç'];
28
+        $aSubs = ['e', 'a', 'a', 'a', 'a', 'e', 'e', 'i', 'o', 'o', 'o', 'u', 'u',
29
+            'c', 'A', 'A', 'A', 'A', 'E', 'E', 'I', 'O', 'O', 'O', 'U', 'U', 'C'];
30 30
         $newstr = str_replace($aFind, $aSubs, $string);
31 31
         $newstr = preg_replace("/[^a-zA-Z0-9 @,-.;:\/]/", "", $newstr);
32 32
         return $newstr;
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
     public static function clearProtocoledXML($string)
85 85
     {
86 86
         $procXML = self::clearXmlString($string);
87
-        $aApp = array('nfe','cte','mdfe');
87
+        $aApp = array('nfe', 'cte', 'mdfe');
88 88
         foreach ($aApp as $app) {
89 89
             $procXML = str_replace(
90
-                'xmlns="http://www.portalfiscal.inf.br/'.$app.'" xmlns="http://www.w3.org/2000/09/xmldsig#"',
91
-                'xmlns="http://www.portalfiscal.inf.br/'.$app.'"',
90
+                'xmlns="http://www.portalfiscal.inf.br/' . $app . '" xmlns="http://www.w3.org/2000/09/xmldsig#"',
91
+                'xmlns="http://www.portalfiscal.inf.br/' . $app . '"',
92 92
                 $procXML
93 93
             );
94 94
         }
Please login to merge, or discard this patch.
src/Soap/SoapClientExtended.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class SoapClientExtended extends SoapClient
8 8
 {
9
-   /**
9
+    /**
10 10
      * __construct
11 11
      * @param mixed $wsdl NULL for non-wsdl mode or URL string for wsdl mode
12 12
      * @param array $options
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function __doRequest($request, $location, $action, $version, $oneWay = 0)
32 32
     {
33
-        $search = [":ns1","ns1:","\n","\r"];
33
+        $search = [":ns1", "ns1:", "\n", "\r"];
34 34
         return parent::__doRequest(
35 35
             str_replace($search, '', $request),
36 36
             $location,
Please login to merge, or discard this patch.
src/Soap/SoapCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     public static function info($code)
24 24
     {
25
-        $codes = (array) json_decode(file_get_contents(__DIR__.'/httpcodes.json'), true);
25
+        $codes = (array) json_decode(file_get_contents(__DIR__ . '/httpcodes.json'), true);
26 26
         if (array_key_exists($code, $codes)) {
27 27
             return $codes[$code];
28 28
         }
Please login to merge, or discard this patch.
src/Soap/SoapCurl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile);
97 97
             curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile);
98 98
             curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
99
-            if (! empty($envelope)) {
99
+            if (!empty($envelope)) {
100 100
                 curl_setopt($oCurl, CURLOPT_POST, 1);
101 101
                 curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope);
102 102
                 curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters);
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
         if ($this->proxyIP != '') {
136 136
             curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1);
137 137
             curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
138
-            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort);
138
+            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort);
139 139
             if ($this->proxyUser != '') {
140
-                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass);
140
+                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass);
141 141
                 curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
142 142
             }
143 143
         }
Please login to merge, or discard this patch.
src/Exception/ValidatorException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     {
18 18
         $msg = '';
19 19
         foreach ($errors as $error) {
20
-            $msg .= $error->message."\n";
20
+            $msg .= $error->message . "\n";
21 21
         }
22
-        return new static('This XML is not valid. '.$msg);
22
+        return new static('This XML is not valid. ' . $msg);
23 23
     }
24 24
     
25 25
     public static function isNotXml()
Please login to merge, or discard this patch.