@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @return int |
60 | 60 | */ |
61 | - public function showLinkedObjectBlock(array $params = [], $object){ |
|
62 | - if(!isset($object->linkedObjectsIds) || !isset($object->linkedObjectsIds['flightlog_damage'])){ |
|
61 | + public function showLinkedObjectBlock(array $params = [], $object) { |
|
62 | + if (!isset($object->linkedObjectsIds) || !isset($object->linkedObjectsIds['flightlog_damage'])) { |
|
63 | 63 | return 0; |
64 | 64 | } |
65 | 65 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | dol_include_once('/flightlog/flightlog.inc.php'); |
70 | 70 | $queryRepository = new \FlightLog\Infrastructure\Damage\Query\Repository\GetDamageQueryRepository($db); |
71 | 71 | |
72 | - foreach($object->linkedObjectsIds['flightlog_damage'] as $damageId){ |
|
72 | + foreach ($object->linkedObjectsIds['flightlog_damage'] as $damageId) { |
|
73 | 73 | try { |
74 | 74 | $object->linkedObjects['flightlog_damage'][$damageId] = $queryRepository->query($damageId); |
75 | 75 | } catch (Exception $e) { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | return $sql; |
100 | 100 | } |
101 | 101 | |
102 | - public function completeListOfReferent(){ |
|
102 | + public function completeListOfReferent() { |
|
103 | 103 | dol_include_once('/flightlog/class/bbcvols.class.php'); |
104 | 104 | |
105 | 105 | $this->results['flightlog'] = [ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | ?> |
48 | 48 | <tr <?php echo $GLOBALS['bc'][$var]; ?> > |
49 | 49 | <td><?php echo $langs->trans("Dégâts"); ?></td> |
50 | - <td><a href="<?php echo sprintf(DOL_URL_ROOT.'/flightlog/index.php?id=%s&r=%s', $damage->getId(), 'get_one_damage');?>"><?php echo $damage->getId()?></a></td> |
|
50 | + <td><a href="<?php echo sprintf(DOL_URL_ROOT . '/flightlog/index.php?id=%s&r=%s', $damage->getId(), 'get_one_damage'); ?>"><?php echo $damage->getId()?></a></td> |
|
51 | 51 | <td align="center"><?php echo $damage->getAuthorName(); ?></td> |
52 | 52 | <td align="center"></td> |
53 | 53 | <td align="right"><?echo price($damage->getAmount()) ?>€</td> |