[Pkg-owncloud-commits] [owncloud] 45/215: Use public interfaces for type hinting

David Prévot taffit at moszumanska.debian.org
Tue May 5 01:01:20 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 1592be117a4286508b7841a2b1e640d3655e7503
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Fri Apr 24 13:06:03 2015 +0200

    Use public interfaces for type hinting
---
 lib/private/files/storage/wrapper/encryption.php | 24 ++++++++++++------------
 lib/public/encryption/keys/istorage.php          |  2 +-
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index 4d54649..0dc59cb 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -23,15 +23,15 @@
 namespace OC\Files\Storage\Wrapper;
 
 use OC\Encryption\Exceptions\ModuleDoesNotExistsException;
-use OC\Encryption\File;
-use OC\Encryption\Manager;
 use OC\Encryption\Update;
 use OC\Encryption\Util;
 use OC\Files\Filesystem;
 use OC\Files\Storage\LocalTempFileTrait;
-use OC\Log;
+use OCP\Encryption\IFile;
+use OCP\Encryption\IManager;
 use OCP\Encryption\Keys\IStorage;
 use OCP\Files\Mount\IMountPoint;
+use OCP\ILogger;
 
 class Encryption extends Wrapper {
 
@@ -43,10 +43,10 @@ class Encryption extends Wrapper {
 	/** @var \OC\Encryption\Util */
 	private $util;
 
-	/** @var \OC\Encryption\Manager */
+	/** @var \OCP\Encryption\IManager */
 	private $encryptionManager;
 
-	/** @var \OC\Log */
+	/** @var \OCP\ILogger */
 	private $logger;
 
 	/** @var string */
@@ -55,7 +55,7 @@ class Encryption extends Wrapper {
 	/** @var array */
 	private $unencryptedSize;
 
-	/** @var File */
+	/** @var \OCP\Encryption\IFile */
 	private $fileHelper;
 
 	/** @var IMountPoint */
@@ -69,20 +69,20 @@ class Encryption extends Wrapper {
 
 	/**
 	 * @param array $parameters
-	 * @param \OC\Encryption\Manager $encryptionManager
+	 * @param \OCP\Encryption\IManager $encryptionManager
 	 * @param \OC\Encryption\Util $util
-	 * @param \OC\Log $logger
-	 * @param File $fileHelper
+	 * @param \OCP\ILogger $logger
+	 * @param \OCP\Encryption\IFile $fileHelper
 	 * @param string $uid user who perform the read/write operation (null for public access)
 	 * @param IStorage $keyStorage
 	 * @param Update $update
 	 */
 	public function __construct(
 			$parameters,
-			Manager $encryptionManager = null,
+			IManager $encryptionManager = null,
 			Util $util = null,
-			Log $logger = null,
-			File $fileHelper = null,
+			ILogger $logger = null,
+			IFile $fileHelper = null,
 			$uid = null,
 			IStorage $keyStorage = null,
 			Update $update = null
diff --git a/lib/public/encryption/keys/istorage.php b/lib/public/encryption/keys/istorage.php
index ffbffdc..752c073 100644
--- a/lib/public/encryption/keys/istorage.php
+++ b/lib/public/encryption/keys/istorage.php
@@ -163,7 +163,7 @@ interface IStorage {
 	 *
 	 * @param string $source
 	 * @param string $target
-	 * @retrun boolean
+	 * @return boolean
 	 * @since 8.1.0
 	 */
 	public function copyKeys($source, $target);

-- 
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