chg: [widget] remove unused var, make test pass

pull/6019/head
Jean-Louis Huynen 2020-06-17 10:27:54 +02:00
parent 3b651621e2
commit 245fdf452c
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
1 changed files with 1 additions and 4 deletions

View File

@ -18,9 +18,6 @@ class AuthenticationFailureWidget
"absciss": "username"
}';
private $__populationData = array();
public function handler($user, $options = array())
{
$this->Event = ClassRegistry::init('Event');
@ -94,7 +91,7 @@ class AuthenticationFailureWidget
foreach ($object['Attribute'] as $attribute) {
if (in_array($attribute['object_relation'], $validFields)) {
if ($attribute['object_relation'] == 'total') {
$attribute['value'] = intval($attribute['value']);
$attribute['value'] = (int)($attribute['value']);
}
$temp[$attribute['object_relation']] = $attribute['value'];
}