diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-24 13:06:03 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-24 13:06:03 +0200 |
commit | 1592be117a4286508b7841a2b1e640d3655e7503 (patch) | |
tree | 82c3404e6ea9887b0fd504c1472ba01eb53d60e3 /lib | |
parent | 24128d1384f2548f0cdc35c26d684dbeb61d091b (diff) | |
download | nextcloud-server-1592be117a4286508b7841a2b1e640d3655e7503.tar.gz nextcloud-server-1592be117a4286508b7841a2b1e640d3655e7503.zip |
Use public interfaces for type hinting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 24 | ||||
-rw-r--r-- | 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 4d546495aaa..0dc59cbb2a0 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 ffbffdc1a27..752c073375d 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); |