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

Commit

Permalink
- Yet another code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 18, 2018
1 parent d374445 commit 22d3f12
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/IPub/Forms/DI/FormsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage common
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/Exceptions/IException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/Exceptions/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/FormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage common
* @since 5.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/Forms/EntityContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Forms
* @since 1.0.0
Expand Down
3 changes: 1 addition & 2 deletions src/IPub/Forms/Forms/EntityForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Forms
* @since 1.0.0
Expand All @@ -19,7 +19,6 @@
use Doctrine\ORM;

use Nette\Application;
use Nette\ComponentModel;

/**
* Form with entity support
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Forms
* @since 1.0.0
Expand Down
10 changes: 7 additions & 3 deletions src/IPub/Forms/Forms/TEntityContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Forms
* @since 1.0.0
Expand All @@ -18,6 +18,8 @@

use Doctrine\ORM;

use Nette\Application;
use Nette\ComponentModel;
use Nette\Forms;

use IPub\Forms\Exceptions;
Expand All @@ -30,7 +32,7 @@
*
* @author Adam Kadlec <[email protected]>
*
* @method Nette\Application\UI\Form getForm($need = TRUE)
* @method Application\UI\Form getForm($need = TRUE)
* @method setValues($values, $erase = FALSE)
*/
trait TEntityContainer
Expand All @@ -45,6 +47,8 @@ trait TEntityContainer
* @param bool $erase
*
* @return void
*
* @throws Exceptions\InvalidArgumentException
*/
public function setDefaults($values, $erase = FALSE) : void
{
Expand Down Expand Up @@ -83,7 +87,7 @@ public function getEntity()
}

/**
* @param Nette\ComponentModel\Component $formElement
* @param ComponentModel\Component $formElement
* @param object $entity
* @param bool $erase
*
Expand Down
9 changes: 4 additions & 5 deletions src/IPub/Forms/Forms/TForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Forms
* @since 1.0.0
Expand All @@ -14,9 +14,8 @@

namespace IPub\Forms\Forms;

use Nette\Utils;

use IPub\Forms;
use Nette;
use Nette\Forms\Controls;

/**
* Form trait for decorating form
Expand Down Expand Up @@ -84,7 +83,7 @@ protected function beforeRender() : void
{
parent::beforeRender();

/** @var Nette\Forms\Controls\BaseControl $control */
/** @var Controls\BaseControl $control */
foreach ($this->getControls() as $control) {
$inputClass = [];

Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/IFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage common
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Forms/Latte/Macros.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Latte
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion tests/IPubTests/Forms/ComponentTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Tests
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion tests/IPubTests/Forms/ExtensionTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Forms!
* @subpackage Tests
* @since 1.0.0
Expand Down

0 comments on commit 22d3f12

Please sign in to comment.