[Pkg-owncloud-commits] [owncloud] 438/457: Fix PHPDoc annotations

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:07:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 70ca0102f581c49227b288dc87f87fc5d104e776
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Wed Jun 17 11:57:12 2015 +0200

    Fix PHPDoc annotations
---
 lib/private/cache/file.php | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php
index bd3b5bc..4742128 100644
--- a/lib/private/cache/file.php
+++ b/lib/private/cache/file.php
@@ -42,6 +42,8 @@ class File {
 	 * Returns the cache storage for the logged in user
 	 *
 	 * @return \OC\Files\View cache storage
+	 * @throws \OC\ForbiddenException
+	 * @throws \OC\User\NoUserException
 	 */
 	protected function getStorage() {
 		if (isset($this->storage)) {
@@ -64,6 +66,8 @@ class File {
 
 	/**
 	 * @param string $key
+	 * @return mixed|null
+	 * @throws \OC\ForbiddenException
 	 */
 	public function get($key) {
 		$result = null;
@@ -91,6 +95,10 @@ class File {
 
 	/**
 	 * @param string $key
+	 * @param mixed $value
+	 * @param int $ttl
+	 * @return bool|mixed
+	 * @throws \OC\ForbiddenException
 	 */
 	public function set($key, $value, $ttl = 0) {
 		$storage = $this->getStorage();
@@ -114,6 +122,11 @@ class File {
 		return $result;
 	}
 
+	/**
+	 * @param string $key
+	 * @return bool
+	 * @throws \OC\ForbiddenException
+	 */
 	public function hasKey($key) {
 		$storage = $this->getStorage();
 		if ($storage && $storage->is_file($key) && $storage->isReadable($key)) {
@@ -124,6 +137,8 @@ class File {
 
 	/**
 	 * @param string $key
+	 * @return bool|mixed
+	 * @throws \OC\ForbiddenException
 	 */
 	public function remove($key) {
 		$storage = $this->getStorage();
@@ -133,6 +148,11 @@ class File {
 		return $storage->unlink($key);
 	}
 
+	/**
+	 * @param string $prefix
+	 * @return bool
+	 * @throws \OC\ForbiddenException
+	 */
 	public function clear($prefix = '') {
 		$storage = $this->getStorage();
 		if ($storage and $storage->is_dir('/')) {
@@ -148,6 +168,10 @@ class File {
 		return true;
 	}
 
+	/**
+	 * Runs GC
+	 * @throws \OC\ForbiddenException
+	 */
 	public function gc() {
 		$storage = $this->getStorage();
 		if ($storage and $storage->is_dir('/')) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list