| @@ -86,8 +86,8 @@ discard block | ||
| 86 | 86 | } | 
| 87 | 87 | $info = new \SplFileInfo($database); | 
| 88 | 88 | $dbName = $info->getFilename(); | 
| 89 | - $dbSuffix ='.sqlite'; | |
| 90 | -            if (substr_compare(strtolower($dbName), $dbSuffix, -strlen($dbSuffix)) !== 0) { $dbName .= $dbSuffix ; } | |
| 89 | + $dbSuffix = '.sqlite'; | |
| 90 | +            if (substr_compare(strtolower($dbName), $dbSuffix, -strlen($dbSuffix)) !== 0) { $dbName .= $dbSuffix; } | |
| 91 | 91 |          } catch (\Throwable $th) { | 
| 92 | 92 | trigger_error($th->getMessage(), E_USER_ERROR); | 
| 93 | 93 | } | 
| @@ -152,7 +152,7 @@ discard block | ||
| 152 | 152 | $sCommand .= 'WHERE `start` <= :start '; | 
| 153 | 153 | $sCommand .= 'ORDER BY start DESC LIMIT 1'; | 
| 154 | 154 | $statement = $this->oPDOInstance->prepare(sprintf($sCommand, $ipVersion)); | 
| 155 | - $statement->execute([':start' => $start ]); | |
| 155 | + $statement->execute([':start' => $start]); | |
| 156 | 156 | $row = $statement->fetch(\PDO::FETCH_OBJ); | 
| 157 | 157 | if (is_bool($row) && $row === false) | 
| 158 | 158 |              { | 
| @@ -210,7 +210,7 @@ discard block | ||
| 210 | 210 | ':country' => $country | 
| 211 | 211 | ]); | 
| 212 | 212 |          } catch (\PDOException $th) { | 
| 213 | -            trigger_error('Statement failed: ' . $th->getMessage(), E_USER_ERROR); | |
| 213 | +            trigger_error('Statement failed: '.$th->getMessage(), E_USER_ERROR); | |
| 214 | 214 | } | 
| 215 | 215 | } | 
| 216 | 216 | /** |