Commit 5477c7b1 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(audit) Fix code style

parent ee407af7
......@@ -66,7 +66,8 @@ class AuditLogAttribute extends OrderedArrayAttribute
return '';
}
public static function formatDateDiff($date) {
public static function formatDateDiff ($date)
{
$now = new DateTime();
$interval = $now->diff($date);
......
......@@ -37,15 +37,14 @@ class auditSecurity extends simplePlugin
{
return [
'main' => [
'name' => _('Security audit'),
'class' => ['fullwidth'],
'attrs' => [
'name' => _('Security audit'),
'class' => ['fullwidth'],
'attrs' => [
new AuditLogAttribute(
'', _('Important events involving your account'),
'fdAuditSecurityLog'
),
],
//~ 'template' => get_template_path('securityaudit.tpl', TRUE, dirname(__FILE__))
],
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment