Fix phpcs
This commit is contained in:
parent
f98df3c807
commit
c215d534fc
@ -1735,7 +1735,7 @@ function sort_events_by_date($a, $b)
|
||||
}
|
||||
|
||||
// If both events have the same start time, longest first
|
||||
|
||||
|
||||
if(! is_numeric($b->datef))
|
||||
{
|
||||
// when event B have no end timestamp, event B should sort be before event A (All day events on top)
|
||||
|
||||
@ -1851,7 +1851,7 @@ function dol_convert_file($fileinput, $ext = 'png', $fileoutput = '', $page = ''
|
||||
if (! dol_is_file($fileoutput) || is_writeable($fileoutput))
|
||||
{
|
||||
try {
|
||||
$ret = $image->writeImages($fileoutput, true);
|
||||
$ret = $image->writeImages($fileoutput, true);
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
|
||||
@ -479,7 +479,7 @@ class doc_generic_bom_odt extends ModelePDFBOMs
|
||||
}
|
||||
else {
|
||||
try {
|
||||
$odfHandler->saveToDisk($file);
|
||||
$odfHandler->saveToDisk($file);
|
||||
} catch (Exception $e) {
|
||||
$this->error=$e->getMessage();
|
||||
dol_syslog($e->getMessage(), LOG_INFO);
|
||||
|
||||
@ -486,7 +486,7 @@ class doc_generic_mo_odt extends ModelePDFMOs
|
||||
}
|
||||
else {
|
||||
try {
|
||||
$odfHandler->saveToDisk($file);
|
||||
$odfHandler->saveToDisk($file);
|
||||
} catch (Exception $e) {
|
||||
$this->error=$e->getMessage();
|
||||
dol_syslog($e->getMessage(), LOG_INFO);
|
||||
|
||||
@ -240,7 +240,7 @@ if (GETPOST('action', 'aZ09') == 'create')
|
||||
/*
|
||||
* List of payments on donation
|
||||
*/
|
||||
|
||||
|
||||
$num = 1;
|
||||
$i = 0;
|
||||
|
||||
|
||||
@ -23,7 +23,6 @@ if (empty($conf) || ! is_object($conf))
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
$contact = $GLOBALS['objcanvas']->control->object;
|
||||
|
||||
?>
|
||||
|
||||
@ -75,7 +75,7 @@ if (empty($conf) || ! is_object($conf))
|
||||
<?php if ($this->control->tpl['ismodifiable_customercode']) { ?>
|
||||
<input type="text" name="code_client" size="16" value="<?php echo $this->control->tpl['customercode']; ?>" maxlength="15">
|
||||
<?php } else { ?>
|
||||
<?php echo $this->control->tpl['customercode']; ?>
|
||||
<?php echo $this->control->tpl['customercode']; ?>
|
||||
<input type="hidden" name="code_client" value="<?php echo $this->control->tpl['customercode']; ?>">
|
||||
<?php } ?>
|
||||
</td>
|
||||
@ -96,7 +96,7 @@ if (empty($conf) || ! is_object($conf))
|
||||
<?php if ($this->control->tpl['ismodifiable_suppliercode']) { ?>
|
||||
<input type="text" name="code_fournisseur" size="16" value="<?php echo $this->control->tpl['suppliercode']; ?>" maxlength="15">
|
||||
<?php } else { ?>
|
||||
<?php echo $this->control->tpl['suppliercode']; ?>
|
||||
<?php echo $this->control->tpl['suppliercode']; ?>
|
||||
<input type="hidden" name="code_fournisseur" value="<?php echo $this->control->tpl['suppliercode']; ?>">
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
||||
@ -435,7 +435,7 @@ class Tickets extends DolibarrApi
|
||||
throw new RestException(500);
|
||||
}
|
||||
|
||||
return array(
|
||||
return array(
|
||||
'success' => array(
|
||||
'code' => 200,
|
||||
'message' => 'Ticket deleted'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user