Passed
Push — EXTRACT_CLASSES ( c25e41...9f3ede )
by Rafael
55:18
created
public/htdocs/contrat/note.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 $object = new Contrat($db);
54 54
 $object->fetch($id, $ref);
55 55
 
56
-$permissiontoadd   = $user->hasRight('contrat', 'creer');     //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
56
+$permissiontoadd = $user->hasRight('contrat', 'creer'); //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
57 57
 $permissionnote = $user->hasRight('contrat', 'creer'); // Used by the include of actions_setnotes.inc.php
58 58
 
59 59
 $result = restrictedArea($user, 'contrat', $object->id);
Please login to merge, or discard this patch.
public/htdocs/master.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 $conf->file->main_force_https = empty($dolibarr_main_force_https) ? '' : $dolibarr_main_force_https; // Force https
86 86
 $conf->file->strict_mode = empty($dolibarr_strict_mode) ? '' : $dolibarr_strict_mode; // Force php strict mode (for debug)
87 87
 $conf->file->instance_unique_id = empty($dolibarr_main_instance_unique_id) ? (empty($dolibarr_main_cookie_cryptkey) ? '' : $dolibarr_main_cookie_cryptkey) : $dolibarr_main_instance_unique_id; // Unique id of instance
88
-$conf->file->dol_main_url_root = $dolibarr_main_url_root;   // Define url inside the config file
88
+$conf->file->dol_main_url_root = $dolibarr_main_url_root; // Define url inside the config file
89 89
 $conf->file->dol_document_root = array('main' => (string) DOL_DOCUMENT_ROOT); // Define array of document root directories ('/home/htdocs')
90 90
 $conf->file->dol_url_root = array('main' => (string) DOL_URL_ROOT); // Define array of url root path ('' or '/dolibarr')
91 91
 if (!empty($dolibarr_main_document_root_alt)) {
Please login to merge, or discard this patch.
core/modules/knowledgemanagement/modules_knowledgerecord.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
  */
39 39
 abstract class ModelePDFKnowledgeRecord extends CommonDocGenerator
40 40
 {
41
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
41
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42 42
     /**
43 43
      *  Return list of active generation modules
44 44
      *
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function liste_modeles($db, $maxfilenamelength = 0)
50 50
     {
51
-		// phpcs:enable
51
+        // phpcs:enable
52 52
         global $conf;
53 53
 
54 54
         $type = 'knowledgerecord';
Please login to merge, or discard this patch.
public/htdocs/knowledgemanagement/knowledgerecord_card.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'knowledgerecordcard'; // To manage different context of search
46 46
 $backtopage = GETPOST('backtopage', 'alpha');
47 47
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
48
-$lineid   = GETPOSTINT('lineid');
48
+$lineid = GETPOSTINT('lineid');
49 49
 
50 50
 // Initialize technical objects
51 51
 $object = new KnowledgeRecord($db);
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     print '<table class="border centpercent tableforfield">' . "\n";
427 427
 
428 428
     // Common attributes
429
-    $keyforbreak = 'fk_c_ticket_category';    // We change column just before this field
429
+    $keyforbreak = 'fk_c_ticket_category'; // We change column just before this field
430 430
     //unset($object->fields['fk_project']);             // Hide field already shown in banner
431 431
     //unset($object->fields['fk_soc']);                 // Hide field already shown in banner
432 432
     $object->fields['answer']['enabled'] = 0;
Please login to merge, or discard this patch.
public/htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     }
342 342
 
343 343
 
344
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
344
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
345 345
     /**
346 346
      * Clean sensible object datas
347 347
      *
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
      */
351 351
     protected function _cleanObjectDatas($object)
352 352
     {
353
-		// phpcs:enable
353
+        // phpcs:enable
354 354
         $object = parent::_cleanObjectDatas($object);
355 355
 
356 356
         unset($object->rowid);
Please login to merge, or discard this patch.
public/htdocs/knowledgemanagement/class/knowledgerecord.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
         return $this->LibStatut($this->status, $mode);
904 904
     }
905 905
 
906
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
906
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
907 907
     /**
908 908
      *  Return the status
909 909
      *
@@ -913,7 +913,7 @@  discard block
 block discarded – undo
913 913
      */
914 914
     public function LibStatut($status, $mode = 0)
915 915
     {
916
-		// phpcs:enable
916
+        // phpcs:enable
917 917
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
918 918
             global $langs;
919 919
             //$langs->load("knowledgemanagement");
Please login to merge, or discard this patch.
public/htdocs/knowledgemanagement/knowledgerecord_list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 // Default sort order (if not yet defined by previous GETPOST)
86 86
 if (!$sortfield) {
87
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
87
+    reset($object->fields); // Reset is required to avoid key() to return null.
88 88
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
89 89
 }
90 90
 if (!$sortorder) {
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
616 616
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
617 617
     }
618
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
618
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
619 619
     if (!empty($arrayfields['t.' . $key]['checked'])) {
620 620
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
621 621
         $totalarray['nbfield']++;
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
             if (!empty($arrayfields['t.' . $key]['checked'])) {
720 720
                 print '<td' . ($cssforfield ? ' class="' . $cssforfield . (preg_match('/tdoverflow/', $cssforfield) ? ' classfortooltip' : '') . '"' : '');
721 721
                 if (preg_match('/tdoverflow/', $cssforfield) && !is_numeric($object->$key)) {
722
-                    print ' title="' . dol_escape_htmltag(dol_nl2br($object->$key, 1)) . '"';   // We add dol_nl2br for the question and answer fields
722
+                    print ' title="' . dol_escape_htmltag(dol_nl2br($object->$key, 1)) . '"'; // We add dol_nl2br for the question and answer fields
723 723
                 }
724 724
                 print '>';
725 725
                 if ($key == 'status') {
Please login to merge, or discard this patch.
public/htdocs/install/repair.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1171,13 +1171,13 @@  discard block
 block discarded – undo
1171 1171
                             }
1172 1172
                             if ($key == 'js') {
1173 1173
                                 $value = $obj->value;
1174
-                                $valuearray = (array) json_decode($value);  // Force cast into array because sometimes it is a stdClass
1174
+                                $valuearray = (array) json_decode($value); // Force cast into array because sometimes it is a stdClass
1175 1175
                                 $reloffile = $valuearray[0];
1176 1176
                                 $reloffile = preg_replace('/^\//', '', $valuearray[0]);
1177 1177
                             }
1178 1178
                             if ($key == 'css') {
1179 1179
                                 $value = $obj->value;
1180
-                                $valuearray = (array) json_decode($value);  // Force cast into array because sometimes it is a stdClass
1180
+                                $valuearray = (array) json_decode($value); // Force cast into array because sometimes it is a stdClass
1181 1181
                                 if ($value && (!is_array($valuearray) || count($valuearray) == 0)) {
1182 1182
                                     $valuearray = array();
1183 1183
                                     $valuearray[0] = $value; // If value was not a json array but a string
@@ -1193,7 +1193,7 @@  discard block
 block discarded – undo
1193 1193
                                     $result = 'found'; // If error, we force like if we found to avoid any deletion
1194 1194
                                 }
1195 1195
                             } else {
1196
-                                $result = 'found';  //
1196
+                                $result = 'found'; //
1197 1197
                             }
1198 1198
 
1199 1199
                             if (!$result) {
@@ -1572,7 +1572,7 @@  discard block
 block discarded – undo
1572 1572
 
1573 1573
                     $sql_attach = 'INSERT INTO ' . MAIN_DB_PREFIX . 'receptiondet_batch';
1574 1574
                     $sql_attach .= ' (fk_element, fk_product, fk_elementdet, qty, fk_entrepot, fk_user, datec, comment, status, tms, batch, eatby, sellby)';
1575
-                    $sql_attach .= " VALUES (" . $sql_attach_values . ")";  // The string is already sanitized
1575
+                    $sql_attach .= " VALUES (" . $sql_attach_values . ")"; // The string is already sanitized
1576 1576
                 }
1577 1577
 
1578 1578
                 if ($repair_link_dispatch_lines_supplier_order_lines == 'confirmed') {
Please login to merge, or discard this patch.
websites/website_template-homesubmenu/containers/manifest.json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php // BEGIN PHP
2 2
 $websitekey = basename(__DIR__);
3
-if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
3
+if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
4 4
 } // Load env if not already loaded
5 5
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php';
6 6
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php';
Please login to merge, or discard this patch.