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

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-13 13:30:53 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-13 13:30:53 +0300
commitb8f714a62a2d16205f24edc4760cb20a572f1f14 (patch)
tree6a022614bdd43d77ae5f7fcecae5fb55855418fb /lib
parente88fcd0854fd34fa0614a1d36ea0e9606ebca35d (diff)
Add php cs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/AppInfo/Application.php6
-rw-r--r--lib/Controller/AlbumsController.php3
-rw-r--r--lib/Controller/PageController.php3
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 8125d4d5..d6906d20 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
@@ -27,10 +28,9 @@ namespace OCA\Photos\AppInfo;
use OCP\AppFramework\App;
class Application extends App {
+ public const APP_ID = 'photos';
- const APP_ID = 'photos';
-
- const MIMES = [
+ public const MIMES = [
// 'image/png', // too rarely used for photos
'image/jpeg',
// 'image/gif', // too rarely used for photos
diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php
index fc3044b5..648ea0b2 100644
--- a/lib/Controller/AlbumsController.php
+++ b/lib/Controller/AlbumsController.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl>
@@ -109,7 +110,7 @@ class AlbumsController extends Controller {
return $result;
}
- private function scanCurrentFolder(Folder $folder, bool $shared): iterable {
+ private function scanCurrentFolder(Folder $folder, bool $shared): iterable {
$nodes = $folder->getDirectoryListing();
// add current folder to iterable set
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index ef33403c..effb3e07 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
@@ -37,7 +38,6 @@ use OCP\IConfig;
use OCP\App\IAppManager;
class PageController extends Controller {
-
protected $appName;
/** @var IEventDispatcher */
@@ -62,7 +62,6 @@ class PageController extends Controller {
$this->eventDispatcher = $eventDispatcher;
$this->initialStateService = $initialStateService;
$this->config = $config;
-
}
/**