mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Make all Enumerations classes abstract
This commit is contained in:
parent
9ef11db895
commit
e1dced8007
9 changed files with 10 additions and 20 deletions
|
|
@ -16,6 +16,8 @@ namespace MailSo\Mime\Enumerations;
|
|||
* @package Mime
|
||||
* @subpackage Enumerations
|
||||
*/
|
||||
//enum DkimStatus:string
|
||||
//final class DkimStatus extends \BackedEnumString
|
||||
abstract class DkimStatus
|
||||
{
|
||||
const NONE = 'none';
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ abstract class ConnectionSecurityType
|
|||
{
|
||||
$iPort = (int) $iPort;
|
||||
$iResult = (int) $iSecurityType;
|
||||
if (self::AUTO_DETECT === $iSecurityType)
|
||||
{
|
||||
if (self::AUTO_DETECT === $iSecurityType) {
|
||||
switch (true)
|
||||
{
|
||||
case 993 === $iPort:
|
||||
|
|
@ -39,8 +38,7 @@ abstract class ConnectionSecurityType
|
|||
}
|
||||
}
|
||||
|
||||
if (self::SSL === $iResult && !\in_array('ssl', \stream_get_transports()))
|
||||
{
|
||||
if (self::SSL === $iResult && !\in_array('ssl', \stream_get_transports())) {
|
||||
$iResult = self::NONE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace RainLoop\Enumerations;
|
||||
|
||||
class Capa
|
||||
abstract class Capa
|
||||
{
|
||||
const GNUPG = 'GnuPG';
|
||||
const OPEN_PGP = 'OpenPGP';
|
||||
|
|
@ -16,5 +16,4 @@ class Capa
|
|||
const QUOTA = 'Quota';
|
||||
const ATTACHMENTS_ACTIONS = 'AttachmentsActions';
|
||||
const DANGEROUS_ACTIONS = 'DangerousActions';
|
||||
const AUTOLOGOUT = ''; // Obsolete
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace RainLoop\Enumerations;
|
||||
|
||||
class Layout
|
||||
abstract class Layout
|
||||
{
|
||||
const NO_PREVIEW = 0;
|
||||
const SIDE_PREVIEW = 1;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace RainLoop\Enumerations;
|
||||
|
||||
class PluginPropertyType
|
||||
abstract class PluginPropertyType
|
||||
{
|
||||
const
|
||||
GROUP = 7,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace RainLoop\Enumerations;
|
||||
|
||||
class SignMeType
|
||||
abstract class SignMeType
|
||||
{
|
||||
const DEFAULT_OFF = 'DefaultOff';
|
||||
const DEFAULT_ON = 'DefaultOn';
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace RainLoop\Enumerations;
|
||||
|
||||
class TimeFormat
|
||||
{
|
||||
const F12 = '12';
|
||||
const F24 = '24';
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace RainLoop\Providers\AddressBook\Enumerations;
|
||||
|
||||
class PropertyType
|
||||
abstract class PropertyType
|
||||
{
|
||||
const UNKNOWN = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ enum StorageType: int {
|
|||
case USER = 1;
|
||||
}
|
||||
*/
|
||||
class StorageType
|
||||
abstract class StorageType
|
||||
{
|
||||
const USER = 1;
|
||||
const CONFIG = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue