diff --git a/src/IPub/ConfirmationDialog/Components/Confirmer.php b/src/IPub/ConfirmationDialog/Components/Confirmer.php index fd054c8..68b1cf0 100644 --- a/src/IPub/ConfirmationDialog/Components/Confirmer.php +++ b/src/IPub/ConfirmationDialog/Components/Confirmer.php @@ -17,6 +17,8 @@ namespace IPub\ConfirmationDialog\Components; use Nette\Application; +use Nette\Bridges; +use Nette\ComponentModel; use Nette\Forms; use Nette\Localization; @@ -39,7 +41,7 @@ final class Confirmer extends ConfirmerAttributes { /** - * @var Control|Nette\ComponentModel\IContainer + * @var Control|ComponentModel\IContainer */ private $dialog; @@ -189,7 +191,7 @@ public function render() : void $template = parent::render(); // Check if control has template - if ($template instanceof Nette\Bridges\ApplicationLatte\Template) { + if ($template instanceof Bridges\ApplicationLatte\Template) { // Assign vars to template $template->add('name', $this->name); $template->add('class', $this->cssClass); diff --git a/src/IPub/ConfirmationDialog/Components/ConfirmerAttributes.php b/src/IPub/ConfirmationDialog/Components/ConfirmerAttributes.php index f49f03b..a88e340 100644 --- a/src/IPub/ConfirmationDialog/Components/ConfirmerAttributes.php +++ b/src/IPub/ConfirmationDialog/Components/ConfirmerAttributes.php @@ -17,6 +17,7 @@ namespace IPub\ConfirmationDialog\Components; use Nette\Application; +use Nette\ComponentModel; use IPub\ConfirmationDialog; use IPub\ConfirmationDialog\Exceptions; @@ -215,14 +216,14 @@ public function getHandler() : callable } /** - * @param Nette\ComponentModel\IContainer $obj + * @param ComponentModel\IContainer $obj * @param array $params * * @return mixed * * @throws Exceptions\HandlerNotCallableException */ - public function callHandler(Nette\ComponentModel\IContainer $obj, array $params) + public function callHandler(ComponentModel\IContainer $obj, array $params) { $callback = $this->getHandler(); diff --git a/src/IPub/ConfirmationDialog/Components/Control.php b/src/IPub/ConfirmationDialog/Components/Control.php index 27a4007..888410f 100644 --- a/src/IPub/ConfirmationDialog/Components/Control.php +++ b/src/IPub/ConfirmationDialog/Components/Control.php @@ -17,6 +17,7 @@ namespace IPub\ConfirmationDialog\Components; use Nette\Application; +use Nette\Bridges; use Nette\Localization; use Nette\Utils; @@ -126,10 +127,10 @@ public static function formatSignalMethod($signal) : string /** * Add confirmation handler to "dynamicaly named signals" * - * @param string $name Confirmation/signal name - * @param callback|Nette\Utils\Callback $handler Callback called when confirmation succeed - * @param callback|string $question Callback ($confirmer, $params) or string containing question text - * @param callback|string $heading Callback ($confirmer, $params) or string containing heading text + * @param string $nam Confirmation/signal name + * @param callback|Utils\Callback $handler Callback called when confirmation succeed + * @param callback|string $question Callback ($confirmer, $params) or string containing question text + * @param callback|string $heading Callback ($confirmer, $params) or string containing heading text * * @return void * @@ -295,7 +296,7 @@ public function render() : void $template = parent::render(); // Check if control has template - if ($template instanceof Nette\Bridges\ApplicationLatte\Template) { + if ($template instanceof Bridges\ApplicationLatte\Template) { // Assign vars to template $template->confirmer = $this->confirmer;