@@ -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\Source; |
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 @@ 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 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Formatter; |
5 | 5 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function __construct(bool $returnArray = false) |
21 | 21 | { |
22 | - $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING | self::VALUE_REG_EXP_LOWER; |
|
22 | + $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING | self::VALUE_REG_EXP_LOWER; |
|
23 | 23 | if ($returnArray) { |
24 | 24 | $options |= self::RETURN_ARRAY; |
25 | 25 | } else { |
@@ -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\Formatter; |
5 | 5 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $newKey = $key; |
94 | 94 | if (($this->getOptions() & self::KEY_LOWER) > 0) { |
95 | 95 | $newKey = strtolower($key); |
96 | - } elseif(($this->getOptions() & self::KEY_UPPER) > 0) { |
|
96 | + } elseif (($this->getOptions() & self::KEY_UPPER) > 0) { |
|
97 | 97 | $newKey = strtoupper($key); |
98 | 98 | } |
99 | 99 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Crossjoin\Browscap\Source; |
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\Source; |
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\Source; |
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\Source; |
5 | 5 |