diff options
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/lib/Crypto/Crypt.php | 10 | ||||
-rw-r--r-- | apps/encryption/lib/Crypto/Encryption.php | 4 | ||||
-rw-r--r-- | apps/encryption/lib/Session.php | 6 | ||||
-rw-r--r-- | apps/encryption/lib/Settings/Personal.php | 2 | ||||
-rw-r--r-- | apps/encryption/tests/Controller/SettingsControllerTest.php | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php index 24b1f21ecd0..fe12bfaf727 100644 --- a/apps/encryption/lib/Crypto/Crypt.php +++ b/apps/encryption/lib/Crypto/Crypt.php @@ -54,16 +54,16 @@ use OCP\IUserSession; * @package OCA\Encryption\Crypto */ class Crypt { - const DEFAULT_CIPHER = 'AES-256-CTR'; + public const DEFAULT_CIPHER = 'AES-256-CTR'; // default cipher from old Nextcloud versions - const LEGACY_CIPHER = 'AES-128-CFB'; + public const LEGACY_CIPHER = 'AES-128-CFB'; // default key format, old Nextcloud version encrypted the private key directly // with the user password - const LEGACY_KEY_FORMAT = 'password'; + public const LEGACY_KEY_FORMAT = 'password'; - const HEADER_START = 'HBEGIN'; - const HEADER_END = 'HEND'; + public const HEADER_START = 'HBEGIN'; + public const HEADER_END = 'HEND'; /** @var ILogger */ private $logger; diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index 57cf4e2edac..39dfece7629 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -45,8 +45,8 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class Encryption implements IEncryptionModule { - const ID = 'OC_DEFAULT_MODULE'; - const DISPLAY_NAME = 'Default encryption module'; + public const ID = 'OC_DEFAULT_MODULE'; + public const DISPLAY_NAME = 'Default encryption module'; /** * @var Crypt diff --git a/apps/encryption/lib/Session.php b/apps/encryption/lib/Session.php index 4398f9c4e0a..3c79cd29e17 100644 --- a/apps/encryption/lib/Session.php +++ b/apps/encryption/lib/Session.php @@ -34,9 +34,9 @@ class Session { /** @var ISession */ protected $session; - const NOT_INITIALIZED = '0'; - const INIT_EXECUTED = '1'; - const INIT_SUCCESSFUL = '2'; + public const NOT_INITIALIZED = '0'; + public const INIT_EXECUTED = '1'; + public const INIT_SUCCESSFUL = '2'; /** * @param ISession $session diff --git a/apps/encryption/lib/Settings/Personal.php b/apps/encryption/lib/Settings/Personal.php index 7ecf457e641..bd0e17f0282 100644 --- a/apps/encryption/lib/Settings/Personal.php +++ b/apps/encryption/lib/Settings/Personal.php @@ -30,7 +30,7 @@ use OCP\IConfig; use OCP\IUserSession; use OCP\Settings\ISettings; -class Personal implements ISettings { +class Personal implements ISettings { /** @var IConfig */ private $config; diff --git a/apps/encryption/tests/Controller/SettingsControllerTest.php b/apps/encryption/tests/Controller/SettingsControllerTest.php index 0cd69c8c1c4..f0935f1b788 100644 --- a/apps/encryption/tests/Controller/SettingsControllerTest.php +++ b/apps/encryption/tests/Controller/SettingsControllerTest.php @@ -245,7 +245,7 @@ class SettingsControllerTest extends TestCase { $data['message']); } - function testSetEncryptHomeStorage() { + public function testSetEncryptHomeStorage() { $value = true; $this->utilMock->expects($this->once())->method('setEncryptHomeStorage')->with($value); $this->controller->setEncryptHomeStorage($value); |