@@ -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 |
@@ -40,10 +40,10 @@ |
||
40 | 40 | * @param LoggerInterface $logger |
41 | 41 | * @throws Exception An exception if an unknown storage is requested. |
42 | 42 | */ |
43 | - public static function getStorage(string $type="dummy", Array $options=array(), LoggerInterface $logger=null) |
|
43 | + public static function getStorage(string $type = "dummy", Array $options = array(), LoggerInterface $logger = null) |
|
44 | 44 | { |
45 | 45 | if (!$logger) |
46 | - $logger=new \Psr\Log\NullLogger(); |
|
46 | + $logger = new \Psr\Log\NullLogger(); |
|
47 | 47 | |
48 | 48 | switch ($type) { |
49 | 49 | case "dummy": |
@@ -42,8 +42,9 @@ |
||
42 | 42 | */ |
43 | 43 | public static function getStorage(string $type="dummy", Array $options=array(), LoggerInterface $logger=null) |
44 | 44 | { |
45 | - if (!$logger) |
|
46 | - $logger=new \Psr\Log\NullLogger(); |
|
45 | + if (!$logger) { |
|
46 | + $logger=new \Psr\Log\NullLogger(); |
|
47 | + } |
|
47 | 48 | |
48 | 49 | switch ($type) { |
49 | 50 | case "dummy": |