Passed
Branch feature/3.0 (886f3a)
by Pieter van der
03:50
created
library/tiqr/Tiqr/Service.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -263,8 +263,7 @@  discard block
 block discarded – undo
263 263
         if (isset($options['ocraservice']) && $options['ocraservice']['type'] != 'tiqr') {
264 264
             $options['ocraservice']['ocra.suite'] = $this->_ocraSuite;
265 265
             $this->_ocraService = Tiqr_OcraService::getOcraService($options['ocraservice']['type'], $options['ocraservice'], $logger);
266
-        }
267
-        else { // Create default ocraservice
266
+        } else { // Create default ocraservice
268 267
             $this->_ocraService = Tiqr_OcraService::getOcraService('tiqr', array('ocra.suite' => $this->_ocraSuite), $logger);
269 268
         }
270 269
     }
@@ -487,7 +486,9 @@  discard block
 block discarded – undo
487 486
             $sessionId = session_id(); 
488 487
         }
489 488
         $status = $this->_stateStorage->getValue(self::PREFIX_ENROLLMENT_STATUS.$sessionId);
490
-        if (is_null($status)) return self::ENROLLMENT_STATUS_IDLE;
489
+        if (is_null($status)) {
490
+            return self::ENROLLMENT_STATUS_IDLE;
491
+        }
491 492
         return $status;
492 493
     }
493 494
         
@@ -843,8 +844,7 @@  discard block
 block discarded – undo
843 844
         
844 845
         try {
845 846
             return $this->_stateStorage->getValue("authenticated_".$sessionId);
846
-        }
847
-        catch (Exception $e) {
847
+        } catch (Exception $e) {
848 848
             $this->logger->error('getAuthenticatedUser failed', array('exception'=>$e));
849 849
             return NULL;
850 850
         }
Please login to merge, or discard this patch.