@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | } else { |
| 108 | - $methodName = 'get' . ucfirst($name); |
|
| 108 | + $methodName = 'get'.ucfirst($name); |
|
| 109 | 109 | |
| 110 | 110 | if (method_exists($entity, $methodName) && $value = call_user_func([$entity, $methodName])) { |
| 111 | 111 | if (is_object($value) && $this->isEntity($value)) { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | } else { |
| 138 | - $methodName = 'get' . ucfirst($name); |
|
| 138 | + $methodName = 'get'.ucfirst($name); |
|
| 139 | 139 | |
| 140 | 140 | if (method_exists($entity, $methodName) && $value = call_user_func([$entity, $methodName])) { |
| 141 | 141 | if (is_object($value) && $this->isEntity($value)) { |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @param Nette\ComponentModel\Component $formElement |
|
| 86 | + * @param TEntityContainer $formElement |
|
| 87 | 87 | * @param object $entity |
| 88 | 88 | * @param bool $erase |
| 89 | 89 | * |
@@ -17,9 +17,7 @@ |
||
| 17 | 17 | namespace IPub\Forms\Forms; |
| 18 | 18 | |
| 19 | 19 | use Doctrine\ORM; |
| 20 | - |
|
| 21 | 20 | use Nette\Forms; |
| 22 | - |
|
| 23 | 21 | use IPub\Forms\Exceptions; |
| 24 | 22 | |
| 25 | 23 | /** |
@@ -14,8 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace IPub\Forms\Forms; |
| 16 | 16 | |
| 17 | -use Nette\Utils; |
|
| 18 | - |
|
| 19 | 17 | use IPub\Forms; |
| 20 | 18 | |
| 21 | 19 | /** |