@@ -287,8 +287,7 @@ discard block |
||
| 287 | 287 | if (isset($options['ocraservice']) && $options['ocraservice']['type'] != 'tiqr') { |
| 288 | 288 | $options['ocraservice']['ocra.suite'] = $this->_ocraSuite; |
| 289 | 289 | $this->_ocraService = Tiqr_OcraService::getOcraService($options['ocraservice']['type'], $options['ocraservice'], $logger); |
| 290 | - } |
|
| 291 | - else { // Create default ocraservice |
|
| 290 | + } else { // Create default ocraservice |
|
| 292 | 291 | $this->_ocraService = Tiqr_OcraService::getOcraService('tiqr', array('ocra.suite' => $this->_ocraSuite), $logger); |
| 293 | 292 | } |
| 294 | 293 | } |
@@ -511,7 +510,9 @@ discard block |
||
| 511 | 510 | $sessionId = session_id(); |
| 512 | 511 | } |
| 513 | 512 | $status = $this->_getStateValue(self::PREFIX_ENROLLMENT_STATUS, $sessionId); |
| 514 | - if (is_null($status)) return self::ENROLLMENT_STATUS_IDLE; |
|
| 513 | + if (is_null($status)) { |
|
| 514 | + return self::ENROLLMENT_STATUS_IDLE; |
|
| 515 | + } |
|
| 515 | 516 | return $status; |
| 516 | 517 | } |
| 517 | 518 | |
@@ -868,8 +869,7 @@ discard block |
||
| 868 | 869 | |
| 869 | 870 | try { |
| 870 | 871 | return $this->_getStateValue("authenticated_", $sessionId); |
| 871 | - } |
|
| 872 | - catch (Exception $e) { |
|
| 872 | + } catch (Exception $e) { |
|
| 873 | 873 | $this->logger->error('getAuthenticatedUser failed', array('exception'=>$e)); |
| 874 | 874 | return NULL; |
| 875 | 875 | } |