@@ -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); |
@@ -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; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Wrapper around file_get_contents($filename, $data) |
33 | 33 | * |
34 | 34 | * @param string $filename |
35 | - * @return string|false |
|
35 | + * @return string |
|
36 | 36 | */ |
37 | 37 | public function file_get_contents($filename) { |
38 | 38 | return file_get_contents($filename); |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | * Wrapper around file_put_contents($filename, $data) |
53 | 53 | * |
54 | 54 | * @param string $filename |
55 | - * @param $data |
|
56 | - * @return int|false |
|
55 | + * @param string $data |
|
56 | + * @return integer |
|
57 | 57 | */ |
58 | 58 | public function file_put_contents($filename, $data) { |
59 | 59 | return file_put_contents($filename, $data); |