summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /apps/files_sharing
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
downloadnextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.tar.gz
nextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.zip
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Activity/Filter.php4
-rw-r--r--apps/files_sharing/lib/Activity/Providers/Downloads.php8
-rw-r--r--apps/files_sharing/lib/Activity/Providers/Groups.php10
-rw-r--r--apps/files_sharing/lib/Activity/Providers/PublicLinks.php12
-rw-r--r--apps/files_sharing/lib/Activity/Providers/RemoteShares.php8
-rw-r--r--apps/files_sharing/lib/Activity/Providers/Users.php20
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php2
-rw-r--r--apps/files_sharing/lib/External/Manager.php2
-rw-r--r--apps/files_sharing/lib/External/MountProvider.php2
-rw-r--r--apps/files_sharing/lib/ShareBackend/File.php14
-rw-r--r--apps/files_sharing/tests/ApiTest.php4
-rw-r--r--apps/files_sharing/tests/ShareTest.php2
-rw-r--r--apps/files_sharing/tests/TestCase.php10
-rw-r--r--apps/files_sharing/tests/UnshareChildrenTest.php2
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php2
15 files changed, 51 insertions, 51 deletions
diff --git a/apps/files_sharing/lib/Activity/Filter.php b/apps/files_sharing/lib/Activity/Filter.php
index 4df53745c7b..4997482bddb 100644
--- a/apps/files_sharing/lib/Activity/Filter.php
+++ b/apps/files_sharing/lib/Activity/Filter.php
@@ -28,8 +28,8 @@ use OCP\IL10N;
use OCP\IURLGenerator;
class Filter implements IFilter {
- const TYPE_REMOTE_SHARE = 'remote_share';
- const TYPE_SHARED = 'shared';
+ public const TYPE_REMOTE_SHARE = 'remote_share';
+ public const TYPE_SHARED = 'shared';
/** @var IL10N */
protected $l;
diff --git a/apps/files_sharing/lib/Activity/Providers/Downloads.php b/apps/files_sharing/lib/Activity/Providers/Downloads.php
index 23c55e08a26..acb4ce3837a 100644
--- a/apps/files_sharing/lib/Activity/Providers/Downloads.php
+++ b/apps/files_sharing/lib/Activity/Providers/Downloads.php
@@ -26,11 +26,11 @@ namespace OCA\Files_Sharing\Activity\Providers;
use OCP\Activity\IEvent;
class Downloads extends Base {
- const SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED = 'public_shared_file_downloaded';
- const SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED = 'public_shared_folder_downloaded';
+ public const SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED = 'public_shared_file_downloaded';
+ public const SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED = 'public_shared_folder_downloaded';
- const SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED = 'file_shared_with_email_downloaded';
- const SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED = 'folder_shared_with_email_downloaded';
+ public const SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED = 'file_shared_with_email_downloaded';
+ public const SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED = 'folder_shared_with_email_downloaded';
/**
* @param IEvent $event
diff --git a/apps/files_sharing/lib/Activity/Providers/Groups.php b/apps/files_sharing/lib/Activity/Providers/Groups.php
index c6115a8dba0..dfc3e6b521d 100644
--- a/apps/files_sharing/lib/Activity/Providers/Groups.php
+++ b/apps/files_sharing/lib/Activity/Providers/Groups.php
@@ -35,13 +35,13 @@ use OCP\IUserManager;
use OCP\L10N\IFactory;
class Groups extends Base {
- const SUBJECT_SHARED_GROUP_SELF = 'shared_group_self';
- const SUBJECT_RESHARED_GROUP_BY = 'reshared_group_by';
+ public const SUBJECT_SHARED_GROUP_SELF = 'shared_group_self';
+ public const SUBJECT_RESHARED_GROUP_BY = 'reshared_group_by';
- const SUBJECT_UNSHARED_GROUP_SELF = 'unshared_group_self';
- const SUBJECT_UNSHARED_GROUP_BY = 'unshared_group_by';
+ public const SUBJECT_UNSHARED_GROUP_SELF = 'unshared_group_self';
+ public const SUBJECT_UNSHARED_GROUP_BY = 'unshared_group_by';
- const SUBJECT_EXPIRED_GROUP = 'expired_group';
+ public const SUBJECT_EXPIRED_GROUP = 'expired_group';
/** @var IGroupManager */
protected $groupManager;
diff --git a/apps/files_sharing/lib/Activity/Providers/PublicLinks.php b/apps/files_sharing/lib/Activity/Providers/PublicLinks.php
index 0ebe6cdec0f..884296e46f5 100644
--- a/apps/files_sharing/lib/Activity/Providers/PublicLinks.php
+++ b/apps/files_sharing/lib/Activity/Providers/PublicLinks.php
@@ -26,12 +26,12 @@ namespace OCA\Files_Sharing\Activity\Providers;
use OCP\Activity\IEvent;
class PublicLinks extends Base {
- const SUBJECT_SHARED_LINK_SELF = 'shared_link_self';
- const SUBJECT_RESHARED_LINK_BY = 'reshared_link_by';
- const SUBJECT_UNSHARED_LINK_SELF = 'unshared_link_self';
- const SUBJECT_UNSHARED_LINK_BY = 'unshared_link_by';
- const SUBJECT_LINK_EXPIRED = 'link_expired';
- const SUBJECT_LINK_BY_EXPIRED = 'link_by_expired';
+ public const SUBJECT_SHARED_LINK_SELF = 'shared_link_self';
+ public const SUBJECT_RESHARED_LINK_BY = 'reshared_link_by';
+ public const SUBJECT_UNSHARED_LINK_SELF = 'unshared_link_self';
+ public const SUBJECT_UNSHARED_LINK_BY = 'unshared_link_by';
+ public const SUBJECT_LINK_EXPIRED = 'link_expired';
+ public const SUBJECT_LINK_BY_EXPIRED = 'link_by_expired';
/**
* @param IEvent $event
diff --git a/apps/files_sharing/lib/Activity/Providers/RemoteShares.php b/apps/files_sharing/lib/Activity/Providers/RemoteShares.php
index 2604288d448..4a297fcf060 100644
--- a/apps/files_sharing/lib/Activity/Providers/RemoteShares.php
+++ b/apps/files_sharing/lib/Activity/Providers/RemoteShares.php
@@ -33,10 +33,10 @@ use OCP\IUserManager;
use OCP\L10N\IFactory;
class RemoteShares extends Base {
- const SUBJECT_REMOTE_SHARE_ACCEPTED = 'remote_share_accepted';
- const SUBJECT_REMOTE_SHARE_DECLINED = 'remote_share_declined';
- const SUBJECT_REMOTE_SHARE_RECEIVED = 'remote_share_received';
- const SUBJECT_REMOTE_SHARE_UNSHARED = 'remote_share_unshared';
+ public const SUBJECT_REMOTE_SHARE_ACCEPTED = 'remote_share_accepted';
+ public const SUBJECT_REMOTE_SHARE_DECLINED = 'remote_share_declined';
+ public const SUBJECT_REMOTE_SHARE_RECEIVED = 'remote_share_received';
+ public const SUBJECT_REMOTE_SHARE_UNSHARED = 'remote_share_unshared';
public function __construct(IFactory $languageFactory,
IURLGenerator $url,
diff --git a/apps/files_sharing/lib/Activity/Providers/Users.php b/apps/files_sharing/lib/Activity/Providers/Users.php
index aff5feddc01..8f90ffdf567 100644
--- a/apps/files_sharing/lib/Activity/Providers/Users.php
+++ b/apps/files_sharing/lib/Activity/Providers/Users.php
@@ -28,18 +28,18 @@ namespace OCA\Files_Sharing\Activity\Providers;
use OCP\Activity\IEvent;
class Users extends Base {
- const SUBJECT_SHARED_USER_SELF = 'shared_user_self';
- const SUBJECT_RESHARED_USER_BY = 'reshared_user_by';
- const SUBJECT_UNSHARED_USER_SELF = 'unshared_user_self';
- const SUBJECT_UNSHARED_USER_BY = 'unshared_user_by';
+ public const SUBJECT_SHARED_USER_SELF = 'shared_user_self';
+ public const SUBJECT_RESHARED_USER_BY = 'reshared_user_by';
+ public const SUBJECT_UNSHARED_USER_SELF = 'unshared_user_self';
+ public const SUBJECT_UNSHARED_USER_BY = 'unshared_user_by';
- const SUBJECT_SHARED_WITH_BY = 'shared_with_by';
- const SUBJECT_UNSHARED_BY = 'unshared_by';
- const SUBJECT_SELF_UNSHARED = 'self_unshared';
- const SUBJECT_SELF_UNSHARED_BY = 'self_unshared_by';
+ public const SUBJECT_SHARED_WITH_BY = 'shared_with_by';
+ public const SUBJECT_UNSHARED_BY = 'unshared_by';
+ public const SUBJECT_SELF_UNSHARED = 'self_unshared';
+ public const SUBJECT_SELF_UNSHARED_BY = 'self_unshared_by';
- const SUBJECT_EXPIRED_USER = 'expired_user';
- const SUBJECT_EXPIRED = 'expired';
+ public const SUBJECT_EXPIRED_USER = 'expired_user';
+ public const SUBJECT_EXPIRED = 'expired';
/**
* @param IEvent $event
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index 2902b820af3..34db7441daa 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -65,7 +65,7 @@ use OCP\Util;
use Symfony\Component\EventDispatcher\GenericEvent;
class Application extends App {
- const APP_ID = 'files_sharing';
+ public const APP_ID = 'files_sharing';
public function __construct(array $urlParams = []) {
parent::__construct(self::APP_ID, $urlParams);
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index 3923fdf09d3..8331787c6df 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -48,7 +48,7 @@ use OCP\Share;
use OCP\Share\IShare;
class Manager {
- const STORAGE = '\OCA\Files_Sharing\External\Storage';
+ public const STORAGE = '\OCA\Files_Sharing\External\Storage';
/**
* @var string
diff --git a/apps/files_sharing/lib/External/MountProvider.php b/apps/files_sharing/lib/External/MountProvider.php
index 992aba48c66..5d26bf20b47 100644
--- a/apps/files_sharing/lib/External/MountProvider.php
+++ b/apps/files_sharing/lib/External/MountProvider.php
@@ -30,7 +30,7 @@ use OCP\IDBConnection;
use OCP\IUser;
class MountProvider implements IMountProvider {
- const STORAGE = '\OCA\Files_Sharing\External\Storage';
+ public const STORAGE = '\OCA\Files_Sharing\External\Storage';
/**
* @var \OCP\IDBConnection
diff --git a/apps/files_sharing/lib/ShareBackend/File.php b/apps/files_sharing/lib/ShareBackend/File.php
index 2db6c374c85..a15391162ff 100644
--- a/apps/files_sharing/lib/ShareBackend/File.php
+++ b/apps/files_sharing/lib/ShareBackend/File.php
@@ -37,13 +37,13 @@ namespace OCA\Files_Sharing\ShareBackend;
use OCA\FederatedFileSharing\FederatedShareProvider;
class File implements \OCP\Share_Backend_File_Dependent {
- const FORMAT_SHARED_STORAGE = 0;
- const FORMAT_GET_FOLDER_CONTENTS = 1;
- const FORMAT_FILE_APP_ROOT = 2;
- const FORMAT_OPENDIR = 3;
- const FORMAT_GET_ALL = 4;
- const FORMAT_PERMISSIONS = 5;
- const FORMAT_TARGET_NAMES = 6;
+ public const FORMAT_SHARED_STORAGE = 0;
+ public const FORMAT_GET_FOLDER_CONTENTS = 1;
+ public const FORMAT_FILE_APP_ROOT = 2;
+ public const FORMAT_OPENDIR = 3;
+ public const FORMAT_GET_ALL = 4;
+ public const FORMAT_PERMISSIONS = 5;
+ public const FORMAT_TARGET_NAMES = 6;
private $path;
diff --git a/apps/files_sharing/tests/ApiTest.php b/apps/files_sharing/tests/ApiTest.php
index bb478044a2f..6bbb62d6090 100644
--- a/apps/files_sharing/tests/ApiTest.php
+++ b/apps/files_sharing/tests/ApiTest.php
@@ -53,8 +53,8 @@ use OCP\Share\IShare;
* TODO: convert to real intergration tests
*/
class ApiTest extends TestCase {
- const TEST_FOLDER_NAME = '/folder_share_api_test';
- const APP_NAME = 'files_sharing';
+ public const TEST_FOLDER_NAME = '/folder_share_api_test';
+ public const APP_NAME = 'files_sharing';
private static $tempStorage;
diff --git a/apps/files_sharing/tests/ShareTest.php b/apps/files_sharing/tests/ShareTest.php
index 313c8d8ac56..ba6b401e65e 100644
--- a/apps/files_sharing/tests/ShareTest.php
+++ b/apps/files_sharing/tests/ShareTest.php
@@ -34,7 +34,7 @@ namespace OCA\Files_Sharing\Tests;
* @group DB
*/
class ShareTest extends TestCase {
- const TEST_FOLDER_NAME = '/folder_share_api_test';
+ public const TEST_FOLDER_NAME = '/folder_share_api_test';
private static $tempStorage;
diff --git a/apps/files_sharing/tests/TestCase.php b/apps/files_sharing/tests/TestCase.php
index 323fc06f321..f84867c0aca 100644
--- a/apps/files_sharing/tests/TestCase.php
+++ b/apps/files_sharing/tests/TestCase.php
@@ -47,12 +47,12 @@ use Test\Traits\MountProviderTrait;
abstract class TestCase extends \Test\TestCase {
use MountProviderTrait;
- const TEST_FILES_SHARING_API_USER1 = "test-share-user1";
- const TEST_FILES_SHARING_API_USER2 = "test-share-user2";
- const TEST_FILES_SHARING_API_USER3 = "test-share-user3";
- const TEST_FILES_SHARING_API_USER4 = "test-share-user4";
+ public const TEST_FILES_SHARING_API_USER1 = "test-share-user1";
+ public const TEST_FILES_SHARING_API_USER2 = "test-share-user2";
+ public const TEST_FILES_SHARING_API_USER3 = "test-share-user3";
+ public const TEST_FILES_SHARING_API_USER4 = "test-share-user4";
- const TEST_FILES_SHARING_API_GROUP1 = "test-share-group1";
+ public const TEST_FILES_SHARING_API_GROUP1 = "test-share-group1";
public $filename;
public $data;
diff --git a/apps/files_sharing/tests/UnshareChildrenTest.php b/apps/files_sharing/tests/UnshareChildrenTest.php
index 56fdeb44a30..15daf9d5108 100644
--- a/apps/files_sharing/tests/UnshareChildrenTest.php
+++ b/apps/files_sharing/tests/UnshareChildrenTest.php
@@ -37,7 +37,7 @@ namespace OCA\Files_Sharing\Tests;
class UnshareChildrenTest extends TestCase {
protected $subsubfolder;
- const TEST_FOLDER_NAME = '/folder_share_api_test';
+ public const TEST_FOLDER_NAME = '/folder_share_api_test';
private static $tempStorage;
diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php
index 0abc76df433..f2227721edc 100644
--- a/apps/files_sharing/tests/UpdaterTest.php
+++ b/apps/files_sharing/tests/UpdaterTest.php
@@ -36,7 +36,7 @@ namespace OCA\Files_Sharing\Tests;
* @group DB
*/
class UpdaterTest extends TestCase {
- const TEST_FOLDER_NAME = '/folder_share_updater_test';
+ public const TEST_FOLDER_NAME = '/folder_share_updater_test';
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();