Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
- Missing use namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 17, 2018
1 parent 3b511e3 commit 70eb45a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/IPub/ConfirmationDialog/Components/Confirmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
namespace IPub\ConfirmationDialog\Components;

use Nette\Application;
use Nette\Bridges;
use Nette\ComponentModel;
use Nette\Forms;
use Nette\Localization;

Expand All @@ -39,7 +41,7 @@
final class Confirmer extends ConfirmerAttributes
{
/**
* @var Control|Nette\ComponentModel\IContainer
* @var Control|ComponentModel\IContainer
*/
private $dialog;

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace IPub\ConfirmationDialog\Components;

use Nette\Application;
use Nette\ComponentModel;

use IPub\ConfirmationDialog;
use IPub\ConfirmationDialog\Exceptions;
Expand Down Expand Up @@ -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();

Expand Down
11 changes: 6 additions & 5 deletions src/IPub/ConfirmationDialog/Components/Control.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace IPub\ConfirmationDialog\Components;

use Nette\Application;
use Nette\Bridges;
use Nette\Localization;
use Nette\Utils;

Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 70eb45a

Please sign in to comment.