@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | { |
69 | 69 | if (!is_string($dataDirectory)) { |
70 | 70 | throw new InvalidArgumentException( |
71 | - "Invalid type '" . gettype($dataDirectory) . "' for argument 'dataDirectory'." |
|
71 | + "Invalid type '".gettype($dataDirectory)."' for argument 'dataDirectory'." |
|
72 | 72 | ); |
73 | 73 | } |
74 | 74 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | protected function getDatabasePath() |
104 | 104 | { |
105 | - $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
105 | + $databasePath = $this->getDataDirectory().DIRECTORY_SEPARATOR.$this->getDatabaseFileName(); |
|
106 | 106 | |
107 | 107 | if (!$this->isFileReadable($databasePath)) { |
108 | 108 | if (!file_exists($databasePath)) { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | { |
131 | 131 | // Get database to use, saved in the link file (as symlinks are not available or only |
132 | 132 | // with admin permissions on Windows). |
133 | - $linkFile = $this->getDataDirectory() . DIRECTORY_SEPARATOR . Parser::LINK_FILENAME; |
|
133 | + $linkFile = $this->getDataDirectory().DIRECTORY_SEPARATOR.Parser::LINK_FILENAME; |
|
134 | 134 | if ($this->isFileReadable($linkFile)) { |
135 | 135 | return (string)file_get_contents($linkFile); |
136 | 136 | } elseif (!file_exists($linkFile)) { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | { |
154 | 154 | if (!is_string($file)) { |
155 | 155 | throw new InvalidArgumentException( |
156 | - "Invalid type '" . gettype($file) . "' for argument 'file'." |
|
156 | + "Invalid type '".gettype($file)."' for argument 'file'." |
|
157 | 157 | ); |
158 | 158 | } |
159 | 159 | |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | { |
265 | 265 | if (!is_string($userAgent)) { |
266 | 266 | throw new InvalidArgumentException( |
267 | - "Invalid type '" . gettype($userAgent) . "' for argument 'userAgent'." |
|
267 | + "Invalid type '".gettype($userAgent)."' for argument 'userAgent'." |
|
268 | 268 | ); |
269 | 269 | } |
270 | 270 | |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | |
321 | 321 | $query = 'SELECT t3.property_key, t4.property_value FROM ('; |
322 | 322 | $query .= 'SELECT MAX(browser_id) AS browser_id, property_key_id '; |
323 | - $query .= 'FROM browser_property WHERE browser_id IN (' . implode(', ', $browserIds) . ') '; |
|
323 | + $query .= 'FROM browser_property WHERE browser_id IN ('.implode(', ', $browserIds).') '; |
|
324 | 324 | $query .= 'GROUP BY property_key_id'; |
325 | 325 | $query .= ') t1 '; |
326 | 326 | $query .= 'JOIN browser_property t2 ON t2.browser_id = t1.browser_id '; |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | { |
435 | 435 | if (!is_string($userAgent)) { |
436 | 436 | throw new InvalidArgumentException( |
437 | - "Invalid type '" . gettype($userAgent) . "' for argument 'userAgent'." |
|
437 | + "Invalid type '".gettype($userAgent)."' for argument 'userAgent'." |
|
438 | 438 | ); |
439 | 439 | } |
440 | 440 | |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | { |
467 | 467 | if (!is_string($userAgent)) { |
468 | 468 | throw new InvalidArgumentException( |
469 | - "Invalid type '" . gettype($userAgent) . "' for argument 'userAgent'." |
|
469 | + "Invalid type '".gettype($userAgent)."' for argument 'userAgent'." |
|
470 | 470 | ); |
471 | 471 | } |
472 | 472 | |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | { |
523 | 523 | if (!is_string($userAgent)) { |
524 | 524 | throw new InvalidArgumentException( |
525 | - "Invalid type '" . gettype($userAgent) . "' for argument 'userAgent'." |
|
525 | + "Invalid type '".gettype($userAgent)."' for argument 'userAgent'." |
|
526 | 526 | ); |
527 | 527 | } |
528 | 528 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | if (!is_string($property)) { |
23 | 23 | throw new InvalidArgumentException( |
24 | - "Invalid type '" . gettype($property) . "' for argument 'property'." |
|
24 | + "Invalid type '".gettype($property)."' for argument 'property'." |
|
25 | 25 | ); |
26 | 26 | } |
27 | 27 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | if (!is_string($property)) { |
23 | 23 | throw new InvalidArgumentException( |
24 | - "Invalid type '" . gettype($property) . "' for argument 'property'." |
|
24 | + "Invalid type '".gettype($property)."' for argument 'property'." |
|
25 | 25 | ); |
26 | 26 | } |
27 | 27 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | if (!is_string($property)) { |
23 | 23 | throw new InvalidArgumentException( |
24 | - "Invalid type '" . gettype($property) . "' for argument 'property'." |
|
24 | + "Invalid type '".gettype($property)."' for argument 'property'." |
|
25 | 25 | ); |
26 | 26 | } |
27 | 27 |
@@ -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 | |
42 | 42 | $dataProcessed = false; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | { |
70 | 70 | if (!is_string($data)) { |
71 | 71 | throw new InvalidArgumentException( |
72 | - "Invalid type '" . gettype($data) . "' for argument 'data'." |
|
72 | + "Invalid type '".gettype($data)."' for argument 'data'." |
|
73 | 73 | ); |
74 | 74 | } |
75 | 75 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | if (!is_bool($returnArray)) { |
25 | 25 | throw new InvalidArgumentException( |
26 | - "Invalid type '" . gettype($returnArray) . "' for argument 'returnArray'." |
|
26 | + "Invalid type '".gettype($returnArray)."' for argument 'returnArray'." |
|
27 | 27 | ); |
28 | 28 | } |
29 | 29 |