change typo
This commit is contained in:
parent
734d4999cc
commit
55d56ad9f0
|
@ -136,7 +136,7 @@ EOF
|
||||||
return [
|
return [
|
||||||
'domain' => $domain,
|
'domain' => $domain,
|
||||||
'expiryDate' => $expiryDate,
|
'expiryDate' => $expiryDate,
|
||||||
'comparaison' => $expiryDate ? $expiryDate->getTimestamp() : 'FAIL',
|
'comparison' => $expiryDate ? $expiryDate->getTimestamp() : 'FAIL',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,11 +150,11 @@ EOF
|
||||||
protected function sort(array $data):array
|
protected function sort(array $data):array
|
||||||
{
|
{
|
||||||
usort($data, function ($a, $b) {
|
usort($data, function ($a, $b) {
|
||||||
if ($a['comparaison'] > $b['comparaison']) {
|
if ($a['comparison'] > $b['comparison']) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($a['comparaison'] === $b['comparaison']) {
|
if ($a['comparison'] === $b['comparison']) {
|
||||||
if ($a['domain'] > $b['domain']) {
|
if ($a['domain'] > $b['domain']) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue