@@ -197,7 +197,7 @@ |
||
| 197 | 197 | */ |
| 198 | 198 | private static function getStringParameter($config, $section, $name) |
| 199 | 199 | { |
| 200 | - return isset($config[$section][$name]) ? $config[$section][$name] : NULL; |
|
| 200 | + return isset($config[$section][$name]) ? $config[$section][$name] : NULL; |
|
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | /* |
@@ -41,13 +41,13 @@ discard block |
||
| 41 | 41 | print("-->()"); |
| 42 | 42 | return $pdo; |
| 43 | 43 | } catch (Exception $e) { |
| 44 | - if ($config->getUseOnMemoryDB() !== true) { |
|
| 44 | + if ($config->getUseOnMemoryDB()!==true) { |
|
| 45 | 45 | throw new Exception("Could not create a db connection. Check permissions, configuration, and documentation. ".$e->getMessage()); |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if ($config->getUseOnMemoryDB() === true) { |
|
| 50 | + if ($config->getUseOnMemoryDB()===true) { |
|
| 51 | 51 | try { |
| 52 | 52 | return new PDO("sqlite::memory:", null, null, $options); |
| 53 | 53 | } catch (Exception $e) { |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | * @param $config Configuration |
| 250 | 250 | * |
| 251 | 251 | */ |
| 252 | - public static function findIdByTimeUser($pdo, $config, $by=[]) { |
|
| 252 | + public static function findIdByTimeUser($pdo, $config, $by = []) { |
|
| 253 | 253 | return OptionsDAO::findIdByTimeUser($pdo, $config, $by); |
| 254 | 254 | } |
| 255 | 255 | |