@@ -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; |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | return $list; |
725 | 725 | } |
726 | 726 | |
727 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
727 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
728 | 728 | /** |
729 | 729 | * Clean sensible object datas |
730 | 730 | * |
@@ -733,7 +733,7 @@ discard block |
||
733 | 733 | */ |
734 | 734 | protected function _cleanObjectDatas($object) |
735 | 735 | { |
736 | - // phpcs:enable |
|
736 | + // phpcs:enable |
|
737 | 737 | $object = parent::_cleanObjectDatas($object); |
738 | 738 | |
739 | 739 | unset($object->error); |
@@ -1401,7 +1401,6 @@ discard block |
||
1401 | 1401 | } |
1402 | 1402 | |
1403 | 1403 | /** |
1404 | - |
|
1405 | 1404 | * Update Extrafield object |
1406 | 1405 | * |
1407 | 1406 | * @param string $attrname extrafield attrname |
@@ -1175,7 +1175,7 @@ discard block |
||
1175 | 1175 | $list[$tab->elementtype][$tab->name]['computed'] = $tab->fieldcomputed; |
1176 | 1176 | $list[$tab->elementtype][$tab->name]['unique'] = $tab->fieldunique; |
1177 | 1177 | $list[$tab->elementtype][$tab->name]['required'] = $tab->fieldrequired; |
1178 | - $list[$tab->elementtype][$tab->name]['param'] = ($tab->param ? jsonOrUnserialize($tab->param) : ''); // This may be a string encoded with serialise() or json_encode() |
|
1178 | + $list[$tab->elementtype][$tab->name]['param'] = ($tab->param ? jsonOrUnserialize($tab->param) : ''); // This may be a string encoded with serialise() or json_encode() |
|
1179 | 1179 | $list[$tab->elementtype][$tab->name]['pos'] = $tab->pos; |
1180 | 1180 | $list[$tab->elementtype][$tab->name]['alwayseditable'] = $tab->alwayseditable; |
1181 | 1181 | $list[$tab->elementtype][$tab->name]['perms'] = $tab->perms; |
@@ -1285,7 +1285,7 @@ discard block |
||
1285 | 1285 | $answer[$tab->elementtype][$tab->name]['computed'] = $tab->fieldcomputed; |
1286 | 1286 | $answer[$tab->elementtype][$tab->name]['unique'] = $tab->fieldunique; |
1287 | 1287 | $answer[$tab->elementtype][$tab->name]['required'] = $tab->fieldrequired; |
1288 | - $answer[$tab->elementtype][$tab->name]['param'] = ($tab->param ? jsonOrUnserialize($tab->param) : ''); // This may be a string encoded with serialise() or json_encode() |
|
1288 | + $answer[$tab->elementtype][$tab->name]['param'] = ($tab->param ? jsonOrUnserialize($tab->param) : ''); // This may be a string encoded with serialise() or json_encode() |
|
1289 | 1289 | $answer[$tab->elementtype][$tab->name]['pos'] = $tab->pos; |
1290 | 1290 | $answer[$tab->elementtype][$tab->name]['alwayseditable'] = $tab->alwayseditable; |
1291 | 1291 | $answer[$tab->elementtype][$tab->name]['perms'] = $tab->perms; |
@@ -2410,7 +2410,7 @@ discard block |
||
2410 | 2410 | throw new RestException(500, $langs->trans('XmlNotFound') . ': /install/' . $xmlshortfile); |
2411 | 2411 | } |
2412 | 2412 | } else { |
2413 | - $xmlarray = getURLContent($xmlremote, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only. Same is used into filecheck.php. |
|
2413 | + $xmlarray = getURLContent($xmlremote, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only. Same is used into filecheck.php. |
|
2414 | 2414 | |
2415 | 2415 | // Return array('content'=>response,'curl_error_no'=>errno,'curl_error_msg'=>errmsg...) |
2416 | 2416 | if (!$xmlarray['curl_error_no'] && $xmlarray['http_code'] != '400' && $xmlarray['http_code'] != '404') { |