@@ -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) |
@@ -505,7 +505,7 @@ |
||
505 | 505 | asort($keywords); |
506 | 506 | |
507 | 507 | $keywordId = 1; |
508 | - foreach($keywords as $keywordValue => $keywordCount) { |
|
508 | + foreach ($keywords as $keywordValue => $keywordCount) { |
|
509 | 509 | // Do NOT use "CREATE TABLE ... AS" here, because this would automatically add an extra id column, |
510 | 510 | // which requires additional space |
511 | 511 | $adapter->exec( |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @return \SQLite3Stmt |
|
29 | + * @return \PDOStatement |
|
30 | 30 | */ |
31 | 31 | protected function getStatement() |
32 | 32 | { |
@@ -116,7 +116,7 @@ |
||
116 | 116 | $newKey = $key; |
117 | 117 | if (($this->getOptions() & self::KEY_LOWER) > 0) { |
118 | 118 | $newKey = strtolower($key); |
119 | - } elseif(($this->getOptions() & self::KEY_UPPER) > 0) { |
|
119 | + } elseif (($this->getOptions() & self::KEY_UPPER) > 0) { |
|
120 | 120 | $newKey = strtoupper($key); |
121 | 121 | } |
122 | 122 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ); |
28 | 28 | } |
29 | 29 | |
30 | - $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING | self::VALUE_REG_EXP_LOWER; |
|
30 | + $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING | self::VALUE_REG_EXP_LOWER; |
|
31 | 31 | if ($returnArray) { |
32 | 32 | $options |= self::RETURN_ARRAY; |
33 | 33 | } else { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | */ |
98 | 98 | protected function getDatabasePath() |
99 | 99 | { |
100 | - $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
100 | + $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
101 | 101 | |
102 | 102 | if (!$this->isFileReadable($databasePath)) { |
103 | 103 | if (!file_exists($databasePath)) { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * @return SourceInterface |
|
79 | + * @return AdapterInterface |
|
80 | 80 | * @throws InvalidArgumentException |
81 | 81 | * @throws UnexpectedValueException |
82 | 82 | */ |