Test Failed
Push — master ( cf9dab...1a47e3 )
by
unknown
04:56
created
src/SmartCNAB/Services/Remittances/Banks/SICOOB/File400.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @param  mixed  $value
82 82
      * @param  array  $data
83
-     * @return mixed
83
+     * @return integer
84 84
      */
85 85
     protected function mutateDetailCompanyDocumentType(
86 86
         $value,
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @param  mixed  $value
112 112
      * @param  array  $data
113
-     * @return mixed
113
+     * @return integer
114 114
      */
115 115
     protected function mutateDetailDocumentType(
116 116
         $value,
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * Mutates a guarantee contract on detail.
124 124
      *
125 125
      * @param  mixed  $value
126
-     * @return mixed
126
+     * @return string
127 127
      */
128 128
     protected function mutateDetailGuaranteeContract($value)
129 129
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         $value,
101 101
         array $data = []
102 102
     ) {
103
-        if($data['discount'] == '0') return '';
103
+        if ($data['discount'] == '0') return '';
104 104
 
105 105
         return $value ?: $data['expiration'];
106 106
     }
Please login to merge, or discard this patch.
Braces   +24 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,7 +38,9 @@  discard block
 block discarded – undo
38 38
         $value,
39 39
         array $data = []
40 40
     ) {
41
-        if (empty($data['accountDv'])) return $value;
41
+        if (empty($data['accountDv'])) {
42
+            return $value;
43
+        }
42 44
 
43 45
         return $value ?: $data['accountDv'];
44 46
     }
@@ -100,7 +102,9 @@  discard block
 block discarded – undo
100 102
         $value,
101 103
         array $data = []
102 104
     ) {
103
-        if($data['discount'] == '0') return '';
105
+        if($data['discount'] == '0') {
106
+            return '';
107
+        }
104 108
 
105 109
         return $value ?: $data['expiration'];
106 110
     }
@@ -141,7 +145,9 @@  discard block
 block discarded – undo
141 145
         $value,
142 146
         array $data = []
143 147
     ) {
144
-        if (empty($data['guaranteeContract'])) return $value;
148
+        if (empty($data['guaranteeContract'])) {
149
+            return $value;
150
+        }
145 151
 
146 152
         return $value ?: substr($data['guaranteeContract'], -1);
147 153
     }
@@ -159,7 +165,9 @@  discard block
 block discarded – undo
159 165
         array $data = [],
160 166
         array $meta = []
161 167
     ) {
162
-        if (empty($data['branch'])) return $value;
168
+        if (empty($data['branch'])) {
169
+            return $value;
170
+        }
163 171
 
164 172
         return empty($data['branch']) ? $value : $data['branch'];
165 173
     }
@@ -177,7 +185,9 @@  discard block
 block discarded – undo
177 185
         array $data = [],
178 186
         array $meta = []
179 187
     ) {
180
-        if (empty($data['branch'])) return $value;
188
+        if (empty($data['branch'])) {
189
+            return $value;
190
+        }
181 191
 
182 192
         return empty($data['branchDv']) ? $value : $data['branchDv'];
183 193
     }
@@ -204,7 +214,9 @@  discard block
 block discarded – undo
204 214
         $value,
205 215
         array $data = []
206 216
     ) {
207
-        if (empty($data['branch'])) return $value;
217
+        if (empty($data['branch'])) {
218
+            return $value;
219
+        }
208 220
 
209 221
         return empty($data['branchDv']) ? $value : $data['branchDv'];
210 222
     }
@@ -220,7 +232,9 @@  discard block
 block discarded – undo
220 232
         $value,
221 233
         array $data = []
222 234
     ) {
223
-        if (empty($data['companyCode'])) return $value;
235
+        if (empty($data['companyCode'])) {
236
+            return $value;
237
+        }
224 238
 
225 239
         return $value ? substr($value, 0, -1) : substr($data['companyCode'], 0, -1);
226 240
     }
@@ -236,7 +250,9 @@  discard block
 block discarded – undo
236 250
         $value,
237 251
         array $data = []
238 252
     ) {
239
-        if (empty($data['companyCode'])) return $value;
253
+        if (empty($data['companyCode'])) {
254
+            return $value;
255
+        }
240 256
 
241 257
         return $value ? substr($data['value'], -1) : substr($data['companyCode'], -1);
242 258
     }
Please login to merge, or discard this patch.
src/SmartCNAB/Services/Remittances/Banks/Santander/File400.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,6 +88,6 @@
 block discarded – undo
88 88
             return $value ?: 0;
89 89
         }
90 90
 
91
-        return !empty($data['deadline'])? $data['deadline'] : $value;
91
+        return ! empty($data['deadline']) ? $data['deadline'] : $value;
92 92
     }
93 93
 }
Please login to merge, or discard this patch.
src/SmartCNAB/Support/Picture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     {
97 97
         $parsed = array_merge([
98 98
             'data-type' => 'numeric',
99
-            'info-type' => empty($meta['type'])? 'generic' : $meta['type'],
99
+            'info-type' => empty($meta['type']) ? 'generic' : $meta['type'],
100 100
             'strict' => true,
101 101
             'translit' => true,
102 102
         ], $meta);
Please login to merge, or discard this patch.