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