diff --git a/htdocs/modulebuilder/template/mymoduleindex.php b/htdocs/modulebuilder/template/mymoduleindex.php
index 9050b5319e0..91eb5eca8da 100644
--- a/htdocs/modulebuilder/template/mymoduleindex.php
+++ b/htdocs/modulebuilder/template/mymoduleindex.php
@@ -184,7 +184,7 @@ if (! empty($conf->mymodule->enabled) && $user->rights->mymodule->read)
print '
';
print '';
print '| ';
- print $langs->trans("BoxTitleLatestModifiedMyObjects",$max);
+ print $langs->trans("BoxTitleLatestModifiedMyObjects", $max);
print ' | ';
print ''.$langs->trans("DateModificationShort").' | ';
print '
';
@@ -203,15 +203,13 @@ if (! empty($conf->mymodule->enabled) && $user->rights->mymodule->read)
print ''.$myobjectstatic->getNomUrl(1).' | ';
print '';
print " | ";
- print ''.dol_print_date($db->jdate($objp->tms),'day')." | ";
+ print ''.dol_print_date($db->jdate($objp->tms), 'day')." | ";
print '';
$i++;
}
$db->free($resql);
- }
- else
- {
+ } else {
print '| '.$langs->trans("None").' |
';
}
print "
";
diff --git a/htdocs/modulebuilder/template/myobject_card.php b/htdocs/modulebuilder/template/myobject_card.php
index fd17bfe2d6d..a85f84a50ba 100644
--- a/htdocs/modulebuilder/template/myobject_card.php
+++ b/htdocs/modulebuilder/template/myobject_card.php
@@ -468,27 +468,22 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Back to draft
- if ($object->status == $object::STATUS_VALIDATED)
- {
- if ($permissiontoadd)
- {
+ if ($object->status == $object::STATUS_VALIDATED) {
+ if ($permissiontoadd) {
print ''.$langs->trans("SetToDraft").'';
}
}
// Modify
- if ($permissiontoadd)
- {
+ if ($permissiontoadd) {
print 'id.'&action=edit">'.$langs->trans("Modify").''."\n";
} else {
print ''.$langs->trans('Modify').''."\n";
}
// Validate
- if ($object->status == $object::STATUS_DRAFT)
- {
- if ($permissiontoadd)
- {
+ if ($object->status == $object::STATUS_DRAFT) {
+ if ($permissiontoadd) {
if (empty($object->table_element_line) || (is_array($object->lines) && count($object->lines) > 0))
{
print ''.$langs->trans("Validate").'';
@@ -500,31 +495,24 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Clone
- if ($permissiontoadd)
- {
+ if ($permissiontoadd) {
print ''.$langs->trans("ToClone").''."\n";
}
/*
if ($permissiontoadd)
{
- if ($object->status == $object::STATUS_ENABLED)
- {
+ if ($object->status == $object::STATUS_ENABLED) {
print 'id.'&action=disable">'.$langs->trans("Disable").''."\n";
- }
- else
- {
+ } else {
print 'id.'&action=enable">'.$langs->trans("Enable").''."\n";
}
}
if ($permissiontoadd)
{
- if ($object->status == $object::STATUS_VALIDATED)
- {
+ if ($object->status == $object::STATUS_VALIDATED) {
print 'id.'&action=close">'.$langs->trans("Cancel").''."\n";
- }
- else
- {
+ } else {
print 'id.'&action=reopen">'.$langs->trans("Re-Open").''."\n";
}
}
diff --git a/htdocs/recruitment/recruitmentindex.php b/htdocs/recruitment/recruitmentindex.php
index dc0b0eac8cf..cf1f0e7dee4 100644
--- a/htdocs/recruitment/recruitmentindex.php
+++ b/htdocs/recruitment/recruitmentindex.php
@@ -262,7 +262,7 @@ if (! empty($conf->recruitment->enabled) && $user->rights->recruitment->recruitm
print '';
print '';
print '| ';
- print $langs->trans("BoxTitleLatestModifiedJobPositions",$max);
+ print $langs->trans("BoxTitleLatestModifiedJobPositions", $max);
print ' | ';
print ''.$langs->trans("DateModificationShort").' | ';
print '
';
@@ -281,17 +281,13 @@ if (! empty($conf->recruitment->enabled) && $user->rights->recruitment->recruitm
print ''.$staticrecruitmentjobposition->getNomUrl(1, '').' | ';
print '';
print " | ";
- print ''.dol_print_date($db->jdate($objp->tms),'day')." | ";
+ print ''.dol_print_date($db->jdate($objp->tms), 'day')." | ";
print '';
$i++;
-
-
}
$db->free($resql);
- }
- else
- {
+ } else {
print '| '.$langs->trans("None").' |
';
}
print "
";
diff --git a/htdocs/recruitment/recruitmentjobposition_card.php b/htdocs/recruitment/recruitmentjobposition_card.php
index 4037147e367..0763b5ca749 100644
--- a/htdocs/recruitment/recruitmentjobposition_card.php
+++ b/htdocs/recruitment/recruitmentjobposition_card.php
@@ -455,8 +455,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Back to draft
- if ($object->status == $object::STATUS_VALIDATED)
- {
+ if ($object->status == $object::STATUS_VALIDATED) {
if ($permissiontoadd)
{
print ''.$langs->trans("SetToDraft").'';
@@ -464,18 +463,15 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Modify
- if ($permissiontoadd)
- {
+ if ($permissiontoadd) {
print 'id.'&action=edit">'.$langs->trans("Modify").''."\n";
} else {
print ''.$langs->trans('Modify').''."\n";
}
// Validate
- if ($object->status == $object::STATUS_DRAFT)
- {
- if ($permissiontoadd)
- {
+ if ($object->status == $object::STATUS_DRAFT) {
+ if ($permissiontoadd) {
if (empty($object->table_element_line) || (is_array($object->lines) && count($object->lines) > 0))
{
print ''.$langs->trans("Validate").'';
@@ -487,38 +483,29 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Clone
- if ($permissiontoadd)
- {
+ if ($permissiontoadd) {
print ''.$langs->trans("ToClone").''."\n";
}
/*
- if ($permissiontoadd)
- {
- if ($object->status == $object::STATUS_ENABLED)
- {
+ if ($permissiontoadd) {
+ if ($object->status == $object::STATUS_ENABLED) {
print 'id.'&action=disable">'.$langs->trans("Disable").''."\n";
- }
- else
- {
+ } else {
print 'id.'&action=enable">'.$langs->trans("Enable").''."\n";
}
}*/
if ($permissiontoadd)
{
- if ($object->status == $object::STATUS_VALIDATED)
- {
+ if ($object->status == $object::STATUS_VALIDATED) {
print 'id.'&action=confirm_close&confirm=yes">'.$langs->trans("Cancel").''."\n";
- }
- else
- {
+ } else {
print 'id.'&action=confirm_reopen&confirm=yes">'.$langs->trans("Re-Open").''."\n";
}
}
// Delete (need delete permission, or if draft, just need create/modify permission)
- if ($permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd))
- {
+ if ($permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd)) {
print 'id.'&action=delete">'.$langs->trans('Delete').''."\n";
} else {
print ''.$langs->trans('Delete').''."\n";