@@ -57,7 +57,7 @@ |
||
57 | 57 | // Permissions |
58 | 58 | $permissionnote = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer")); // Used by the include of actions_setnotes.inc.php |
59 | 59 | $usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer")); |
60 | -$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php |
|
60 | +$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php |
|
61 | 61 | |
62 | 62 | |
63 | 63 | /* |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $previoushash = ''; |
158 | 158 | $firstid = ''; |
159 | 159 | |
160 | - if (! (GETPOSTINT('yeartoexport') > 0)) { |
|
160 | + if (!(GETPOSTINT('yeartoexport') > 0)) { |
|
161 | 161 | setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Year")), null, "errors"); |
162 | 162 | $error++; |
163 | 163 | } else { |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | |
582 | 582 | // Link to source object |
583 | 583 | print '<td class="tdoverflowmax150"' . (preg_match('/<a/', $object_link) ? '' : 'title="' . dol_escape_htmltag(dol_string_nohtmltag($object_link . ' - ' . $object_link_title)) . '"') . '>'; |
584 | - print '<!-- object_link -->'; // $object_link can be a '<a href' link or a text |
|
584 | + print '<!-- object_link -->'; // $object_link can be a '<a href' link or a text |
|
585 | 585 | print $object_link; |
586 | 586 | print '</td>'; |
587 | 587 |
@@ -436,7 +436,7 @@ |
||
436 | 436 | 'linkedObjectsIds', |
437 | 437 | 'linkedObjects', |
438 | 438 | 'fk_delivery_address', |
439 | - 'projet', // There is already ->fk_project |
|
439 | + 'projet', // There is already ->fk_project |
|
440 | 440 | 'restrictiononfksoc', |
441 | 441 | 'specimen', |
442 | 442 | ); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | if (getDolGlobalString('THEME_DARKMODEENABLED')) { |
147 | 147 | print "/* For dark mode */\n"; |
148 | 148 | if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) { |
149 | - print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
149 | + print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
150 | 150 | } else { |
151 | 151 | print "@media not print {"; |
152 | 152 | } |
@@ -5402,7 +5402,7 @@ discard block |
||
5402 | 5402 | if (getDolGlobalString('THEME_DARKMODEENABLED')) { |
5403 | 5403 | print "/* For dark mode */\n"; |
5404 | 5404 | if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) { |
5405 | - print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
5405 | + print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
5406 | 5406 | } else { |
5407 | 5407 | print "@media not print {"; |
5408 | 5408 | } ?> |
@@ -18,7 +18,7 @@ |
||
18 | 18 | if (getDolGlobalString('THEME_DARKMODEENABLED')) { |
19 | 19 | print "/* For dark mode */\n"; |
20 | 20 | if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) { |
21 | - print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
21 | + print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
22 | 22 | } else { |
23 | 23 | print "@media not print {"; |
24 | 24 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $colortext = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXT') ? $colortext : $conf->global->THEME_ELDY_TEXT) : (empty($user->conf->THEME_ELDY_TEXT) ? $colortext : $user->conf->THEME_ELDY_TEXT); |
194 | 194 | $colortextlink = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTLINK') ? $colortext : $conf->global->THEME_ELDY_TEXTLINK) : (empty($user->conf->THEME_ELDY_TEXTLINK) ? $colortextlink : $user->conf->THEME_ELDY_TEXTLINK); |
195 | 195 | $butactionbg = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_BTNACTION') ? $butactionbg : $conf->global->THEME_ELDY_BTNACTION) : (empty($user->conf->THEME_ELDY_BTNACTION) ? $butactionbg : $user->conf->THEME_ELDY_BTNACTION); |
196 | -$textbutaction = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTBTNACTION') ? $textbutaction : $conf->global->THEME_ELDY_TEXTBTNACTION) : (empty($user->conf->THEME_ELDY_TEXTBTNACTION) ? $textbutaction : $user->conf->THEME_ELDY_TEXTBTNACTION); |
|
196 | +$textbutaction = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTBTNACTION') ? $textbutaction : $conf->global->THEME_ELDY_TEXTBTNACTION) : (empty($user->conf->THEME_ELDY_TEXTBTNACTION) ? $textbutaction : $user->conf->THEME_ELDY_TEXTBTNACTION); |
|
197 | 197 | $fontsize = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_FONT_SIZE1') ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE1) : (empty($user->conf->THEME_ELDY_FONT_SIZE1) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE1); |
198 | 198 | $fontsizesmaller = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_FONT_SIZE2') ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE2) : (empty($user->conf->THEME_ELDY_FONT_SIZE2) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE2); |
199 | 199 | $heightrow = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_USECOMOACTROW') ? '155%' : '300%') : (empty($user->conf->THEME_ELDY_USECOMOACTROW) ? '155%' : '300%'); |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | if (getDolGlobalString('THEME_DARKMODEENABLED')) { |
378 | 378 | print "/* For dark mode */\n"; |
379 | 379 | if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) { |
380 | - print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
380 | + print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
381 | 381 | } else { |
382 | 382 | print "@media not print {"; |
383 | 383 | } |
@@ -3034,7 +3034,7 @@ discard block |
||
3034 | 3034 | if (preg_match('/^fa\-/', $iconformodule)) { |
3035 | 3035 | // This is a fa icon |
3036 | 3036 | } else { |
3037 | - $url = dol_buildpath('/' . $val . '/img/' . $iconformodule . '.png', 1); |
|
3037 | + $url = dol_buildpath('/' . $val . '/img/' . $iconformodule . '.png', 1); |
|
3038 | 3038 | } |
3039 | 3039 | $found = 1; |
3040 | 3040 | } else { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | if (getDolGlobalString('THEME_DARKMODEENABLED')) { |
19 | 19 | print "/* For dark mode */\n"; |
20 | 20 | if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) { |
21 | - print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
21 | + print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes |
|
22 | 22 | } else { |
23 | 23 | print "@media not print {"; |
24 | 24 | } |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | } |
574 | 574 | |
575 | 575 | $objectType = $modulepart; |
576 | - if (! empty($object->id) && ! empty($object->table_element)) { |
|
576 | + if (!empty($object->id) && !empty($object->table_element)) { |
|
577 | 577 | $objectType = $object->table_element; |
578 | 578 | } |
579 | 579 | |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | throw new RestException(503, 'Error when retrieve ecm list : ' . $this->db->lasterror()); |
590 | 590 | } elseif (is_array($ecmfile->lines) && count($ecmfile->lines) > 0) { |
591 | 591 | $count = count($filearray); |
592 | - for ($i = 0 ; $i < $count ; $i++) { |
|
592 | + for ($i = 0; $i < $count; $i++) { |
|
593 | 593 | foreach ($ecmfile->lines as $line) { |
594 | 594 | if ($filearray[$i]['name'] == $line->filename) { |
595 | 595 | $filearray[$i] = array_merge($filearray[$i], (array) $line); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $this->db = $db; |
82 | 82 | } |
83 | 83 | |
84 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName |
|
84 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName |
|
85 | 85 | /** |
86 | 86 | * Check access |
87 | 87 | * |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function __isAllowed() |
94 | 94 | { |
95 | - // phpcs:enable |
|
95 | + // phpcs:enable |
|
96 | 96 | global $conf, $db, $user; |
97 | 97 | |
98 | 98 | $login = ''; |
@@ -229,13 +229,13 @@ discard block |
||
229 | 229 | return in_array(static::$role, (array) $requirefortest) || static::$role == 'admin'; |
230 | 230 | } |
231 | 231 | |
232 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName |
|
232 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName |
|
233 | 233 | /** |
234 | 234 | * @return string string to be used with WWW-Authenticate header |
235 | 235 | */ |
236 | 236 | public function __getWWWAuthenticateString() |
237 | 237 | { |
238 | - // phpcs:enable |
|
238 | + // phpcs:enable |
|
239 | 239 | return ''; |
240 | 240 | } |
241 | 241 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * @return Luracast\Restler\AutoLoader |
27 | 27 | */ |
28 | - static function () { |
|
28 | + static function() { |
|
29 | 29 | $loader = Luracast\Restler\AutoLoader::instance(); |
30 | 30 | spl_autoload_register($loader); |
31 | 31 | return $loader; |