Completed
Push — 2.x ( a34872...c77264 )
by Delete
03:15
created
src/Parser/Sqlite/Reader.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-     * @param $file
147
+     * @param string $file
148 148
      *
149 149
      * @return bool
150 150
      * @throws InvalidArgumentException
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         
Please login to merge, or discard this patch.