@@ -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 | } |
@@ -20,52 +20,52 @@ |
||
| 20 | 20 | |
| 21 | 21 | class Noty extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'noty'; |
|
| 26 | +public const NAME = 'noty'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The css files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aCssFiles = ['noty.min.css']; |
|
| 33 | +protected $aCssFiles = ['noty.min.css']; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 35 | +/** |
|
| 36 | 36 | * The js files |
| 37 | 37 | * |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - protected $aJsFiles = ['noty.min.js']; |
|
| 40 | +protected $aJsFiles = ['noty.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]/lib'; |
|
| 56 | - } |
|
| 53 | +public function getUri(): string |
|
| 54 | +{ |
|
| 55 | +return 'https://cdn.jsdelivr.net/npm/[email protected]/lib'; |
|
| 56 | +} |
|
| 57 | 57 | |
| 58 | - /** |
|
| 58 | +/** |
|
| 59 | 59 | * @inheritDoc |
| 60 | 60 | */ |
| 61 | - public function getCss(): string |
|
| 62 | - { |
|
| 63 | - return parent::getCss() . ' |
|
| 61 | +public function getCss(): string |
|
| 62 | +{ |
|
| 63 | +return parent::getCss() . ' |
|
| 64 | 64 | <style> |
| 65 | 65 | .noty_buttons button { |
| 66 | 66 | margin-right: 10px; |
| 67 | 67 | } |
| 68 | 68 | </style> |
| 69 | 69 | '; |
| 70 | - } |
|
| 70 | +} |
|
| 71 | 71 | } |
@@ -20,38 +20,38 @@ |
||
| 20 | 20 | |
| 21 | 21 | class IziToast extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'izitoast'; |
|
| 26 | +public const NAME = 'izitoast'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The css files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aCssFiles = ['css/iziToast.min.css']; |
|
| 33 | +protected $aCssFiles = ['css/iziToast.min.css']; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 35 | +/** |
|
| 36 | 36 | * The js files |
| 37 | 37 | * |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - protected $aJsFiles = ['js/iziToast.min.js']; |
|
| 40 | +protected $aJsFiles = ['js/iziToast.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,31 +20,31 @@ |
||
| 20 | 20 | |
| 21 | 21 | class SweetAlert extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'sweetalert'; |
|
| 26 | +public const NAME = 'sweetalert'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The js files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aJsFiles = ['sweetalert.min.js']; |
|
| 33 | +protected $aJsFiles = ['sweetalert.min.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/npm/[email protected]/dist'; |
|
| 49 | - } |
|
| 46 | +public function getUri(): string |
|
| 47 | +{ |
|
| 48 | +return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 49 | +} |
|
| 50 | 50 | } |
@@ -20,38 +20,38 @@ |
||
| 20 | 20 | |
| 21 | 21 | class Butterup extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'butterup'; |
|
| 26 | +public const NAME = 'butterup'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The css files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aCssFiles = ['butterup.min.css']; |
|
| 33 | +protected $aCssFiles = ['butterup.min.css']; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 35 | +/** |
|
| 36 | 36 | * The js files |
| 37 | 37 | * |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - protected $aJsFiles = ['butterup.min.js']; |
|
| 40 | +protected $aJsFiles = ['butterup.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/gh/dgtlss/[email protected]'; |
|
| 56 | - } |
|
| 53 | +public function getUri(): string |
|
| 54 | +{ |
|
| 55 | +return 'https://cdn.jsdelivr.net/gh/dgtlss/[email protected]'; |
|
| 56 | +} |
|
| 57 | 57 | } |
@@ -20,38 +20,38 @@ |
||
| 20 | 20 | |
| 21 | 21 | class CuteAlert extends AbstractLibrary implements AlertInterface, ConfirmInterface |
| 22 | 22 | { |
| 23 | - /** |
|
| 23 | +/** |
|
| 24 | 24 | * @const The library name |
| 25 | 25 | */ |
| 26 | - public const NAME = 'cute'; |
|
| 26 | +public const NAME = 'cute'; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 28 | +/** |
|
| 29 | 29 | * The css files |
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $aCssFiles = ['style.css']; |
|
| 33 | +protected $aCssFiles = ['style.css']; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 35 | +/** |
|
| 36 | 36 | * The js files |
| 37 | 37 | * |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - protected $aJsFiles = ['cute-alert.js']; |
|
| 40 | +protected $aJsFiles = ['cute-alert.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/gh/jaxon-php/[email protected]/dist/libs/cute-alert'; |
|
| 56 | - } |
|
| 53 | +public function getUri(): string |
|
| 54 | +{ |
|
| 55 | +return 'https://cdn.jsdelivr.net/gh/jaxon-php/[email protected]/dist/libs/cute-alert'; |
|
| 56 | +} |
|
| 57 | 57 | } |
@@ -21,31 +21,31 @@ |
||
| 21 | 21 | |
| 22 | 22 | class Bootbox extends AbstractLibrary implements ModalInterface, AlertInterface, ConfirmInterface |
| 23 | 23 | { |
| 24 | - /** |
|
| 24 | +/** |
|
| 25 | 25 | * @const The library name |
| 26 | 26 | */ |
| 27 | - public const NAME = 'bootbox'; |
|
| 27 | +public const NAME = 'bootbox'; |
|
| 28 | 28 | |
| 29 | - /** |
|
| 29 | +/** |
|
| 30 | 30 | * The js files |
| 31 | 31 | * |
| 32 | 32 | * @var array |
| 33 | 33 | */ |
| 34 | - protected $aJsFiles = ['bootbox.min.js']; |
|
| 34 | +protected $aJsFiles = ['bootbox.min.js']; |
|
| 35 | 35 | |
| 36 | - /** |
|
| 36 | +/** |
|
| 37 | 37 | * @inheritDoc |
| 38 | 38 | */ |
| 39 | - public function getName(): string |
|
| 40 | - { |
|
| 41 | - return self::NAME; |
|
| 42 | - } |
|
| 39 | +public function getName(): string |
|
| 40 | +{ |
|
| 41 | +return self::NAME; |
|
| 42 | +} |
|
| 43 | 43 | |
| 44 | - /** |
|
| 44 | +/** |
|
| 45 | 45 | * @inheritDoc |
| 46 | 46 | */ |
| 47 | - public function getUri(): string |
|
| 48 | - { |
|
| 49 | - return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 50 | - } |
|
| 47 | +public function getUri(): string |
|
| 48 | +{ |
|
| 49 | +return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
|
| 50 | +} |
|
| 51 | 51 | } |
@@ -19,16 +19,16 @@ |
||
| 19 | 19 | |
| 20 | 20 | class Bootstrap5 extends AbstractLibrary implements ModalInterface |
| 21 | 21 | { |
| 22 | - /** |
|
| 22 | +/** |
|
| 23 | 23 | * @const The library name |
| 24 | 24 | */ |
| 25 | - public const NAME = 'bootstrap5'; |
|
| 25 | +public const NAME = 'bootstrap5'; |
|
| 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 | } |