Completed
Pull Request — stable9 (#370)
by Olivier
09:25
created
lib/private/files/type/loader.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 
24 24
 use OCP\Files\IMimeTypeLoader;
25 25
 use OCP\IDBConnection;
26
-
27 26
 use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
28 27
 
29 28
 /**
Please login to merge, or discard this patch.
lib/private/files/view.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	 * and does not take the chroot into account )
201 201
 	 *
202 202
 	 * @param string $path
203
-	 * @return \OCP\Files\Mount\IMountPoint
203
+	 * @return Mount\MountPoint|null
204 204
 	 */
205 205
 	public function getMount($path) {
206 206
 		return Filesystem::getMountManager()->find($this->getAbsolutePath($path));
@@ -948,7 +948,7 @@  discard block
 block discarded – undo
948 948
 
949 949
 	/**
950 950
 	 * @param string $path
951
-	 * @return bool|string
951
+	 * @return string|false
952 952
 	 * @throws \OCP\Files\InvalidPathException
953 953
 	 */
954 954
 	public function toTmpFile($path) {
@@ -2071,7 +2071,7 @@  discard block
 block discarded – undo
2071 2071
 
2072 2072
 	/**
2073 2073
 	 * @param string $filename
2074
-	 * @return array
2074
+	 * @return string[]
2075 2075
 	 * @throws \OC\User\NoUserException
2076 2076
 	 * @throws NotFoundException
2077 2077
 	 */
Please login to merge, or discard this patch.
lib/private/group/manager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
 
155 155
 	/**
156 156
 	 * @param string $gid
157
-	 * @return \OCP\IGroup
157
+	 * @return null|Group
158 158
 	 */
159 159
 	protected function getGroupObject($gid) {
160 160
 		$backends = array();
Please login to merge, or discard this patch.
lib/private/helper.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@  discard block
 block discarded – undo
77 77
 		return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_preview', ['x' => 32, 'y' => 32, 'file' => $path]);
78 78
 	}
79 79
 
80
+	/**
81
+	 * @param string $path
82
+	 */
80 83
 	public static function publicPreviewIcon( $path, $token ) {
81 84
 		return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]);
82 85
 	}
@@ -591,7 +594,7 @@  discard block
 block discarded – undo
591 594
 	 *
592 595
 	 * @param string $path
593 596
 	 * @param \OCP\Files\FileInfo $rootInfo (optional)
594
-	 * @return array
597
+	 * @return string
595 598
 	 * @throws \OCP\Files\NotFoundException
596 599
 	 */
597 600
 	public static function getStorageInfo($path, $rootInfo = null) {
Please login to merge, or discard this patch.
lib/private/integritycheck/helpers/fileaccesshelper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
lib/private/l10n/factory.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -278,6 +278,11 @@
 block discarded – undo
278 278
 	 */
279 279
 	// FIXME This method is only public, until OC_L10N does not need it anymore,
280 280
 	// FIXME This is also the reason, why it is not in the public interface
281
+
282
+	/**
283
+	 * @param string|boolean $app
284
+	 * @param string|null $lang
285
+	 */
281 286
 	public function getL10nFilesForApp($app, $lang) {
282 287
 		$languageFiles = [];
283 288
 
Please login to merge, or discard this patch.
lib/private/l10n/l10n.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
 	 * Returns an associative array with all translations
177 177
 	 *
178 178
 	 * Called by \OC_L10N_String
179
-	 * @return array
179
+	 * @return string[]
180 180
 	 */
181 181
 	public function getTranslations() {
182 182
 		return $this->translations;
Please login to merge, or discard this patch.
lib/private/mail/message.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	/**
163 163
 	 * Set the BCC recipients of this message.
164 164
 	 *
165
-	 * @param array $recipients Example: array('[email protected]', '[email protected]' => 'A name')
165
+	 * @param string[] $recipients Example: array('[email protected]', '[email protected]' => 'A name')
166 166
 	 * @return $this
167 167
 	 */
168 168
 	public function setBcc(array $recipients) {
Please login to merge, or discard this patch.
lib/private/memcache/apc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 	 * Set a value in the cache if it's not already stored
156 156
 	 *
157 157
 	 * @param string $key
158
-	 * @param mixed $value
158
+	 * @param integer $value
159 159
 	 * @param int $ttl Time To Live in seconds. Defaults to 60*60*24
160 160
 	 * @return bool
161 161
 	 * @throws \Exception
Please login to merge, or discard this patch.