Passed
Push — master ( c6a16b...e7459b )
by Roberto
47s queued 12s
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/Soap/SoapClientExtended.php 1 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/Exception/ExceptionCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function __toString()
89 89
     {
90
-        $messages = array_map(function (\Exception $exception) {
90
+        $messages = array_map(function(\Exception $exception) {
91 91
             return $exception->getMessage();
92 92
         }, $this->exceptions);
93 93
         return implode(PHP_EOL, $messages);
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $dom->formatOutput = false;
40 40
         $dom->loadXML($xml, LIBXML_NOBLANKS | LIBXML_NOEMPTYTAG);
41 41
         libxml_clear_errors();
42
-        if (! $dom->schemaValidate($xsd)) {
42
+        if (!$dom->schemaValidate($xsd)) {
43 43
             $errors = [];
44 44
             foreach (libxml_get_errors() as $error) {
45 45
                 $errors[] = $error->message;
Please login to merge, or discard this patch.
src/Certificate/Asn1.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             //get length of OID data
75 75
             $len = self::getLength($data);
76 76
             //get only a string with bytes belongs to OID
77
-            $oidData = substr($data, 2 + $bytes, $len-($bytes));
77
+            $oidData = substr($data, 2 + $bytes, $len - ($bytes));
78 78
             //parse OID data many possibel formats and structures
79 79
             $head = strlen($oidData) - strlen($xcv) - 2;
80 80
             $ret = substr($oidData, -$head);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             if ($num == 0) {
119 119
                 $bun = 40 * $partes[$num];
120 120
             } elseif ($num == 1) {
121
-                $bun +=  $partes[$num];
121
+                $bun += $partes[$num];
122 122
                 $abBinary[] = $bun;
123 123
             } else {
124 124
                 $abBinary = self::xBase128($abBinary, (integer) $partes[$num], true);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     {
143 143
         $abc = $abIn;
144 144
         if ($qIn > 127) {
145
-            $abc = self::xBase128($abc, floor($qIn/128), false);
145
+            $abc = self::xBase128($abc, floor($qIn / 128), false);
146 146
         }
147 147
         $qIn2 = $qIn % 128;
148 148
         if ($flag) {
Please login to merge, or discard this patch.
src/DOMImproved.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
     public function getChave($nodeName = 'infNFe')
126 126
     {
127 127
         $node = $this->getElementsByTagName($nodeName)->item(0);
128
-        if (! empty($node)) {
128
+        if (!empty($node)) {
129 129
             $chaveId = $node->getAttribute("Id");
130
-            $chave =  preg_replace('/[^0-9]/', '', $chaveId);
130
+            $chave = preg_replace('/[^0-9]/', '', $chaveId);
131 131
             return $chave;
132 132
         }
133 133
         return '';
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     public function addArrayChild(DOMElement &$parent, $arr)
249 249
     {
250 250
         $num = 0;
251
-        if (! empty($arr) && ! empty($parent)) {
251
+        if (!empty($arr) && !empty($parent)) {
252 252
             foreach ($arr as $node) {
253 253
                 $this->appChild($parent, $node, '');
254 254
                 $num++;
Please login to merge, or discard this patch.
src/Signer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 class Signer
34 34
 {
35
-    const CANONICAL = [true,false,null,null];
35
+    const CANONICAL = [true, false, null, null];
36 36
     
37 37
     /**
38 38
      * Make Signature tag
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $nsSignatureMethod = 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256';
119 119
             $nsDigestMethod = 'http://www.w3.org/2001/04/xmlenc#sha256';
120 120
         }
121
-        $nsTransformMethod1 ='http://www.w3.org/2000/09/xmldsig#enveloped-signature';
121
+        $nsTransformMethod1 = 'http://www.w3.org/2000/09/xmldsig#enveloped-signature';
122 122
         $nsTransformMethod2 = 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315';
123 123
         $idSigned = trim($node->getAttribute($mark));
124 124
         $digestValue = self::makeDigest($node, $digestAlgorithm, $canonical);
Please login to merge, or discard this patch.
src/Tags/Tag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,8 +194,8 @@
 block discarded – undo
194 194
         $mdec = strpos($n[1], '-');
195 195
         $p = explode('.', $value);
196 196
         
197
-        $ndec = !empty($p[1]) ? strlen($p[1]) : 0;//decimal digits
198
-        $nint = strlen($p[0]);//integer digits
197
+        $ndec = !empty($p[1]) ? strlen($p[1]) : 0; //decimal digits
198
+        $nint = strlen($p[0]); //integer digits
199 199
         if ($nint > $n[0]) {
200 200
             throw new \InvalidArgumentException("O numero é maior que o permitido [$format].");
201 201
         }
Please login to merge, or discard this patch.