@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite; |
5 | 5 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function getDatabasePath() : string |
96 | 96 | { |
97 | - $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
97 | + $databasePath = $this->getDataDirectory().DIRECTORY_SEPARATOR.$this->getDatabaseFileName(); |
|
98 | 98 | |
99 | 99 | if (!$this->isFileReadable($databasePath)) { |
100 | 100 | if (!file_exists($databasePath)) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | // Get database to use, saved in the link file (as symlinks are not available or only |
123 | 123 | // with admin permissions on Windows). |
124 | - $linkFile = $this->getDataDirectory() . DIRECTORY_SEPARATOR . Parser::LINK_FILENAME; |
|
124 | + $linkFile = $this->getDataDirectory().DIRECTORY_SEPARATOR.Parser::LINK_FILENAME; |
|
125 | 125 | if ($this->isFileReadable($linkFile)) { |
126 | 126 | return (string)file_get_contents($linkFile); |
127 | 127 | } elseif (!file_exists($linkFile)) { |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | |
294 | 294 | $query = 'SELECT t3.property_key, t4.property_value FROM ('; |
295 | 295 | $query .= 'SELECT MAX(browser_id) AS browser_id, property_key_id '; |
296 | - $query .= 'FROM browser_property WHERE browser_id IN (' . implode(', ', $browserIds) . ') '; |
|
296 | + $query .= 'FROM browser_property WHERE browser_id IN ('.implode(', ', $browserIds).') '; |
|
297 | 297 | $query .= 'GROUP BY property_key_id'; |
298 | 298 | $query .= ') t1 '; |
299 | 299 | $query .= 'JOIN browser_property t2 ON t2.browser_id = t1.browser_id '; |