@@ -19,38 +19,38 @@ |
||
| 19 | 19 | |
| 20 | 20 | class Tingle extends AbstractLibrary implements ModalInterface |
| 21 | 21 | { |
| 22 | - /** |
|
| 22 | +/** |
|
| 23 | 23 | * @const The library name |
| 24 | 24 | */ |
| 25 | - public const NAME = 'tingle'; |
|
| 25 | +public const NAME = 'tingle'; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 27 | +/** |
|
| 28 | 28 | * The css files |
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $aCssFiles = ['tingle.min.css']; |
|
| 32 | +protected $aCssFiles = ['tingle.min.css']; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 34 | +/** |
|
| 35 | 35 | * The js files |
| 36 | 36 | * |
| 37 | 37 | * @var array |
| 38 | 38 | */ |
| 39 | - protected $aJsFiles = ['tingle.min.js']; |
|
| 39 | +protected $aJsFiles = ['tingle.min.js']; |
|
| 40 | 40 | |
| 41 | - /** |
|
| 41 | +/** |
|
| 42 | 42 | * @inheritDoc |
| 43 | 43 | */ |
| 44 | - public function getName(): string |
|
| 45 | - { |
|
| 46 | - return self::NAME; |
|
| 47 | - } |
|
| 44 | +public function getName(): string |
|
| 45 | +{ |
|
| 46 | +return self::NAME; |
|
| 47 | +} |
|
| 48 | 48 | |
| 49 | - /** |
|
| 49 | +/** |
|
| 50 | 50 | * @inheritDoc |
| 51 | 51 | */ |
| 52 | - public function getUri(): string |
|
| 53 | - { |
|
| 54 | - return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 55 | - } |
|
| 52 | +public function getUri(): string |
|
| 53 | +{ |
|
| 54 | +return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 55 | +} |
|
| 56 | 56 | } |
@@ -19,16 +19,16 @@ |
||
| 19 | 19 | |
| 20 | 20 | class Bootstrap4 extends AbstractLibrary implements ModalInterface |
| 21 | 21 | { |
| 22 | - /** |
|
| 22 | +/** |
|
| 23 | 23 | * @const The library name |
| 24 | 24 | */ |
| 25 | - public const NAME = 'bootstrap4'; |
|
| 25 | +public const NAME = 'bootstrap4'; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 27 | +/** |
|
| 28 | 28 | * @inheritDoc |
| 29 | 29 | */ |
| 30 | - public function getName(): string |
|
| 31 | - { |
|
| 32 | - return self::NAME; |
|
| 33 | - } |
|
| 30 | +public function getName(): string |
|
| 31 | +{ |
|
| 32 | +return self::NAME; |
|
| 33 | +} |
|
| 34 | 34 | } |
@@ -19,31 +19,31 @@ |
||
| 19 | 19 | |
| 20 | 20 | class Notify extends AbstractLibrary implements AlertInterface |
| 21 | 21 | { |
| 22 | - /** |
|
| 22 | +/** |
|
| 23 | 23 | * @const The library name |
| 24 | 24 | */ |
| 25 | - public const NAME = 'notify'; |
|
| 25 | +public const NAME = 'notify'; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 27 | +/** |
|
| 28 | 28 | * The js files |
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $aJsFiles = ['notify.min.js']; |
|
| 32 | +protected $aJsFiles = ['notify.min.js']; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 34 | +/** |
|
| 35 | 35 | * @inheritDoc |
| 36 | 36 | */ |
| 37 | - public function getName(): string |
|
| 38 | - { |
|
| 39 | - return self::NAME; |
|
| 40 | - } |
|
| 37 | +public function getName(): string |
|
| 38 | +{ |
|
| 39 | +return self::NAME; |
|
| 40 | +} |
|
| 41 | 41 | |
| 42 | - /** |
|
| 42 | +/** |
|
| 43 | 43 | * @inheritDoc |
| 44 | 44 | */ |
| 45 | - public function getUri(): string |
|
| 46 | - { |
|
| 47 | - return 'https://cdn.jsdelivr.net/npm/[email protected]'; |
|
| 48 | - } |
|
| 45 | +public function getUri(): string |
|
| 46 | +{ |
|
| 47 | +return 'https://cdn.jsdelivr.net/npm/[email protected]'; |
|
| 48 | +} |
|
| 49 | 49 | } |
@@ -21,52 +21,52 @@ |
||
| 21 | 21 | |
| 22 | 22 | class Alertify extends AbstractLibrary implements ModalInterface, AlertInterface, ConfirmInterface |
| 23 | 23 | { |
| 24 | - /** |
|
| 24 | +/** |
|
| 25 | 25 | * @const The library name |
| 26 | 26 | */ |
| 27 | - public const NAME = 'alertify'; |
|
| 27 | +public const NAME = 'alertify'; |
|
| 28 | 28 | |
| 29 | - /** |
|
| 29 | +/** |
|
| 30 | 30 | * The css files |
| 31 | 31 | * |
| 32 | 32 | * @var array |
| 33 | 33 | */ |
| 34 | - protected $aCssFiles = ['css/alertify.min.css', 'css/themes/default.min.css']; |
|
| 34 | +protected $aCssFiles = ['css/alertify.min.css', 'css/themes/default.min.css']; |
|
| 35 | 35 | |
| 36 | - /** |
|
| 36 | +/** |
|
| 37 | 37 | * The js files |
| 38 | 38 | * |
| 39 | 39 | * @var array |
| 40 | 40 | */ |
| 41 | - protected $aJsFiles = ['alertify.min.js']; |
|
| 41 | +protected $aJsFiles = ['alertify.min.js']; |
|
| 42 | 42 | |
| 43 | - /** |
|
| 43 | +/** |
|
| 44 | 44 | * @inheritDoc |
| 45 | 45 | */ |
| 46 | - public function getName(): string |
|
| 47 | - { |
|
| 48 | - return self::NAME; |
|
| 49 | - } |
|
| 46 | +public function getName(): string |
|
| 47 | +{ |
|
| 48 | +return self::NAME; |
|
| 49 | +} |
|
| 50 | 50 | |
| 51 | - /** |
|
| 51 | +/** |
|
| 52 | 52 | * @inheritDoc |
| 53 | 53 | */ |
| 54 | - public function getUri(): string |
|
| 55 | - { |
|
| 56 | - return 'https://cdn.jsdelivr.net/npm/[email protected]/build'; |
|
| 57 | - } |
|
| 54 | +public function getUri(): string |
|
| 55 | +{ |
|
| 56 | +return 'https://cdn.jsdelivr.net/npm/[email protected]/build'; |
|
| 57 | +} |
|
| 58 | 58 | |
| 59 | - /** |
|
| 59 | +/** |
|
| 60 | 60 | * @inheritDoc |
| 61 | 61 | */ |
| 62 | - public function getCss(): string |
|
| 63 | - { |
|
| 64 | - return parent::getCss() . ' |
|
| 62 | +public function getCss(): string |
|
| 63 | +{ |
|
| 64 | +return parent::getCss() . ' |
|
| 65 | 65 | <style> |
| 66 | 66 | .ajs-footer .ajs-buttons .btn { |
| 67 | 67 | margin-right: 10px; |
| 68 | 68 | } |
| 69 | 69 | </style> |
| 70 | 70 | '; |
| 71 | - } |
|
| 71 | +} |
|
| 72 | 72 | } |
@@ -20,31 +20,31 @@ |
||
| 20 | 20 | |
| 21 | 21 | class Quantum extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'quantum'; |
|
| 26 | +public const NAME = 'quantum'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The js files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aJsFiles = ['minfile/quantumalert.js']; |
|
| 33 | +protected $aJsFiles = ['minfile/quantumalert.js']; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 35 | +/** |
|
| 36 | 36 | * @inheritDoc |
| 37 | 37 | */ |
| 38 | - public function getName(): string |
|
| 39 | - { |
|
| 40 | - return self::NAME; |
|
| 41 | - } |
|
| 38 | +public function getName(): string |
|
| 39 | +{ |
|
| 40 | +return self::NAME; |
|
| 41 | +} |
|
| 42 | 42 | |
| 43 | - /** |
|
| 43 | +/** |
|
| 44 | 44 | * @inheritDoc |
| 45 | 45 | */ |
| 46 | - public function getUri(): string |
|
| 47 | - { |
|
| 48 | - return 'https://cdn.jsdelivr.net/gh/cosmogicofficial/quantumalert@latest'; |
|
| 49 | - } |
|
| 46 | +public function getUri(): string |
|
| 47 | +{ |
|
| 48 | +return 'https://cdn.jsdelivr.net/gh/cosmogicofficial/quantumalert@latest'; |
|
| 49 | +} |
|
| 50 | 50 | } |
@@ -19,38 +19,38 @@ |
||
| 19 | 19 | |
| 20 | 20 | class Toastr extends AbstractLibrary implements AlertInterface |
| 21 | 21 | { |
| 22 | - /** |
|
| 22 | +/** |
|
| 23 | 23 | * @const The library name |
| 24 | 24 | */ |
| 25 | - public const NAME = 'toastr'; |
|
| 25 | +public const NAME = 'toastr'; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 27 | +/** |
|
| 28 | 28 | * The css files |
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $aCssFiles = ['build/toastr.min.css']; |
|
| 32 | +protected $aCssFiles = ['build/toastr.min.css']; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 34 | +/** |
|
| 35 | 35 | * The js files |
| 36 | 36 | * |
| 37 | 37 | * @var array |
| 38 | 38 | */ |
| 39 | - protected $aJsFiles = ['toastr.min.js']; |
|
| 39 | +protected $aJsFiles = ['toastr.min.js']; |
|
| 40 | 40 | |
| 41 | - /** |
|
| 41 | +/** |
|
| 42 | 42 | * @inheritDoc |
| 43 | 43 | */ |
| 44 | - public function getName(): string |
|
| 45 | - { |
|
| 46 | - return self::NAME; |
|
| 47 | - } |
|
| 44 | +public function getName(): string |
|
| 45 | +{ |
|
| 46 | +return self::NAME; |
|
| 47 | +} |
|
| 48 | 48 | |
| 49 | - /** |
|
| 49 | +/** |
|
| 50 | 50 | * @inheritDoc |
| 51 | 51 | */ |
| 52 | - public function getUri(): string |
|
| 53 | - { |
|
| 54 | - return 'https://cdn.jsdelivr.net/npm/[email protected]'; |
|
| 55 | - } |
|
| 52 | +public function getUri(): string |
|
| 53 | +{ |
|
| 54 | +return 'https://cdn.jsdelivr.net/npm/[email protected]'; |
|
| 55 | +} |
|
| 56 | 56 | } |
@@ -20,38 +20,38 @@ |
||
| 20 | 20 | |
| 21 | 21 | class JAlert extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'jalert'; |
|
| 26 | +public const NAME = 'jalert'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The css files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aCssFiles = ['jAlert.min.css']; |
|
| 33 | +protected $aCssFiles = ['jAlert.min.css']; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 35 | +/** |
|
| 36 | 36 | * The js files |
| 37 | 37 | * |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - protected $aJsFiles = ['jAlert.min.js']; |
|
| 40 | +protected $aJsFiles = ['jAlert.min.js']; |
|
| 41 | 41 | |
| 42 | - /** |
|
| 42 | +/** |
|
| 43 | 43 | * @inheritDoc |
| 44 | 44 | */ |
| 45 | - public function getName(): string |
|
| 46 | - { |
|
| 47 | - return self::NAME; |
|
| 48 | - } |
|
| 45 | +public function getName(): string |
|
| 46 | +{ |
|
| 47 | +return self::NAME; |
|
| 48 | +} |
|
| 49 | 49 | |
| 50 | - /** |
|
| 50 | +/** |
|
| 51 | 51 | * @inheritDoc |
| 52 | 52 | */ |
| 53 | - public function getUri(): string |
|
| 54 | - { |
|
| 55 | - return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 56 | - } |
|
| 53 | +public function getUri(): string |
|
| 54 | +{ |
|
| 55 | +return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 56 | +} |
|
| 57 | 57 | } |
@@ -20,18 +20,18 @@ |
||
| 20 | 20 | |
| 21 | 21 | class Alert extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = ''; |
|
| 26 | +public const NAME = ''; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * Get the library name |
| 30 | 30 | * |
| 31 | 31 | * @return string |
| 32 | 32 | */ |
| 33 | - public function getName(): string |
|
| 34 | - { |
|
| 35 | - return ''; // No name |
|
| 36 | - } |
|
| 33 | +public function getName(): string |
|
| 34 | +{ |
|
| 35 | +return ''; // No name |
|
| 36 | +} |
|
| 37 | 37 | } |
@@ -19,38 +19,38 @@ |
||
| 19 | 19 | |
| 20 | 20 | class Notyf extends AbstractLibrary implements AlertInterface |
| 21 | 21 | { |
| 22 | - /** |
|
| 22 | +/** |
|
| 23 | 23 | * @const The library name |
| 24 | 24 | */ |
| 25 | - public const NAME = 'notyf'; |
|
| 25 | +public const NAME = 'notyf'; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 27 | +/** |
|
| 28 | 28 | * The css files |
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $aCssFiles = ['notyf.min.css']; |
|
| 32 | +protected $aCssFiles = ['notyf.min.css']; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 34 | +/** |
|
| 35 | 35 | * The js files |
| 36 | 36 | * |
| 37 | 37 | * @var array |
| 38 | 38 | */ |
| 39 | - protected $aJsFiles = ['notyf.min.js']; |
|
| 39 | +protected $aJsFiles = ['notyf.min.js']; |
|
| 40 | 40 | |
| 41 | - /** |
|
| 41 | +/** |
|
| 42 | 42 | * @inheritDoc |
| 43 | 43 | */ |
| 44 | - public function getName(): string |
|
| 45 | - { |
|
| 46 | - return self::NAME; |
|
| 47 | - } |
|
| 44 | +public function getName(): string |
|
| 45 | +{ |
|
| 46 | +return self::NAME; |
|
| 47 | +} |
|
| 48 | 48 | |
| 49 | - /** |
|
| 49 | +/** |
|
| 50 | 50 | * @inheritDoc |
| 51 | 51 | */ |
| 52 | - public function getUri(): string |
|
| 53 | - { |
|
| 54 | - return 'https://cdn.jsdelivr.net/npm/notyf@3'; |
|
| 55 | - } |
|
| 52 | +public function getUri(): string |
|
| 53 | +{ |
|
| 54 | +return 'https://cdn.jsdelivr.net/npm/notyf@3'; |
|
| 55 | +} |
|
| 56 | 56 | } |