@@ -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\Source\Ini; |
| 5 | 5 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $unprocessedBytes = ''; |
| 38 | 38 | foreach ($this->getContent() as $bytes) { |
| 39 | - $combinedBytes = $unprocessedBytes . $bytes; |
|
| 39 | + $combinedBytes = $unprocessedBytes.$bytes; |
|
| 40 | 40 | $patternStart = strpos($combinedBytes, '['); |
| 41 | 41 | if ($patternStart !== false) { |
| 42 | 42 | while (($nextPatternStart = strpos($combinedBytes, '[', $patternStart + 1)) !== false) { |
@@ -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\Source; |
| 5 | 5 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | self::$sourceClasses = $rememberClasses; |
| 58 | 58 | |
| 59 | 59 | throw new InvalidArgumentException( |
| 60 | - "A value in the class name array is of type '" . gettype($className) . "'. String expected." |
|
| 60 | + "A value in the class name array is of type '".gettype($className)."'. String expected." |
|
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -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 '; |