Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-03-28 13:24:32 +0300
committerJulius Härtl <jus@bitgrid.net>2018-04-19 21:14:40 +0300
commit39f44e1452c67b1b3da5a85c89d3fc3856d19ab8 (patch)
treeaaf078510f3bf112debbc813be4ac00f258be7e1 /apps/theming/lib
parentdaadc1c892e3febceb370ea0f62722b777572d65 (diff)
Add typehints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/Controller/ThemingController.php1
-rw-r--r--apps/theming/lib/ImageManager.php5
-rw-r--r--apps/theming/lib/ThemingDefaults.php1
3 files changed, 4 insertions, 3 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index fc282f20885..2f0bfdd05ca 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -135,7 +135,6 @@ class ThemingController extends Controller {
* @param string $setting
* @param string $value
* @return DataResponse
- * @throws NotFoundException
* @throws NotPermittedException
*/
public function updateStylesheet($setting, $value) {
diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php
index 06cc37a3d1b..d268552bf94 100644
--- a/apps/theming/lib/ImageManager.php
+++ b/apps/theming/lib/ImageManager.php
@@ -25,6 +25,7 @@
namespace OCA\Theming;
use OCP\Files\SimpleFS\ISimpleFile;
+use OCP\Files\SimpleFS\ISimpleFolder;
use OCP\IConfig;
use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
@@ -132,7 +133,7 @@ class ImageManager {
* @return \OCP\Files\SimpleFS\ISimpleFile
* @throws NotPermittedException
*/
- public function getCachedImage($filename): ISimpleFile {
+ public function getCachedImage(string $filename): ISimpleFile {
$currentFolder = $this->getCacheFolder();
return $currentFolder->getFile($filename);
}
@@ -146,7 +147,7 @@ class ImageManager {
* @throws NotFoundException
* @throws NotPermittedException
*/
- public function setCachedImage($filename, $data): ISimpleFile {
+ public function setCachedImage(string $filename, string $data): ISimpleFile {
$currentFolder = $this->getCacheFolder();
if ($currentFolder->fileExists($filename)) {
$file = $currentFolder->getFile($filename);
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index 4957b5ef3c7..03d5a3f061e 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -36,6 +36,7 @@ namespace OCA\Theming;
use OCP\App\AppPathNotFoundException;
use OCP\App\IAppManager;
+use OCP\Files\NotFoundException;
use OCP\ICacheFactory;
use OCP\IConfig;
use OCP\IL10N;