@@ -153,7 +153,7 @@ |
||
153 | 153 | |
154 | 154 | /** |
155 | 155 | * @param mixed $offset |
156 | - * @return mixed |
|
156 | + * @return string|null |
|
157 | 157 | */ |
158 | 158 | public function offsetGet($offset) { |
159 | 159 | return $this->get($offset); |
@@ -279,7 +279,7 @@ |
||
279 | 279 | /** |
280 | 280 | * get share ID |
281 | 281 | * |
282 | - * @return integer unique share ID |
|
282 | + * @return string unique share ID |
|
283 | 283 | */ |
284 | 284 | public function getShareId() { |
285 | 285 | return $this->newShare->getId(); |
@@ -202,7 +202,7 @@ |
||
202 | 202 | /** |
203 | 203 | * removes an entry from the comments run time cache |
204 | 204 | * |
205 | - * @param mixed $id the comment's id |
|
205 | + * @param string $id the comment's id |
|
206 | 206 | */ |
207 | 207 | protected function uncache($id) { |
208 | 208 | $id = strval($id); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * If an SQLLogger is configured, the execution is logged. |
168 | 168 | * |
169 | 169 | * @param string $query The SQL query to execute. |
170 | - * @param array $params The parameters to bind to the query, if any. |
|
170 | + * @param string[] $params The parameters to bind to the query, if any. |
|
171 | 171 | * @param array $types The types the previous parameters are in. |
172 | 172 | * @param \Doctrine\DBAL\Cache\QueryCacheProfile|null $qcp The query cache profile, optional. |
173 | 173 | * |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * columns or sequences. |
213 | 213 | * |
214 | 214 | * @param string $seqName Name of the sequence object from which the ID should be returned. |
215 | - * @return string A string representation of the last inserted ID. |
|
215 | + * @return integer A string representation of the last inserted ID. |
|
216 | 216 | */ |
217 | 217 | public function lastInsertId($seqName = null) |
218 | 218 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Set a value in the cache if it's not already stored |
121 | 121 | * |
122 | 122 | * @param string $key |
123 | - * @param mixed $value |
|
123 | + * @param integer $value |
|
124 | 124 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
125 | 125 | * @return bool |
126 | 126 | */ |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Set a value in the cache if it's not already stored |
121 | 121 | * |
122 | 122 | * @param string $key |
123 | - * @param mixed $value |
|
123 | + * @param integer $value |
|
124 | 124 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
125 | 125 | * @return bool |
126 | 126 | */ |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Set a value in the cache if it's not already stored |
121 | 121 | * |
122 | 122 | * @param string $key |
123 | - * @param mixed $value |
|
123 | + * @param integer $value |
|
124 | 124 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
125 | 125 | * @return bool |
126 | 126 | */ |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Set a value in the cache if it's not already stored |
121 | 121 | * |
122 | 122 | * @param string $key |
123 | - * @param mixed $value |
|
123 | + * @param integer $value |
|
124 | 124 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
125 | 125 | * @return bool |
126 | 126 | */ |
@@ -288,6 +288,10 @@ discard block |
||
288 | 288 | return '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
289 | 289 | } |
290 | 290 | |
291 | + /** |
|
292 | + * @param integer $step |
|
293 | + * @param integer $max |
|
294 | + */ |
|
291 | 295 | protected function emit($sql, $step, $max) { |
292 | 296 | if ($this->noEmit) { |
293 | 297 | return; |
@@ -298,6 +302,10 @@ discard block |
||
298 | 302 | $this->dispatcher->dispatch('\OC\DB\Migrator::executeSql', new GenericEvent($sql, [$step+1, $max])); |
299 | 303 | } |
300 | 304 | |
305 | + /** |
|
306 | + * @param integer $step |
|
307 | + * @param integer $max |
|
308 | + */ |
|
301 | 309 | private function emitCheckStep($tableName, $step, $max) { |
302 | 310 | if(is_null($this->dispatcher)) { |
303 | 311 | return; |