@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | |
48 | 48 | /** |
49 | - * @param object $object an object or classname |
|
49 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
50 | 50 | * @param string $method the method which we want to inspect |
51 | 51 | */ |
52 | 52 | public function reflect($object, $method){ |
@@ -205,7 +205,7 @@ |
||
205 | 205 | /** |
206 | 206 | * removes an entry from the comments run time cache |
207 | 207 | * |
208 | - * @param mixed $id the comment's id |
|
208 | + * @param string $id the comment's id |
|
209 | 209 | */ |
210 | 210 | protected function uncache($id) { |
211 | 211 | $id = strval($id); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Formats the date of the given timestamp |
95 | 95 | * |
96 | - * @param int|\DateTime $timestamp Either a Unix timestamp or DateTime object |
|
96 | + * @param integer $timestamp Either a Unix timestamp or DateTime object |
|
97 | 97 | * @param string $format Either 'full', 'long', 'medium' or 'short' |
98 | 98 | * full: e.g. 'EEEE, MMMM d, y' => 'Wednesday, August 20, 2014' |
99 | 99 | * long: e.g. 'MMMM d, y' => 'August 20, 2014' |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Gives the relative past time of the timestamp |
194 | 194 | * |
195 | - * @param int|\DateTime $timestamp Either a Unix timestamp or DateTime object |
|
195 | + * @param integer $timestamp Either a Unix timestamp or DateTime object |
|
196 | 196 | * @param int|\DateTime $baseTimestamp Timestamp to compare $timestamp against, defaults to current time |
197 | 197 | * @return string Dates returned are: |
198 | 198 | * < 60 sec => seconds ago |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * Formats the date and time of the given timestamp |
230 | 230 | * |
231 | - * @param int|\DateTime $timestamp Either a Unix timestamp or DateTime object |
|
231 | + * @param integer $timestamp Either a Unix timestamp or DateTime object |
|
232 | 232 | * @param string $formatDate See formatDate() for description |
233 | 233 | * @param string $formatTime See formatTime() for description |
234 | 234 | * @param \DateTimeZone $timeZone The timezone to use |
@@ -150,7 +150,6 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * saves database schema to xml file |
152 | 152 | * @param string $file name of file |
153 | - * @param int $mode |
|
154 | 153 | * @return bool |
155 | 154 | * |
156 | 155 | * TODO: write more documentation |
@@ -194,7 +193,7 @@ discard block |
||
194 | 193 | * simulate the database schema update |
195 | 194 | * @param string $file file to read structure from |
196 | 195 | * @throws Exception |
197 | - * @return string|boolean |
|
196 | + * @return boolean |
|
198 | 197 | */ |
199 | 198 | public static function simulateUpdateDbFromStructure($file) { |
200 | 199 | $schemaManager = self::getMDB2SchemaManager(); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * If an SQLLogger is configured, the execution is logged. |
174 | 174 | * |
175 | 175 | * @param string $query The SQL query to execute. |
176 | - * @param array $params The parameters to bind to the query, if any. |
|
176 | + * @param string[] $params The parameters to bind to the query, if any. |
|
177 | 177 | * @param array $types The types the previous parameters are in. |
178 | 178 | * @param \Doctrine\DBAL\Cache\QueryCacheProfile|null $qcp The query cache profile, optional. |
179 | 179 | * |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * columns or sequences. |
219 | 219 | * |
220 | 220 | * @param string $seqName Name of the sequence object from which the ID should be returned. |
221 | - * @return string A string representation of the last inserted ID. |
|
221 | + * @return integer A string representation of the last inserted ID. |
|
222 | 222 | */ |
223 | 223 | public function lastInsertId($seqName = null) { |
224 | 224 | if ($seqName) { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Adds an expression to composite expression. |
54 | 54 | * |
55 | - * @param mixed $part |
|
55 | + * @param string $part |
|
56 | 56 | * |
57 | 57 | * @return \OCP\DB\QueryBuilder\ICompositeExpression |
58 | 58 | */ |
@@ -652,7 +652,7 @@ |
||
652 | 652 | * ->where($or); |
653 | 653 | * </code> |
654 | 654 | * |
655 | - * @param mixed $predicates The restriction predicates. |
|
655 | + * @param CompositeExpression $predicates The restriction predicates. |
|
656 | 656 | * |
657 | 657 | * @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. |
658 | 658 | */ |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use OC\Files\Filesystem; |
31 | 31 | use OC\Files\View; |
32 | 32 | use OCP\Encryption\IEncryptionModule; |
33 | -use OCP\Files\Storage; |
|
34 | 33 | use OCP\IConfig; |
35 | 34 | |
36 | 35 | class Util { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * send a message to the client |
89 | 89 | * |
90 | 90 | * @param string $type |
91 | - * @param mixed $data |
|
91 | + * @param string $data |
|
92 | 92 | * |
93 | 93 | * @throws \BadMethodCallException |
94 | 94 | * if only one parameter is given, a typeless message will be send with that parameter as data |