Passed
Push — master ( b4400f...3df1f9 )
by Alfred
03:27 queued 01:40
created
src/bin/GeoipDatabase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.