@@ -446,7 +446,7 @@ |
||
| 446 | 446 | print '<td class="liste_titre right" width="5"> </td>'; |
| 447 | 447 | print "</tr>\n"; |
| 448 | 448 | |
| 449 | - $object->fetch($object->id, '', true); // true to force load of all users, member of the group |
|
| 449 | + $object->fetch($object->id, '', true); // true to force load of all users, member of the group |
|
| 450 | 450 | |
| 451 | 451 | if (!empty($object->members)) { |
| 452 | 452 | foreach ($object->members as $useringroup) { |
@@ -201,7 +201,7 @@ |
||
| 201 | 201 | $i++; |
| 202 | 202 | |
| 203 | 203 | if ($key['varname'] == 'PRINTGCP_TOKEN_ACCESS') { |
| 204 | - $keyforprovider = ''; // @BUG This must be set |
|
| 204 | + $keyforprovider = ''; // @BUG This must be set |
|
| 205 | 205 | |
| 206 | 206 | // Token |
| 207 | 207 | print '<tr class="oddeven">'; |
@@ -147,18 +147,18 @@ discard block |
||
| 147 | 147 | $provider.'_NAME', |
| 148 | 148 | $provider.'_ID', |
| 149 | 149 | $provider.'_SECRET', |
| 150 | - $provider.'_URLAUTHORIZE', // For custom oauth links |
|
| 150 | + $provider.'_URLAUTHORIZE', // For custom oauth links |
|
| 151 | 151 | $provider.'_SCOPE' // For custom oauth links |
| 152 | 152 | ); |
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - $oauthstateanticsrf = bin2hex(random_bytes(128/8)); |
|
| 156 | + $oauthstateanticsrf = bin2hex(random_bytes(128 / 8)); |
|
| 157 | 157 | |
| 158 | 158 | // $list is defined into oauth.lib.php to the list of supporter OAuth providers. |
| 159 | 159 | foreach ($listinsetup as $key) { |
| 160 | 160 | $supported = 0; |
| 161 | - $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME |
|
| 161 | + $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME |
|
| 162 | 162 | $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array); |
| 163 | 163 | $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array); |
| 164 | 164 | if (preg_match('/^.*-/', $keyforsupportedoauth2array)) { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | if (getDolGlobalString($key[4])) { |
| 179 | 179 | $shortscope = getDolGlobalString($key[4]); |
| 180 | 180 | } |
| 181 | - $state = $shortscope; // TODO USe a better state |
|
| 181 | + $state = $shortscope; // TODO USe a better state |
|
| 182 | 182 | |
| 183 | 183 | // Define $urltorenew, $urltodelete, $urltocheckperms |
| 184 | 184 | if ($keyforsupportedoauth2array == 'OAUTH_GITHUB_NAME') { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $sql .= " AND k.fk_soc= ".((int) $user->socid); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - $sql.= " AND k.status > 0"; |
|
| 121 | + $sql .= " AND k.status > 0"; |
|
| 122 | 122 | |
| 123 | 123 | $sql .= " ORDER BY k.tms DESC, k.rowid DESC "; |
| 124 | 124 | $sql .= $this->db->plimit($max, 0); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $labellang = ($objp->lang ? $langs->trans('Language_'.$objp->lang) : ''); |
| 164 | 164 | $this->info_box_contents[$i][$r] = array( |
| 165 | 165 | 'td' => 'class="tdoverflowmax100"', |
| 166 | - 'text' => picto_from_langcode($objp->lang, 'class="paddingrightonly saturatemedium opacitylow"') . $labellang, |
|
| 166 | + 'text' => picto_from_langcode($objp->lang, 'class="paddingrightonly saturatemedium opacitylow"').$labellang, |
|
| 167 | 167 | 'asis' => 1, |
| 168 | 168 | ); |
| 169 | 169 | $r++; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $sql .= " AND k.fk_soc= ".((int) $user->socid); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - $sql.= " AND k.status > 0"; |
|
| 121 | + $sql .= " AND k.status > 0"; |
|
| 122 | 122 | |
| 123 | 123 | $sql .= " ORDER BY k.date_creation DESC, k.rowid DESC "; |
| 124 | 124 | $sql .= $this->db->plimit($max, 0); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $labellang = ($objp->lang ? $langs->trans('Language_'.$objp->lang) : ''); |
| 164 | 164 | $this->info_box_contents[$i][$r] = array( |
| 165 | 165 | 'td' => 'class="tdoverflowmax100"', |
| 166 | - 'text' => picto_from_langcode($objp->lang, 'class="paddingrightonly saturatemedium opacitylow"') . $labellang, |
|
| 166 | + 'text' => picto_from_langcode($objp->lang, 'class="paddingrightonly saturatemedium opacitylow"').$labellang, |
|
| 167 | 167 | 'asis' => 1, |
| 168 | 168 | ); |
| 169 | 169 | $r++; |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | print $langs->trans("Text"); |
| 289 | 289 | print '</td><td>'; |
| 290 | 290 | require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; |
| 291 | - $extendededitor = 0; // We force no WYSIWYG editor |
|
| 291 | + $extendededitor = 0; // We force no WYSIWYG editor |
|
| 292 | 292 | $doleditor = new DolEditor('USER_PUBLIC_MORE', getDolUserString('USER_PUBLIC_MORE', '', $object), '', 160, 'dolibarr_notes', '', false, false, $extendededitor, ROWS_5, '90%'); |
| 293 | 293 | $doleditor->Create(); |
| 294 | 294 | print "</td></tr>\n"; |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | |
| 303 | 303 | print '<br>'; |
| 304 | 304 | |
| 305 | - print '</div>'; // End hide/show |
|
| 305 | + print '</div>'; // End hide/show |
|
| 306 | 306 | |
| 307 | 307 | print '<br>'; |
| 308 | 308 | |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | |
| 260 | 260 | $motmp = new Mo($db); |
| 261 | 261 | |
| 262 | - $total_consumed=$total_produced=0; |
|
| 262 | + $total_consumed = $total_produced = 0; |
|
| 263 | 263 | |
| 264 | 264 | if ($num > 0) { |
| 265 | 265 | while ($i < min($num, $limit)) { |
@@ -269,8 +269,8 @@ discard block |
||
| 269 | 269 | $motmp->ref = $objp->ref; |
| 270 | 270 | $motmp->status = $objp->status; |
| 271 | 271 | |
| 272 | - $total_consumed+=$objp->nb_consumed; |
|
| 273 | - $total_produced+=$objp->nb_produced; |
|
| 272 | + $total_consumed += $objp->nb_consumed; |
|
| 273 | + $total_produced += $objp->nb_produced; |
|
| 274 | 274 | |
| 275 | 275 | print '<tr class="oddeven">'; |
| 276 | 276 | print '<td>'; |
@@ -29,11 +29,11 @@ discard block |
||
| 29 | 29 | // Load Dolibarr environment |
| 30 | 30 | require '../main.inc.php'; |
| 31 | 31 | |
| 32 | -require_once DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php'; |
|
| 33 | -require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php'; |
|
| 34 | -require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php'; |
|
| 35 | -require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php'; |
|
| 36 | -require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_job.lib.php'; |
|
| 32 | +require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; |
|
| 33 | +require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; |
|
| 34 | +require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; |
|
| 35 | +require_once DOL_DOCUMENT_ROOT.'/hrm/class/job.class.php'; |
|
| 36 | +require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm_job.lib.php'; |
|
| 37 | 37 | |
| 38 | 38 | // Load translation files required by the page |
| 39 | 39 | $langs->loadLangs(array('hrm', 'other')); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $linkback = '<a href="'.dol_buildpath('/hrm/job_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
| 152 | 152 | |
| 153 | 153 | $morehtmlref = '<div class="refid">'; |
| 154 | - $morehtmlref.= $object->label; |
|
| 154 | + $morehtmlref .= $object->label; |
|
| 155 | 155 | $morehtmlref .= '</div>'; |
| 156 | 156 | |
| 157 | 157 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | $langs->load("bookmarks"); |
| 38 | 38 | |
| 39 | - $authorized_var=array('limit','optioncss','contextpage'); |
|
| 39 | + $authorized_var = array('limit', 'optioncss', 'contextpage'); |
|
| 40 | 40 | $url = $_SERVER["PHP_SELF"]; |
| 41 | 41 | $url_param = array(); |
| 42 | 42 | if (!empty($_SERVER["QUERY_STRING"])) { |