Verified Commit a92dcf14 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: phpcs

parent 70ec1528
2 merge requests!52:sparkles: Releasing Fusiondirectory Integrator 1.2,!42Resolve "[Integrator] - AUDIT - Removal of audit after set period - new lib"
Pipeline #29326 passed with stages
in 49 seconds
Showing with 4 additions and 5 deletions
+4 -5
...@@ -21,9 +21,9 @@ class AuditLib ...@@ -21,9 +21,9 @@ class AuditLib
public function __construct ( public function __construct (
int $auditRetention, int $auditRetention,
array $auditList, array $auditList,
?object $gateway = NULL, ?object $gateway = NULL,
?string $subTaskDN = NULL, ?string $subTaskDN = NULL,
?string $subTaskCN = NULL, ?string $subTaskCN = NULL,
?Ldap\Link $ldapBind = NULL ?Ldap\Link $ldapBind = NULL
) )
{ {
...@@ -123,8 +123,7 @@ class AuditLib ...@@ -123,8 +123,7 @@ class AuditLib
* @throws Exception * @throws Exception
* Note : Simply take a generalized Ldap time (with UTC = Z) and transform it to php object dateTime. * Note : Simply take a generalized Ldap time (with UTC = Z) and transform it to php object dateTime.
*/ */
public public function generalizeLdapTimeToPhpObject ($generalizeLdapDateTime)
function generalizeLdapTimeToPhpObject ($generalizeLdapDateTime)
{ {
// Extract the date part (first 8 characters: YYYYMMDD), we do not care about hour and seconds. // Extract the date part (first 8 characters: YYYYMMDD), we do not care about hour and seconds.
$auditTimeFormatted = substr($generalizeLdapDateTime, 0, 8); $auditTimeFormatted = substr($generalizeLdapDateTime, 0, 8);
......
Supports Markdown
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