Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/core/modules/mailings/partnership.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     }
57 57
 
58 58
 
59
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
59
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
60 60
     /**
61 61
      *    This is the main function that returns the array of emails
62 62
      *
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function add_to_target($mailing_id)
67 67
     {
68
-		// phpcs:enable
68
+        // phpcs:enable
69 69
         global $conf, $langs;
70 70
 
71 71
         $cibles = array();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             $num = $this->db->num_rows($resql);
235 235
 
236 236
             if (empty($conf->partnership->enabled)) {
237
-                $num = 0;   // Force empty list if category module is not enabled
237
+                $num = 0; // Force empty list if category module is not enabled
238 238
             }
239 239
 
240 240
             if ($num) {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         // filter_status_thirdparties
260 260
         include_once DOL_DOCUMENT_ROOT . '/partnership/class/partnership.class.php';
261 261
         $tmppartnership = new Partnership($this->db);
262
-        $dummy = $tmppartnership->getLibStatut(0);  // We call this only to have $tmppartnership->labelStatus loaded
262
+        $dummy = $tmppartnership->getLibStatut(0); // We call this only to have $tmppartnership->labelStatus loaded
263 263
 
264 264
         $s .= $form->selectarray('filter_status_partnership', $tmppartnership->labelStatus, GETPOST('filter_status_partnership'), $langs->trans("Status"));
265 265
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/mailings/fraise.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     }
226 226
 
227 227
 
228
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
228
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
229 229
     /**
230 230
      *  Ajoute destinataires dans table des cibles
231 231
      *
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function add_to_target($mailing_id)
236 236
     {
237
-		// phpcs:enable
237
+        // phpcs:enable
238 238
         global $conf, $langs;
239 239
 
240 240
         // Load translation files required by the page
Please login to merge, or discard this patch.
public/htdocs/core/modules/mailings/xinputfile.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         return $s;
123 123
     }
124 124
 
125
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
125
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
126 126
     /**
127 127
      *  Ajoute destinataires dans table des cibles
128 128
      *
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function add_to_target($mailing_id)
133 133
     {
134
-		// phpcs:enable
134
+        // phpcs:enable
135 135
         global $conf, $langs, $_FILES;
136 136
 
137 137
         require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/files.lib.php';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         $maxfilesizearray = getMaxFileSizeArray();
116 116
         $maxmin = $maxfilesizearray['maxmin'];
117 117
         if ($maxmin > 0) {
118
-            $s .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
118
+            $s .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
119 119
         }
120 120
         $s .= '<input type="file" name="username" class="flat">';
121 121
         return $s;
Please login to merge, or discard this patch.
public/htdocs/core/modules/mailings/contacts1.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     }
330 330
 
331 331
 
332
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
332
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
333 333
     /**
334 334
      *  Add some recipients into target table
335 335
      *
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      */
339 339
     public function add_to_target($mailing_id)
340 340
     {
341
-		// phpcs:enable
341
+        // phpcs:enable
342 342
         global $conf, $langs;
343 343
 
344 344
         $filter = GETPOST('filter', 'alpha');
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function formFilter()
121 121
     {
122
-        global $conf,$langs;
122
+        global $conf, $langs;
123 123
 
124 124
         // Load translation files required by the page
125 125
         $langs->loadLangs(array("commercial", "companies", "suppliers", "categories"));
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $sql = "SELECT sp.poste, count(distinct(sp.email)) AS nb";
131 131
         $sql .= " FROM " . MAIN_DB_PREFIX . "socpeople as sp";
132 132
         $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")";
133
-        $sql .= " AND sp.email <> ''";    // Note that null != '' is false
133
+        $sql .= " AND sp.email <> ''"; // Note that null != '' is false
134 134
         $sql .= " AND sp.statut = 1";
135 135
         $sql .= " AND (sp.poste IS NOT NULL AND sp.poste <> '')";
136 136
         $sql .= " GROUP BY sp.poste";
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $sql .= " " . MAIN_DB_PREFIX . "categorie as c,";
166 166
         $sql .= " " . MAIN_DB_PREFIX . "categorie_contact as cs";
167 167
         $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")";
168
-        $sql .= " AND sp.email <> ''";    // Note that null != '' is false
168
+        $sql .= " AND sp.email <> ''"; // Note that null != '' is false
169 169
         $sql .= " AND sp.statut = 1";
170 170
         $sql .= " AND cs.fk_categorie = c.rowid";
171 171
         $sql .= " AND cs.fk_socpeople = sp.rowid";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         $sql .= " " . MAIN_DB_PREFIX . "categorie as c,";
240 240
         $sql .= " " . MAIN_DB_PREFIX . "categorie_societe as cs";
241 241
         $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")";
242
-        $sql .= " AND sp.email <> ''";    // Note that null != '' is false
242
+        $sql .= " AND sp.email <> ''"; // Note that null != '' is false
243 243
         $sql .= " AND sp.statut = 1";
244 244
         $sql .= " AND cs.fk_categorie = c.rowid";
245 245
         $sql .= " AND cs.fk_soc = sp.fk_soc";
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         $sql .= " " . MAIN_DB_PREFIX . "categorie as c,";
277 277
         $sql .= " " . MAIN_DB_PREFIX . "categorie_fournisseur as cs";
278 278
         $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")";
279
-        $sql .= " AND sp.email <> ''";    // Note that null != '' is false
279
+        $sql .= " AND sp.email <> ''"; // Note that null != '' is false
280 280
         $sql .= " AND sp.statut = 1";
281 281
         $sql .= " AND cs.fk_categorie = c.rowid";
282 282
         $sql .= " AND cs.fk_soc = sp.fk_soc";
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 
437 437
         // Filter on job position
438 438
         $key = $filter_jobposition;
439
-        if (!empty($key) && $key != 'all'  && $key != '-1') {
439
+        if (!empty($key) && $key != 'all' && $key != '-1') {
440 440
             $sql .= " AND sp.poste = '" . $this->db->escape($key) . "'";
441 441
         }
442 442
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/mailings/advthirdparties.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
 
55
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
55
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
56 56
     /**
57 57
      *    This is the main function that returns the array of emails
58 58
      *
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function add_to_target_spec($mailing_id, $socid, $type_of_target, $contactid)
66 66
     {
67
-		// phpcs:enable
67
+        // phpcs:enable
68 68
         global $conf, $langs;
69 69
 
70 70
         dol_syslog(get_class($this) . "::add_to_target_spec socid=" . var_export($socid, true) . ' contactid=' . var_export($contactid, true));
Please login to merge, or discard this patch.
public/htdocs/core/modules/mailings/pomme.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     }
151 151
 
152 152
 
153
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
153
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
154 154
     /**
155 155
      *  Ajoute destinataires dans table des cibles
156 156
      *
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     public function add_to_target($mailing_id)
161 161
     {
162
-		// phpcs:enable
162
+        // phpcs:enable
163 163
         global $conf, $langs;
164 164
         $langs->load("companies");
165 165
 
Please login to merge, or discard this patch.
htdocs/core/modules/mailings/thirdparties_services_expired.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
 
81
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
81
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
82 82
     /**
83 83
      *  This is the main function that returns the array of emails
84 84
      *
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         global $conf;
91 91
 
92
-		// phpcs:enable
92
+        // phpcs:enable
93 93
         $key = GETPOSTINT('filter');
94 94
 
95 95
         $cibles = array();
Please login to merge, or discard this patch.
public/htdocs/core/modules/export/modules_export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
                 if (preg_match("/^export_(.*)\.modules\.php$/i", $file, $reg)) {
101 101
                     $moduleid = $reg[1];
102 102
                     if ($moduleid == 'csv') {
103
-                        continue;   // This may happen if on old file export_csv.modules.php was not correctly deleted
103
+                        continue; // This may happen if on old file export_csv.modules.php was not correctly deleted
104 104
                     }
105 105
 
106 106
                     // Loading Class
Please login to merge, or discard this patch.
public/htdocs/core/modules/export/export_csvutf8.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $this->version_lib = DOL_VERSION;
62 62
     }
63 63
 
64
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
64
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
65 65
     /**
66 66
      *  Output title line into file
67 67
      *
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
80 80
     }
81 81
 
82
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
82
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
83 83
     /**
84 84
      *  Output record line into file
85 85
      *
Please login to merge, or discard this patch.