X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Futils%2FReferenceLinkDB.php;h=c12bcb678e42bf8de317e5308bd5a9251613ec59;hb=f24896b237e40718fb6eaa2869592eb0855a47fd;hp=7426ad0783e49652872f4b9ca2db8e5951f5c21b;hpb=e95247d41dbe3b46c83d97f2a9d0e7bd1194bf08;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index 7426ad07..c12bcb67 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -1,4 +1,7 @@ $id, 'title' => $title, @@ -201,7 +204,7 @@ class ReferenceLinkDB $order = $order === 'ASC' ? -1 : 1; // Reorder array by dates. - usort($this->_links, function($a, $b) use ($order) { + usort($this->_links, function ($a, $b) use ($order) { if (isset($a['sticky']) && isset($b['sticky']) && $a['sticky'] !== $b['sticky']) { return $a['sticky'] ? -1 : 1; }