From 4cfa1c66b899a2fa108108a092fe671d52370150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 18 Oct 2017 14:15:03 +0200 Subject: [PATCH] Doc: Fix phpDoc issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/App/AppManager.php | 2 +- lib/private/AppFramework/Http.php | 2 +- lib/private/Command/QueueBus.php | 2 +- lib/private/Files/FileInfo.php | 2 +- lib/private/Group/Manager.php | 3 +-- lib/private/Installer.php | 1 - lib/private/Setup.php | 1 - lib/private/Share20/Manager.php | 2 +- lib/private/Tags.php | 2 +- lib/private/legacy/image.php | 2 +- lib/private/legacy/template/functions.php | 2 +- lib/public/AppFramework/Http/DataDisplayResponse.php | 2 +- lib/public/Files/FileInfo.php | 2 +- lib/public/Util.php | 2 +- 14 files changed, 12 insertions(+), 15 deletions(-) diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 7c861597c7..3b5edaabfd 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -4,7 +4,7 @@ * * @author Arthur Schiwon * @author Bjoern Schiessle - * @author Christoph Schaefer + * @author Christoph Schaefer * @author Christoph Wurst * @author Joas Schilling * @author Lukas Reschke diff --git a/lib/private/AppFramework/Http.php b/lib/private/AppFramework/Http.php index 526509a458..be1e178a05 100644 --- a/lib/private/AppFramework/Http.php +++ b/lib/private/AppFramework/Http.php @@ -111,7 +111,7 @@ class Http extends BaseHttp { /** * Gets the correct header - * @param Http::CONSTANT $status the constant from the Http class + * @param int Http::CONSTANT $status the constant from the Http class * @param \DateTime $lastModified formatted last modified date * @param string $ETag the etag * @return string diff --git a/lib/private/Command/QueueBus.php b/lib/private/Command/QueueBus.php index 7f2fc88a70..30cdd7740a 100644 --- a/lib/private/Command/QueueBus.php +++ b/lib/private/Command/QueueBus.php @@ -27,7 +27,7 @@ use OCP\Command\ICommand; class QueueBus implements IBus { /** - * @var (ICommand|callable)[] + * @var ICommand[]|callable[] */ private $queue = []; diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php index f5a44ba02e..7ac0c6e49d 100644 --- a/lib/private/Files/FileInfo.php +++ b/lib/private/Files/FileInfo.php @@ -232,7 +232,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess { } /** - * @return \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER + * @return string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER */ public function getType() { if (!isset($this->data['type'])) { diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php index 15d83380ac..ced1c79698 100644 --- a/lib/private/Group/Manager.php +++ b/lib/private/Group/Manager.php @@ -15,14 +15,13 @@ * @author Roeland Jago Douma * @author Roman Kreisel * @author Thomas Müller - * @author voxsim + * @author Simon Vocella * * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. - * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the diff --git a/lib/private/Installer.php b/lib/private/Installer.php index d5082a7fad..ffde8b1b2f 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -19,7 +19,6 @@ * @author Morris Jobke * @author Robin Appelman * @author Roeland Jago Douma - * @author root * @author Thomas Müller * @author Thomas Tanghus * diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 5228d52b05..3659d785b2 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -2,7 +2,6 @@ /** * @copyright Copyright (c) 2016, ownCloud, Inc. * - * @author Administrator * @author Arthur Schiwon * @author Bart Visscher * @author Bernhard Posselt diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 42f2170122..bcef85bd17 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1395,7 +1395,7 @@ class Manager implements IManager { /** * Create a new share - * @return \OCP\Share\IShare; + * @return \OCP\Share\IShare */ public function newShare() { return new \OC\Share20\Share($this->rootFolder, $this->userManager); diff --git a/lib/private/Tags.php b/lib/private/Tags.php index b63435ff83..1947f0c07e 100644 --- a/lib/private/Tags.php +++ b/lib/private/Tags.php @@ -140,7 +140,7 @@ class Tags implements \OCP\ITags { /** * Check if any tags are saved for this type and user. * - * @return boolean. + * @return boolean */ public function isEmpty() { return count($this->tags) === 0; diff --git a/lib/private/legacy/image.php b/lib/private/legacy/image.php index 120b19d1cf..cd5ca7bb5c 100644 --- a/lib/private/legacy/image.php +++ b/lib/private/legacy/image.php @@ -431,7 +431,7 @@ class OC_Image implements \OCP\IImage { * (I'm open for suggestions on better method name ;) * Fixes orientation based on EXIF data. * - * @return bool. + * @return bool */ public function fixOrientation() { $o = $this->getOrientation(); diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php index bca16b48c1..1ef3541e88 100644 --- a/lib/private/legacy/template/functions.php +++ b/lib/private/legacy/template/functions.php @@ -278,7 +278,7 @@ function human_file_size( $bytes ) { /** * Strips the timestamp of its time value * @param int $timestamp UNIX timestamp to strip - * @return $timestamp without time value + * @return int timestamp without time value */ function strip_time($timestamp){ $date = new \DateTime("@{$timestamp}"); diff --git a/lib/public/AppFramework/Http/DataDisplayResponse.php b/lib/public/AppFramework/Http/DataDisplayResponse.php index 820e00ff96..cfc4bd494f 100644 --- a/lib/public/AppFramework/Http/DataDisplayResponse.php +++ b/lib/public/AppFramework/Http/DataDisplayResponse.php @@ -35,7 +35,7 @@ class DataDisplayResponse extends Response { /** * response data - * @var string; + * @var string */ protected $data; diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php index f0f21087bb..0b90fb8fbf 100644 --- a/lib/public/Files/FileInfo.php +++ b/lib/public/Files/FileInfo.php @@ -174,7 +174,7 @@ interface FileInfo { /** * Check whether this is a file or a folder * - * @return \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER + * @return string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER * @since 7.0.0 */ public function getType(); diff --git a/lib/public/Util.php b/lib/public/Util.php index e4ebdb5bfa..04cdfe216d 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -670,7 +670,7 @@ class Util { * Compare two strings to provide a natural sort * @param string $a first string to compare * @param string $b second string to compare - * @return -1 if $b comes before $a, 1 if $a comes before $b + * @return int -1 if $b comes before $a, 1 if $a comes before $b * or 0 if the strings are identical * @since 7.0.0 */