@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param object|string $object an object or classname |
|
46 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
47 | 47 | * @param string $method the method which we want to inspect |
48 | 48 | * @throws \ReflectionException |
49 | 49 | */ |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param $source |
|
65 | - * @param $path |
|
64 | + * @param resource $source |
|
65 | + * @param string $path |
|
66 | 66 | * @return resource |
67 | 67 | */ |
68 | 68 | public static function wrap($source, $path) { |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | return parent::stream_write($data); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param string $data |
|
127 | + */ |
|
125 | 128 | private function updateHashingContexts($data) { |
126 | 129 | foreach ($this->hashingContexts as $ctx) { |
127 | 130 | \hash_update($ctx, $data); |
@@ -195,7 +198,7 @@ discard block |
||
195 | 198 | } |
196 | 199 | |
197 | 200 | /** |
198 | - * @return mixed |
|
201 | + * @return string |
|
199 | 202 | * @return string |
200 | 203 | */ |
201 | 204 | private function getPathFromStreamContext() { |
@@ -77,6 +77,8 @@ |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * If only a single attribute should be listed omit the key to make it fit in one row |
80 | + * @param string $key |
|
81 | + * @param boolean $useKey |
|
80 | 82 | */ |
81 | 83 | private function add(&$row, $key, $val, $useKey) { |
82 | 84 | if ($useKey) { |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | * Set the flag to true, so that the file would be |
655 | 655 | * in the decrypted state. |
656 | 656 | * |
657 | - * @param $isDisabled bool |
|
657 | + * @param boolean $isDisabled bool |
|
658 | 658 | */ |
659 | 659 | public static function setDisableWriteEncryption($isDisabled) { |
660 | 660 | self::$disableWriteEncryption = $isDisabled; |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | * Read first block of encrypted file from resource, typically this will contain the |
892 | 892 | * encryption header |
893 | 893 | * |
894 | - * @param string|resource $path |
|
894 | + * @param resource $path |
|
895 | 895 | * @return string |
896 | 896 | */ |
897 | 897 | protected function readResourceFirstBlock($path) { |
@@ -920,7 +920,7 @@ discard block |
||
920 | 920 | /** |
921 | 921 | * return header size of given file |
922 | 922 | * |
923 | - * @param string|resource $path |
|
923 | + * @param string $path |
|
924 | 924 | * @return int |
925 | 925 | */ |
926 | 926 | protected function getHeaderSize($path) { |
@@ -980,7 +980,7 @@ discard block |
||
980 | 980 | /** |
981 | 981 | * read header from file |
982 | 982 | * |
983 | - * @param string|resource $path |
|
983 | + * @param string $path |
|
984 | 984 | * @return array |
985 | 985 | */ |
986 | 986 | protected function getHeader($path) { |
@@ -1086,7 +1086,7 @@ discard block |
||
1086 | 1086 | /** |
1087 | 1087 | * check if path points to a files version |
1088 | 1088 | * |
1089 | - * @param $path |
|
1089 | + * @param string $path |
|
1090 | 1090 | * @return bool |
1091 | 1091 | */ |
1092 | 1092 | protected function isVersion($path) { |