Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/website/class/website.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
         return $this->LibStatut($this->status, $mode);
827 827
     }
828 828
 
829
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
829
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
830 830
     /**
831 831
      *  Return the label of a given status
832 832
      *
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
      */
837 837
     public function LibStatut($status, $mode = 0)
838 838
     {
839
-		// phpcs:enable
839
+        // phpcs:enable
840 840
         global $langs;
841 841
 
842 842
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
Please login to merge, or discard this patch.
public/htdocs/website/class/websitepage.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
         return $this->LibStatut($this->status, $mode);
827 827
     }
828 828
 
829
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
829
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
830 830
     /**
831 831
      *  Return the label of a given status
832 832
      *
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
      */
837 837
     public function LibStatut($status, $mode = 0)
838 838
     {
839
-		// phpcs:enable
839
+        // phpcs:enable
840 840
         global $langs;
841 841
 
842 842
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
Please login to merge, or discard this patch.
public/htdocs/zapier/class/hook.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
         return $this->LibStatut($this->status, $mode);
577 577
     }
578 578
 
579
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
579
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
580 580
     /**
581 581
      *  Return the status
582 582
      *
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
      */
588 588
     public function LibStatut($status, $mode = 0)
589 589
     {
590
-		// phpcs:enable
590
+        // phpcs:enable
591 591
         global $langs;
592 592
 
593 593
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
Please login to merge, or discard this patch.
public/htdocs/zapier/class/api_zapier.class.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
         );
296 296
     }
297 297
 
298
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
298
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
299 299
     /**
300 300
      * Clean sensible object datas
301 301
      *
@@ -304,30 +304,30 @@  discard block
 block discarded – undo
304 304
      */
305 305
     public function _cleanObjectDatas($object)
306 306
     {
307
-		// phpcs:disable
308
-		$object = parent::_cleanObjectDatas($object);
309
-
310
-		return $object;
311
-	}
312
-
313
-	/**
314
-	 * Validate fields before create or update object
315
-	 *
316
-	 * @param   array       $data       Array of data to validate
317
-	 * @param   array       $fields     Array of fields needed
318
-	 * @return  array
319
-	 *
320
-	 * @throws  RestException
321
-	 */
322
-	private function validate($data, $fields)
323
-	{
324
-		$hook = array();
325
-		foreach ($fields as $field) {
326
-			if (!isset($data[$field])) {
327
-				throw new RestException(400, $field." field missing");
328
-			}
329
-			$hook[$field] = $data[$field];
330
-		}
331
-		return $hook;
332
-	}
307
+        // phpcs:disable
308
+        $object = parent::_cleanObjectDatas($object);
309
+
310
+        return $object;
311
+    }
312
+
313
+    /**
314
+     * Validate fields before create or update object
315
+     *
316
+     * @param   array       $data       Array of data to validate
317
+     * @param   array       $fields     Array of fields needed
318
+     * @return  array
319
+     *
320
+     * @throws  RestException
321
+     */
322
+    private function validate($data, $fields)
323
+    {
324
+        $hook = array();
325
+        foreach ($fields as $field) {
326
+            if (!isset($data[$field])) {
327
+                throw new RestException(400, $field." field missing");
328
+            }
329
+            $hook[$field] = $data[$field];
330
+        }
331
+        return $hook;
332
+    }
333 333
 }
Please login to merge, or discard this patch.
public/htdocs/takepos/receipt.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -163,15 +163,15 @@  discard block
 block discarded – undo
163 163
         <th class="right"><?php print $langs->trans("Qty"); ?></th>
164 164
         <th class="right"><?php if ($gift != 1) {
165 165
             print $langs->trans("Price");
166
-                          } ?></th>
166
+                            } ?></th>
167 167
         <?php  if (getDolGlobalString('TAKEPOS_SHOW_HT_RECEIPT')) { ?>
168 168
         <th class="right"><?php if ($gift != 1) {
169 169
             print $langs->trans("TotalHT");
170
-                          } ?></th>
170
+                            } ?></th>
171 171
         <?php } ?>
172 172
         <th class="right"><?php if ($gift != 1) {
173 173
             print $langs->trans("TotalTTC");
174
-                          } ?></th>
174
+                            } ?></th>
175 175
     </tr>
176 176
     </thead>
177 177
     <tbody>
@@ -201,17 +201,17 @@  discard block
 block discarded – undo
201 201
             <td class="right"><?php echo $line->qty; ?></td>
202 202
             <td class="right"><?php if ($gift != 1) {
203 203
                 echo price(price2num($line->total_ttc / $line->qty, 'MT'), 1);
204
-                              } ?></td>
204
+                                } ?></td>
205 205
             <?php
206 206
             if (getDolGlobalString('TAKEPOS_SHOW_HT_RECEIPT')) { ?>
207 207
                         <td class="right"><?php if ($gift != 1) {
208 208
                             echo price($line->total_ht, 1);
209
-                                          } ?></td>
209
+                                            } ?></td>
210 210
                 <?php
211 211
             } ?>
212 212
             <td class="right"><?php if ($gift != 1) {
213 213
                 echo price($line->total_ttc, 1);
214
-                              } ?></td>
214
+                                } ?></td>
215 215
         </tr>
216 216
             <?php
217 217
         }
@@ -224,10 +224,10 @@  discard block
 block discarded – undo
224 224
 <tr>
225 225
     <th class="right"><?php if ($gift != 1) {
226 226
         echo $langs->trans("TotalHT");
227
-                      } ?></th>
227
+                        } ?></th>
228 228
     <td class="right"><?php if ($gift != 1) {
229 229
         echo price($object->total_ht, 1, '', 1, - 1, - 1, $conf->currency) . "\n";
230
-                      } ?></td>
230
+                        } ?></td>
231 231
 </tr>
232 232
 <?php if (getDolGlobalString('TAKEPOS_TICKET_VAT_GROUPPED')) {
233 233
         $vat_groups = array();
@@ -243,10 +243,10 @@  discard block
 block discarded – undo
243 243
     <tr>
244 244
         <th align="right"><?php if ($gift != 1) {
245 245
                 echo $langs->trans("VAT") . ' ' . vatrate($key, 1);
246
-                          } ?></th>
246
+                            } ?></th>
247 247
         <td align="right"><?php if ($gift != 1) {
248 248
                 echo price($val, 1, '', 1, - 1, - 1, $conf->currency) . "\n";
249
-                          } ?></td>
249
+                            } ?></td>
250 250
     </tr>
251 251
         <?php
252 252
     }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 <tr>
255 255
     <th class="right"><?php if ($gift != 1) {
256 256
         echo $langs->trans("TotalVAT") . '</th><td class="right">' . price($object->total_tva, 1, '', 1, - 1, - 1, $conf->currency) . "\n";
257
-                      } ?></td>
257
+                        } ?></td>
258 258
 </tr>
259 259
 <?php }
260 260
 
@@ -264,20 +264,20 @@  discard block
 block discarded – undo
264 264
 <tr>
265 265
     <th class="right"><?php if ($gift != 1) {
266 266
         echo '' . $langs->trans("TotalLT1") . '</th><td class="right">' . price($object->total_localtax1, 1, '', 1, - 1, - 1, $conf->currency) . "\n";
267
-                      } ?></td>
267
+                        } ?></td>
268 268
 </tr>
269 269
 <?php } ?>
270 270
 <?php if (price2num($object->total_localtax2, 'MU') || $mysoc->useLocalTax(2)) { ?>
271 271
 <tr>
272 272
     <th class="right"><?php if ($gift != 1) {
273 273
         echo '' . $langs->trans("TotalLT2") . '</th><td class="right">' . price($object->total_localtax2, 1, '', 1, - 1, - 1, $conf->currency) . "\n";
274
-                      } ?></td>
274
+                        } ?></td>
275 275
 </tr>
276 276
 <?php } ?>
277 277
 <tr>
278 278
     <th class="right"><?php if ($gift != 1) {
279 279
         echo '' . $langs->trans("TotalTTC") . '</th><td class="right">' . price($object->total_ttc, 1, '', 1, - 1, - 1, $conf->currency) . "\n";
280
-                      } ?></td>
280
+                        } ?></td>
281 281
 </tr>
282 282
 <?php
283 283
 if (isModEnabled('multicurrency') && !empty($_SESSION["takeposcustomercurrency"]) && $_SESSION["takeposcustomercurrency"] != "" && $conf->currency != $_SESSION["takeposcustomercurrency"]) {
Please login to merge, or discard this patch.
public/htdocs/takepos/floors.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -228,9 +228,9 @@
 block discarded – undo
228 228
         $floor--;
229 229
         echo $floor;
230 230
         $floor++;
231
-                                                                                                             } else {
232
-                                                                                                                 echo "1";
233
-                                                                                                             } ?>';">
231
+                                                                                                                } else {
232
+                                                                                                                    echo "1";
233
+                                                                                                                } ?>';">
234 234
     <?php } ?>
235 235
     <span class="valignmiddle"><?php echo $langs->trans("Floor") . " " . $floor; ?></span>
236 236
     <img src="./img/arrow-next.png" class="valignmiddle" width="5%" onclick="location.href='floors.php?floor=<?php $floor++;
Please login to merge, or discard this patch.
public/htdocs/takepos/index.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1496,11 +1496,11 @@
 block discarded – undo
1496 1496
             ?>
1497 1497
             <div class="wrapper" <?php if ($count == ($MAXCATEG - 2)) {
1498 1498
                 echo 'onclick="MoreCategories(\'less\')"';
1499
-                                 } elseif ($count == ($MAXCATEG - 1)) {
1500
-                                     echo 'onclick="MoreCategories(\'more\')"';
1501
-                                 } else {
1502
-                                     echo 'onclick="LoadProducts(' . $count . ')"';
1503
-                                 } ?> id="catdiv<?php echo $count; ?>">
1499
+                                    } elseif ($count == ($MAXCATEG - 1)) {
1500
+                                        echo 'onclick="MoreCategories(\'more\')"';
1501
+                                    } else {
1502
+                                        echo 'onclick="LoadProducts(' . $count . ')"';
1503
+                                    } ?> id="catdiv<?php echo $count; ?>">
1504 1504
                 <?php
1505 1505
                 if ($count == ($MAXCATEG - 2)) {
1506 1506
                     //echo '<img class="imgwrapper" src="img/arrow-prev-top.png" height="100%" id="catimg'.$count.'" />';
Please login to merge, or discard this patch.
public/htdocs/contact/canvas/actions_contactcard_common.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         return $object;
82 82
     }
83 83
 
84
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
84
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
85 85
     /**
86 86
      *  Set content of ->tpl array, to use into template
87 87
      *
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function assign_values(&$action, $id)
93 93
     {
94
-		// phpcs:enable
94
+        // phpcs:enable
95 95
         global $conf, $langs, $user, $canvas;
96 96
         global $form, $formcompany, $objsoc;
97 97
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         }
276 276
     }
277 277
 
278
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
278
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
279 279
     /**
280 280
      *  Assign POST values into object
281 281
      *
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      */
284 284
     private function assign_post()
285 285
     {
286
-		// phpcs:enable
286
+        // phpcs:enable
287 287
         global $langs, $mysoc;
288 288
 
289 289
         $this->object->socid = GETPOSTINT("socid");
Please login to merge, or discard this patch.
public/htdocs/contact/canvas/default/actions_contactcard_default.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         return $out;
75 75
     }
76 76
 
77
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
77
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
78 78
     /**
79 79
      *  Assign custom values for canvas
80 80
      *
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function assign_values(&$action, $id)
86 86
     {
87
-		// phpcs:enable
87
+        // phpcs:enable
88 88
         global $conf, $db, $langs, $user;
89 89
         global $form;
90 90
 
Please login to merge, or discard this patch.