@@ -45,10 +45,10 @@ |
||
45 | 45 | * @param LoggerInterface $logger |
46 | 46 | * @throws Exception An exception if an unknown storage is requested. |
47 | 47 | */ |
48 | - public static function getStorage($type="dummy", $options=array(), LoggerInterface $logger=null) |
|
48 | + public static function getStorage($type = "dummy", $options = array(), LoggerInterface $logger = null) |
|
49 | 49 | { |
50 | 50 | if (!$logger) |
51 | - $logger=new \Psr\Log\NullLogger(); |
|
51 | + $logger = new \Psr\Log\NullLogger(); |
|
52 | 52 | |
53 | 53 | switch ($type) { |
54 | 54 | case "dummy": |
@@ -47,8 +47,9 @@ |
||
47 | 47 | */ |
48 | 48 | public static function getStorage($type="dummy", $options=array(), LoggerInterface $logger=null) |
49 | 49 | { |
50 | - if (!$logger) |
|
51 | - $logger=new \Psr\Log\NullLogger(); |
|
50 | + if (!$logger) { |
|
51 | + $logger=new \Psr\Log\NullLogger(); |
|
52 | + } |
|
52 | 53 | |
53 | 54 | switch ($type) { |
54 | 55 | case "dummy": |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $this->logger = $logger; |
36 | 36 | |
37 | 37 | // Set the OCRA suite |
38 | - $this->_ocraSuite = $config['ocra.suite'] ?? 'OCRA-1:HOTP-SHA1-6:QH10-S'; // Use tiqr server default suite |
|
38 | + $this->_ocraSuite = $config['ocra.suite'] ?? 'OCRA-1:HOTP-SHA1-6:QH10-S'; // Use tiqr server default suite |
|
39 | 39 | $this->_ocraParser = new OATH_OCRAParser($this->_ocraSuite); |
40 | 40 | } |
41 | 41 |