| @@ -42,7 +42,7 @@ | ||
| 42 | 42 |  $langs->load("tasks"); | 
| 43 | 43 | |
| 44 | 44 | $linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc', 0, 0, 1); | 
| 45 | -'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 45 | +'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 46 | 46 | |
| 47 | 47 | $total = 0; | 
| 48 | 48 | $ilink = 0; | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 |  $langs->load("propal"); | 
| 44 | 44 | |
| 45 | 45 | $linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc', 0, 0, 1); | 
| 46 | -'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 46 | +'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 47 | 47 | |
| 48 | 48 | $total = 0; | 
| 49 | 49 | $ilink = 0; | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | $total = 0; | 
| 38 | 38 |  foreach ($linkedObjectBlock as $key => $objectlink) { | 
| 39 | 39 | echo '<tr class="oddeven">'; | 
| 40 | - echo '<td>' . $langs->trans(get_class($objectlink)) . '</td>'; | |
| 40 | + echo '<td>'.$langs->trans(get_class($objectlink)).'</td>'; | |
| 41 | 41 | echo '<td>'.$objectlink->getNomUrl(1).'</td>'; | 
| 42 | 42 | echo '<td class="center">'; | 
| 43 | 43 |  	if (get_class($objectlink) == 'ConferenceOrBooth') { | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 |  $langs->load('ticket'); | 
| 38 | 38 | |
| 39 | 39 | $linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'datec', 'desc', 0, 0, 1); | 
| 40 | -'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 40 | +'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 41 | 41 | |
| 42 | 42 | $total = 0; | 
| 43 | 43 | $ilink = 0; | 
| @@ -42,7 +42,7 @@ | ||
| 42 | 42 |  $langs->load("receptions"); | 
| 43 | 43 | |
| 44 | 44 | $linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc', 0, 0, 1); | 
| 45 | -'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 45 | +'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 46 | 46 | |
| 47 | 47 | $total = 0; | 
| 48 | 48 | $ilink = 0; | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 |  $langs->load("assets"); | 
| 39 | 39 | |
| 40 | 40 | $linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc', 0, 0, 1); | 
| 41 | -'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 41 | +'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 42 | 42 | |
| 43 | 43 | $total = 0; | 
| 44 | 44 | $ilink = 0; | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 |  $langs->load('sendings'); | 
| 39 | 39 | |
| 40 | 40 | $linkedObjectBlock = dol_sort_array($linkedObjectBlock, 'date', 'desc', 0, 0, 1); | 
| 41 | -'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 41 | +'@phan-var-force CommonObject[] $linkedObjectBlock'; // Repeat because type lost after dol_sort_array) | |
| 42 | 42 | |
| 43 | 43 | $total = 0; | 
| 44 | 44 | $ilink = 0; | 
| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 |  $backtopage = GETPOST('backtopage'); | 
| 47 | 47 | |
| 48 | 48 |  $id = GETPOSTINT('id'); | 
| 49 | -$element = GETPOST('element', 'alpha');	// 'myobject' (myobject=mymodule) or 'myobject@mymodule' or 'myobject_mysubobject' (myobject=mymodule) | |
| 49 | +$element = GETPOST('element', 'alpha'); // 'myobject' (myobject=mymodule) or 'myobject@mymodule' or 'myobject_mysubobject' (myobject=mymodule) | |
| 50 | 50 |  $field = GETPOST('field', 'alpha'); | 
| 51 | 51 |  $value = GETPOSTINT('value'); | 
| 52 | 52 | $format = 'int'; | 
| @@ -54,7 +54,7 @@ discard block | ||
| 54 | 54 | // Load object according to $id and $element | 
| 55 | 55 | $object = fetchObjectByElement($id, $element); | 
| 56 | 56 |  if (!is_object($object)) { | 
| 57 | -	httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found.");	// This includes the exit. | |
| 57 | +	httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found."); // This includes the exit. | |
| 58 | 58 | } | 
| 59 | 59 | '@phan-var-force CommonObject $object'; | 
| 60 | 60 | |
| @@ -73,7 +73,7 @@ discard block | ||
| 73 | 73 |  if (!empty($user->socid)) { | 
| 74 | 74 | $socid = $user->socid; | 
| 75 | 75 |  	if (!empty($object->socid) && $socid != $object->socid) { | 
| 76 | -		httponly_accessforbidden("Access on object not allowed for this external user.");	// This includes the exit. | |
| 76 | +		httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. | |
| 77 | 77 | } | 
| 78 | 78 | } | 
| 79 | 79 | |
| @@ -84,7 +84,7 @@ discard block | ||
| 84 | 84 |  } elseif ($element == 'product' && in_array($field, array('tosell', 'tobuy', 'tobatch'))) {	// Special case for products | 
| 85 | 85 | restrictedArea($user, 'produit|service', $object, 'product&product', '', '', 'rowid'); | 
| 86 | 86 |  } else { | 
| 87 | -	httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported.");	// This includes the exit. | |
| 87 | +	httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported."); // This includes the exit. | |
| 88 | 88 | } | 
| 89 | 89 | |
| 90 | 90 | |
| @@ -44,7 +44,7 @@ | ||
| 44 | 44 |  if ($action == 'addlinkbyref' && !empty($permissiondellink) && !$cancellink && $id > 0 && !empty($addlinkref) && getDolGlobalString('MAIN_LINK_BY_REF_IN_LINKTO')) { | 
| 45 | 45 | $element_prop = getElementProperties($addlink); | 
| 46 | 46 |  	if (is_array($element_prop)) { | 
| 47 | -		dol_include_once('/' . $element_prop['classpath'] . '/' . $element_prop['classfile'] . '.class.php'); | |
| 47 | +		dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php'); | |
| 48 | 48 | |
| 49 | 49 | $objecttmp = new $element_prop['classname']($db); | 
| 50 | 50 | '@phan-var-force CommonObject $objecttmp'; |