Skip to content

Commit

Permalink
Update Persistence.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rdorado committed Nov 9, 2018
1 parent 55cb87d commit d07c5a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Persistence.php
Expand Up @@ -45,7 +45,7 @@ public static function getPDO($config) {

if ($config->getUseOnMemoryDB()) {
try {
return new PDO("sqlite::memory:",$options);
return new PDO("sqlite::memory:", $options);
} catch (Exception $e) {
throw new Exception("Could not create a db connection. Check permissions, configuration, and documentation. ".$e->getMessage());
}
Expand Down Expand Up @@ -209,7 +209,7 @@ public static function checkHitTable($pdo, $config) {
* @param $config Configuration
*
*/
public static function updateCount($pdo, $config, $options = []) {
public static function updateCount($pdo, $config, $options = []) {

$db_hit_table = $config->getHitTableName();
$db_options_table = $config->getOptionsTableName();
Expand Down Expand Up @@ -407,7 +407,7 @@ public static function findIdByTimeUser($pdo, $config, $by = []) {

$sql = "SELECT id,time,user FROM $dbtable";
if (count($tquery) > 0) {
$sql = $sql." WHERE ".join(" AND ",$tquery);
$sql = $sql." WHERE ".join(" AND ", $tquery);
}

$stmt = $pdo->prepare($sql);
Expand Down

0 comments on commit d07c5a3

Please sign in to comment.