Passed
Push — GENERAL_BUG_REVIEW_240911 ( 0ad96d...3c7aa9 )
by Rafael
48:32
created
public/htdocs/api/admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
 print '<tr class="oddeven">';
120 120
 print '<td>' . $langs->trans("ApiProductionMode") . '</td>';
121
-$production_mode = (bool)getDolGlobalString('API_PRODUCTION_MODE');
121
+$production_mode = (bool) getDolGlobalString('API_PRODUCTION_MODE');
122 122
 if ($production_mode) {
123 123
     print '<td><a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setproductionmode&token=' . newToken() . '&status=0">';
124 124
     print img_picto($langs->trans("Activated"), 'switch_on');
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 print '<tr class="oddeven">';
134 134
 print '<td>' . $langs->trans("API_DISABLE_COMPRESSION") . '</td>';
135
-$disable_compression = (bool)getDolGlobalString('API_DISABLE_COMPRESSION');
135
+$disable_compression = (bool) getDolGlobalString('API_DISABLE_COMPRESSION');
136 136
 if ($disable_compression) {
137 137
     print '<td><a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setdisablecompression&token=' . newToken() . '&status=0">';
138 138
     print img_picto($langs->trans("Activated"), 'switch_on');
Please login to merge, or discard this patch.
public/htdocs/asset/admin/setup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 $error = 0;
79 79
 $setupnotempty = 0;
80 80
 
81
-$dirmodels = array_merge(array('/'), (array)$conf->modules_parts['models']);
81
+$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
82 82
 
83 83
 $moduledir = 'asset';
84 84
 $myTmpObjects = array();
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     // Search template files
123 123
     $file = '';
124 124
     $classname = '';
125
-    $dirmodels = array_merge(array('/'), (array)$conf->modules_parts['models']);
125
+    $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
126 126
     foreach ($dirmodels as $reldir) {
127 127
         $file = dol_buildpath($reldir . "core/modules/asset/doc/pdf_" . $modele . "_" . strtolower($tmpobjectkey) . ".modules.php", 0);
128 128
         if (file_exists($file)) {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
                     $accountsystem->fetch(getDolGlobalInt('CHARTOFACCOUNTS'));
559 559
                     $sql = 'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account';
560 560
                     $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'";
561
-                    $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')';      // Always limit to current entity. No sharing in accountancy.
561
+                    $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy.
562 562
                     $sql .= ' LIMIT 50000'; // just as a sanity check
563 563
                     $resql = $db->query($sql);
564 564
                     if ($resql) {
Please login to merge, or discard this patch.