mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
Refactoring (indentation) the code of Entity/Person.php
This commit is contained in:
parent
f967285e34
commit
471bace86d
@ -183,6 +183,8 @@ class Person implements HasCenterInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the accompanying periods of a give person with the
|
||||||
|
* chronological order.
|
||||||
*
|
*
|
||||||
* @return AccompanyingPeriod[]
|
* @return AccompanyingPeriod[]
|
||||||
*/
|
*/
|
||||||
@ -191,7 +193,6 @@ class Person implements HasCenterInterface {
|
|||||||
|
|
||||||
//order by date :
|
//order by date :
|
||||||
usort($periods, function($a, $b) {
|
usort($periods, function($a, $b) {
|
||||||
|
|
||||||
$dateA = $a->getOpeningDate();
|
$dateA = $a->getOpeningDate();
|
||||||
$dateB = $b->getOpeningDate();
|
$dateB = $b->getOpeningDate();
|
||||||
|
|
||||||
@ -217,7 +218,6 @@ class Person implements HasCenterInterface {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
return $periods;
|
return $periods;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user