@@ -310,7 +310,7 @@ |
||
310 | 310 | /** |
311 | 311 | * get the users email address |
312 | 312 | * |
313 | - * @return string|null |
|
313 | + * @return string |
|
314 | 314 | * @since 9.0.0 |
315 | 315 | */ |
316 | 316 | public function getEMailAddress() { |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * Get an the applications from the OCS server |
164 | 164 | * @param string $id |
165 | 165 | * @param array $targetVersion The target ownCloud version |
166 | - * @return array|null an array of application data or null |
|
166 | + * @return string an array of application data or null |
|
167 | 167 | * |
168 | 168 | * This function returns an applications from the OCS server |
169 | 169 | */ |
@@ -30,7 +30,6 @@ |
||
30 | 30 | namespace OCA\Files_Sharing\Controllers; |
31 | 31 | |
32 | 32 | use OC; |
33 | -use OC\Files\Filesystem; |
|
34 | 33 | use OC_Files; |
35 | 34 | use OC_Util; |
36 | 35 | use OCP; |
@@ -1067,7 +1067,7 @@ discard block |
||
1067 | 1067 | * @param string $shareTime timestamp when the file was shared |
1068 | 1068 | * @param string $itemType |
1069 | 1069 | * @param string $itemSource |
1070 | - * @return DateTime validated date |
|
1070 | + * @return \DateTime validated date |
|
1071 | 1071 | * @throws \Exception |
1072 | 1072 | */ |
1073 | 1073 | private static function validateExpireDate($expireDate, $shareTime, $itemType, $itemSource) { |
@@ -2066,6 +2066,16 @@ discard block |
||
2066 | 2066 | return $id ? $id : false; |
2067 | 2067 | } |
2068 | 2068 | |
2069 | + /** |
|
2070 | + * @param string $itemType |
|
2071 | + * @param string $itemSource |
|
2072 | + * @param integer $shareType |
|
2073 | + * @param string $shareWith |
|
2074 | + * @param string $uidOwner |
|
2075 | + * @param integer $permissions |
|
2076 | + * @param string|null $itemSourceName |
|
2077 | + * @param null|\DateTime $expirationDate |
|
2078 | + */ |
|
2069 | 2079 | private static function checkReshare($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, $itemSourceName, $expirationDate) { |
2070 | 2080 | $backend = self::getBackend($itemType); |
2071 | 2081 |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | $this->log = $logger; |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $postFix |
|
46 | + */ |
|
44 | 47 | protected function generatePath($postFix) { |
45 | 48 | return $this->tmpBaseDir . '/oc_tmp_' . md5(time() . rand()) . $postFix; |
46 | 49 | } |
@@ -98,6 +101,9 @@ discard block |
||
98 | 101 | $this->cleanFiles($this->current); |
99 | 102 | } |
100 | 103 | |
104 | + /** |
|
105 | + * @param string[] $files |
|
106 | + */ |
|
101 | 107 | protected function cleanFiles($files) { |
102 | 108 | foreach ($files as $file) { |
103 | 109 | if (file_exists($file)) { |
@@ -33,6 +33,11 @@ |
||
33 | 33 | |
34 | 34 | |
35 | 35 | class TestController extends Controller { |
36 | + |
|
37 | + /** |
|
38 | + * @param string $appName |
|
39 | + * @param Request $request |
|
40 | + */ |
|
36 | 41 | public function __construct($appName, $request) { |
37 | 42 | parent::__construct($appName, $request); |
38 | 43 | } |
@@ -15,6 +15,11 @@ |
||
15 | 15 | */ |
16 | 16 | class Test_Files_Helper extends \PHPUnit_Framework_TestCase { |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $name |
|
20 | + * @param integer $size |
|
21 | + * @param integer $mtime |
|
22 | + */ |
|
18 | 23 | private function makeFileInfo($name, $size, $mtime, $isDir = false) { |
19 | 24 | return new \OC\Files\FileInfo( |
20 | 25 | '/' . $name, |
@@ -421,6 +421,9 @@ |
||
421 | 421 | self::preRenameOrCopy($params, 'copy'); |
422 | 422 | } |
423 | 423 | |
424 | + /** |
|
425 | + * @param string $operation |
|
426 | + */ |
|
424 | 427 | private static function preRenameOrCopy($params, $operation) { |
425 | 428 | $user = \OCP\User::getUser(); |
426 | 429 | $view = new \OC\Files\View('/'); |