@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @return mixed |
|
74 | + * @return SourceInterface |
|
75 | 75 | * @throws InvalidArgumentException |
76 | 76 | * @throws UnexpectedValueException |
77 | 77 | */ |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @param $directory |
|
131 | + * @param string $directory |
|
132 | 132 | * @param bool $create |
133 | 133 | * |
134 | 134 | * @throws ParserConfigurationException |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite; |
5 | 5 |
@@ -342,7 +342,7 @@ |
||
342 | 342 | /** |
343 | 343 | * @param array $properties |
344 | 344 | * |
345 | - * @return int|null |
|
345 | + * @return string|null |
|
346 | 346 | * @throws ParserRuntimeException |
347 | 347 | */ |
348 | 348 | protected function getParentPatternId(array &$properties) |
@@ -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 | |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | asort($keywords); |
465 | 465 | |
466 | 466 | $keywordId = 1; |
467 | - foreach($keywords as $keywordValue => $keywordCount) { |
|
467 | + foreach ($keywords as $keywordValue => $keywordCount) { |
|
468 | 468 | // Do NOT use "CREATE TABLE ... AS" here, because this would automatically add an extra id column, |
469 | 469 | // which requires additional space |
470 | 470 | $adapter->exec( |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite; |
5 | 5 |
@@ -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 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function getDatabasePath() : string |
91 | 91 | { |
92 | - $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
92 | + $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
93 | 93 | |
94 | 94 | if (!$this->isFileReadable($databasePath)) { |
95 | 95 | if (!file_exists($databasePath)) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite\Adapter; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite\Adapter; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite\Adapter; |
5 | 5 |