Passed
Pull Request — master (#107)
by
unknown
03:14
created
src/Common/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
             return true;
217 217
         }
218 218
         $validator = new JsonValid();
219
-        $validator->check($data, (object)['$ref' => 'file://' . $this->jsonschema]);
219
+        $validator->check($data, (object) ['$ref' => 'file://' . $this->jsonschema]);
220 220
         if (!$validator->isValid()) {
221 221
             $msg = "JSON does not validate. Violations:\n";
222 222
             foreach ($validator->getErrors() as $error) {
Please login to merge, or discard this patch.
src/Common/Soap/SoapInterface.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      *
35 35
      * @param Certificate $certificate
36
+     * @return void
36 37
      */
37 38
     public function loadCertificate(Certificate $certificate);
38 39
     
@@ -40,6 +41,7 @@  discard block
 block discarded – undo
40 41
      * Set logger class
41 42
      *
42 43
      * @param LoggerInterface $logger
44
+     * @return LoggerInterface
43 45
      */
44 46
     public function loadLogger(LoggerInterface $logger);
45 47
     
@@ -47,6 +49,7 @@  discard block
 block discarded – undo
47 49
      * Set timeout for connection
48 50
      *
49 51
      * @param int $timesecs
52
+     * @return integer
50 53
      */
51 54
     public function timeout($timesecs);
52 55
     
@@ -54,6 +57,7 @@  discard block
 block discarded – undo
54 57
      * Set security protocol for soap communications
55 58
      *
56 59
      * @param int $protocol
60
+     * @return integer
57 61
      */
58 62
     public function protocol($protocol = self::SSL_DEFAULT);
59 63
     
@@ -64,6 +68,7 @@  discard block
 block discarded – undo
64 68
      * @param int    $port
65 69
      * @param string $user
66 70
      * @param string $password
71
+     * @return void
67 72
      */
68 73
     public function proxy($ip, $port, $user, $password);
69 74
     
@@ -75,7 +80,6 @@  discard block
 block discarded – undo
75 80
      * @param string $action
76 81
      * @param string $envelope
77 82
      * @param array  $parameters
78
-     * @param string $request
79 83
      */
80 84
     public function send(
81 85
         $operation,
Please login to merge, or discard this patch.
src/Common/Soap/SoapBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@
 block discarded – undo
348 348
      *
349 349
      * @param  int $protocol
350 350
      *
351
-     * @return type Description
351
+     * @return integer Description
352 352
      */
353 353
     public function protocol($protocol = self::SSL_DEFAULT)
354 354
     {
Please login to merge, or discard this patch.
src/Common/Soap/SoapCurl.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * @param  string $url
40 40
      * @param  string $action
41 41
      * @param  string $envelope
42
-     * @param  array  $parameters
42
+     * @param  string[]  $parameters
43 43
      *
44 44
      * @return string
45 45
      * @throws \NFePHP\Common\Exception\SoapException
Please login to merge, or discard this patch.
src/Common/Tools.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,6 @@
 block discarded – undo
176 176
     /**
177 177
      * Stringfy layout number
178 178
      *
179
-     * @param  type $layout
180 179
      *
181 180
      * @return string
182 181
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @var array
84 84
      */
85 85
     protected $grupos = [
86
-        1 => [ //EVENTOS INICIAIS grupo [1]
86
+        1 => [//EVENTOS INICIAIS grupo [1]
87 87
             'S-1000',
88 88
             'S-1005',
89 89
             'S-1010',
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             'S-1080',
98 98
             'S-2100'
99 99
         ],
100
-        2 => [ //EVENTOS NÃO PERIÓDICOS grupo [2]
100
+        2 => [//EVENTOS NÃO PERIÓDICOS grupo [2]
101 101
             'S-2190',
102 102
             'S-2200',
103 103
             'S-2205',
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             'S-5011',
122 122
             'S-5012'
123 123
         ],
124
-        3 => [ //EVENTOS PERIÓDICOS grupo [3]
124
+        3 => [//EVENTOS PERIÓDICOS grupo [3]
125 125
             'S-1200',
126 126
             'S-1202',
127 127
             'S-1207',
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
         ];
152 152
 
153 153
         //return $envelope;
154
-        return (string)$this->soap->send(
154
+        return (string) $this->soap->send(
155 155
             $this->method,
156 156
             $this->uri,
157 157
             $this->action,
Please login to merge, or discard this patch.
src/Common/ParamsStandardize.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     protected function getKeys(\stdClass $schema)
44 44
     {
45 45
         return array_keys(
46
-            (array)$this->get(
46
+            (array) $this->get(
47 47
                 $schema,
48 48
                 'properties',
49 49
                 new \stdClass()
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     protected function getProperties(
92 92
         \stdClass $schema,
93 93
         \stdClass $data,
94
-        \stdClass &$clone,
94
+        \stdClass & $clone,
95 95
         $keys,
96 96
         $ref = ''
97 97
     ) {
Please login to merge, or discard this patch.
src/Common/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.