diff --git a/lib/SecurityUtility.php b/lib/SecurityUtility.php index cae9380..f6ca618 100644 --- a/lib/SecurityUtility.php +++ b/lib/SecurityUtility.php @@ -21,10 +21,7 @@ public function generateSecurityToken($xmlDom, $certificateFilePath, $keyPass, & $pubcert = explode("\n", $certs['cert']); array_shift($pubcert); - while (!trim(array_pop($pubcert))) - { - - } + while (!trim(array_pop($pubcert))) { /* Empty whlie loop */ } array_walk($pubcert, 'trim'); $pubcert = implode('', $pubcert); @@ -46,24 +43,6 @@ public function generateSecurityToken($xmlDom, $certificateFilePath, $keyPass, & return $tokenElement; } - /** - * Sample UUID function, based on random number or provided data - * - * @param mixed $data - * @return string - */ - function getUUID($data = null) - { - if ($data === null) - { - $data = microtime() . uniqid(); - } - - $id = md5($data); - - return sprintf('%08s-%04s-%04s-%04s-%012s', substr($id, 0, 8), substr($id, 8, 4), substr($id, 12, 4), substr(16, 4), substr($id, 20)); - } - /** * XML canonicalization *