Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 11, 2021
1 parent 20a39df commit 6969e16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/ComponentModel/IContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

namespace Nette\ComponentModel;

use Nette;


/**
* Containers are objects that logically contain zero or more IComponent components.
Expand All @@ -28,7 +30,7 @@ function removeComponent(IComponent $component): void;

/**
* Returns component specified by name or path.
* @throws \Nette\InvalidArgumentException if component doesn't exist
* @throws Nette\InvalidArgumentException if component doesn't exist
*/
function getComponent(string $name): ?IComponent;

Expand Down
4 changes: 2 additions & 2 deletions tests/ComponentModel/Container.attached.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Notes::fetch(); // clear

class FooForm extends TestClass
{
protected function validateParent(\Nette\ComponentModel\IContainer $parent): void
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
{
parent::validateParent($parent);
$this->monitor(self::class);
Expand All @@ -96,7 +96,7 @@ class FooForm extends TestClass

class FooControl extends TestClass
{
protected function validateParent(\Nette\ComponentModel\IContainer $parent): void
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
{
parent::validateParent($parent);
$this->monitor('FooPresenter');
Expand Down
4 changes: 2 additions & 2 deletions tests/ComponentModel/Container.monitor.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Notes::fetch(); // clear

class FooForm extends TestClass
{
protected function validateParent(\Nette\ComponentModel\IContainer $parent): void
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
{
parent::validateParent($parent);
$this->monitor(self::class, createAttached($this));
Expand All @@ -103,7 +103,7 @@ class FooForm extends TestClass

class FooControl extends TestClass
{
protected function validateParent(\Nette\ComponentModel\IContainer $parent): void
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
{
parent::validateParent($parent);
$this->monitor('FooPresenter', [$this, 'myAttached']);
Expand Down

0 comments on commit 6969e16

Please sign in to comment.