Passed
Pull Request — develop (#43)
by Pieter van der
03:57
created
library/tiqr/Tiqr/Service.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -287,8 +287,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.