diff --git a/src/Noty/Prime/.phpstorm.meta.php b/src/Noty/Prime/.phpstorm.meta.php index 9363ea90..65c5e692 100644 --- a/src/Noty/Prime/.phpstorm.meta.php +++ b/src/Noty/Prime/.phpstorm.meta.php @@ -1,30 +1,9 @@ \Flasher\Noty\Prime\NotyInterface::class])); override(\Flasher\Prime\FlasherInterface::create(), map(['noty' => \Flasher\Noty\Prime\NotyInterface::class])); override(\Flasher\Prime\Container\FlasherContainer::create(), map(['flasher.noty' => \Flasher\Noty\Prime\NotyInterface::class])); diff --git a/src/Notyf/Prime/.phpstorm.meta.php b/src/Notyf/Prime/.phpstorm.meta.php index 552285b2..ddce900b 100644 --- a/src/Notyf/Prime/.phpstorm.meta.php +++ b/src/Notyf/Prime/.phpstorm.meta.php @@ -1,35 +1,12 @@ \Flasher\Notyf\Prime\NotyfInterface::class])); override(\Flasher\Prime\FlasherInterface::create(), map(['notyf' => \Flasher\Notyf\Prime\NotyfInterface::class])); override(\Flasher\Prime\Container\FlasherContainer::create(), map(['flasher.notyf' => \Notyf\Notyf\Prime\NotyfInterface::class])); diff --git a/src/Prime/.phpstorm.meta.php b/src/Prime/.phpstorm.meta.php index 360caf40..b648a4ef 100644 --- a/src/Prime/.phpstorm.meta.php +++ b/src/Prime/.phpstorm.meta.php @@ -1,36 +1,11 @@ \Flasher\Prime\Factory\FlasherFactory::class, 'theme.' => \Flasher\Prime\Factory\FlasherFactory::class])); override(\Flasher\Prime\Container\FlasherContainer::create(), map(['flasher' => \Flasher\Prime\Factory\FlasherFactory::class, 'theme.' => \Flasher\Prime\Factory\FlasherFactory::class])); override(\Flasher\Prime\FlasherInterface::use(), map(['flasher' => \Flasher\Prime\Factory\FlasherFactory::class, 'theme.' => \Flasher\Prime\Factory\FlasherFactory::class])); - -// Register and utilize notification type constants for better code completion registerArgumentsSet('types', 'success', 'error', 'warning', 'info'); expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::type(), 0, argumentsSet('types')); expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::addFlash(), 0, argumentsSet('types')); @@ -39,12 +14,6 @@ expectedArguments(\Flasher\Prime\Notification\NotificationInterface::setType(), expectedArguments(flash(), 1, argumentsSet('types')); expectedArguments(\Flasher\Prime\flash(), 1, argumentsSet('types')); expectedReturnValues(\Flasher\Prime\Notification\NotificationInterface::getType(), argumentsSet('types')); - -// Define expected arguments for handlers expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::handler(), 0, 'flasher', 'toastr', 'noty', 'notyf', 'sweetalert'); - -// Define expected arguments for render formats expectedArguments(\Flasher\Prime\FlasherInterface::render(), 0, 'html', 'json', 'array'); - -// Define expected arguments for common option keys expectedArguments(\Flasher\Prime\Notification\FlasherBuilder::option(), 0, 'timeout', 'timeouts', 'fps', 'position', 'direction', 'rtl', 'style', 'escapeHtml'); diff --git a/src/Prime/Stamp/ContextStamp.php b/src/Prime/Stamp/ContextStamp.php index e1a112b2..d06a5c4d 100644 --- a/src/Prime/Stamp/ContextStamp.php +++ b/src/Prime/Stamp/ContextStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Stores additional context data for a notification. - */ final readonly class ContextStamp implements PresentableStampInterface, StampInterface { /** diff --git a/src/Prime/Stamp/DelayStamp.php b/src/Prime/Stamp/DelayStamp.php index 7470cfda..2976f609 100644 --- a/src/Prime/Stamp/DelayStamp.php +++ b/src/Prime/Stamp/DelayStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Controls notification display delay. - */ final readonly class DelayStamp implements StampInterface { public function __construct(private int $delay) diff --git a/src/Prime/Stamp/HopsStamp.php b/src/Prime/Stamp/HopsStamp.php index bd5c5189..2d653330 100644 --- a/src/Prime/Stamp/HopsStamp.php +++ b/src/Prime/Stamp/HopsStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Controls notification persistence across requests. - */ final readonly class HopsStamp implements StampInterface { public function __construct(private int $amount) diff --git a/src/Prime/Stamp/IdStamp.php b/src/Prime/Stamp/IdStamp.php index 9648f3df..9d57a112 100644 --- a/src/Prime/Stamp/IdStamp.php +++ b/src/Prime/Stamp/IdStamp.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Stamp; use Flasher\Prime\Notification\Envelope; -/** - * Provides a unique identifier for notifications. - */ final readonly class IdStamp implements PresentableStampInterface, StampInterface { private string $id; @@ -23,8 +20,6 @@ final readonly class IdStamp implements PresentableStampInterface, StampInterfac try { return bin2hex(random_bytes(16)); } catch (\Exception) { - // Handle the exception or fallback to another method of ID generation - // For example, using uniqid() as a fallback return uniqid('', true); } } diff --git a/src/Prime/Stamp/PresetStamp.php b/src/Prime/Stamp/PresetStamp.php index a105c5d6..e3379b27 100644 --- a/src/Prime/Stamp/PresetStamp.php +++ b/src/Prime/Stamp/PresetStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Associates a notification with a predefined template. - */ final readonly class PresetStamp implements StampInterface { /** diff --git a/src/Prime/Stamp/PriorityStamp.php b/src/Prime/Stamp/PriorityStamp.php index 9d2c05f1..4cb6fe6d 100644 --- a/src/Prime/Stamp/PriorityStamp.php +++ b/src/Prime/Stamp/PriorityStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Controls notification priority for ordering. - */ final readonly class PriorityStamp implements OrderableStampInterface, PresentableStampInterface, StampInterface { public function __construct(private int $priority) diff --git a/src/Prime/Stamp/TranslationStamp.php b/src/Prime/Stamp/TranslationStamp.php index 10a3826f..03dadeb1 100644 --- a/src/Prime/Stamp/TranslationStamp.php +++ b/src/Prime/Stamp/TranslationStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Provides translation parameters and locale for a notification. - */ final readonly class TranslationStamp implements StampInterface { /** diff --git a/src/Prime/Stamp/UnlessStamp.php b/src/Prime/Stamp/UnlessStamp.php index 53d8650e..f14aeefa 100644 --- a/src/Prime/Stamp/UnlessStamp.php +++ b/src/Prime/Stamp/UnlessStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Controls conditional suppression of notifications. - */ final readonly class UnlessStamp implements StampInterface { public function __construct(private bool $condition) diff --git a/src/Prime/Stamp/WhenStamp.php b/src/Prime/Stamp/WhenStamp.php index f95ccb82..a5c4716b 100644 --- a/src/Prime/Stamp/WhenStamp.php +++ b/src/Prime/Stamp/WhenStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Controls conditional display of notifications. - */ final readonly class WhenStamp implements StampInterface { public function __construct(private bool $condition) diff --git a/src/SweetAlert/Prime/.phpstorm.meta.php b/src/SweetAlert/Prime/.phpstorm.meta.php index cf434164..951b3329 100644 --- a/src/SweetAlert/Prime/.phpstorm.meta.php +++ b/src/SweetAlert/Prime/.phpstorm.meta.php @@ -1,30 +1,9 @@ \Flasher\SweetAlert\Prime\SweetAlertInterface::class])); override(\Flasher\Prime\FlasherInterface::create(), map(['sweetalert' => \Flasher\SweetAlert\Prime\SweetAlertInterface::class])); override(\Flasher\Prime\Container\FlasherContainer::create(), map(['flasher.sweetalert' => \Flasher\SweetAlert\Prime\SweetAlertInterface::class])); diff --git a/src/Toastr/Prime/.phpstorm.meta.php b/src/Toastr/Prime/.phpstorm.meta.php index 6eed2077..97e94588 100644 --- a/src/Toastr/Prime/.phpstorm.meta.php +++ b/src/Toastr/Prime/.phpstorm.meta.php @@ -1,41 +1,16 @@ \Flasher\Toastr\Prime\ToastrInterface::class])); override(\Flasher\Prime\FlasherInterface::create(), map(['toastr' => \Flasher\Toastr\Prime\ToastrInterface::class])); override(\Flasher\Prime\Container\FlasherContainer::create(), map(['flasher.toastr' => \Flasher\Toastr\Prime\ToastrInterface::class])); - -// Define expected option names for the option method expectedArguments(\Flasher\Toastr\Prime\ToastrBuilder::option(), 0, 'closeButton', 'closeClass', 'closeDuration', 'closeEasing', 'closeHtml', 'closeMethod', 'closeOnHover', 'containerId', 'debug', 'escapeHtml', 'extendedTimeOut', 'hideDuration', 'hideEasing', 'hideMethod', 'iconClass', 'messageClass', 'newestOnTop', 'onHidden', 'onShown', 'positionClass', 'preventDuplicates', 'progressBar', 'progressClass', 'rtl', 'showDuration', 'showEasing', 'showMethod', 'tapToDismiss', 'target', 'timeOut', 'titleClass', 'toastClass');