@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | 'toggle' => $this->toggleBox, |
| 132 | 132 | 'onetime' => $this->onetimeAutoUpdate, |
| 133 | 133 | 'fields' => (array_reduce($this->fields, function (array $result, Forms\Controls\BaseControl $row) { |
| 134 | - $result[] = '#' . $row->getHtmlId(); |
|
| 134 | + $result[] = '#'.$row->getHtmlId(); |
|
| 135 | 135 | |
| 136 | 136 | return $result; |
| 137 | 137 | }, [])), |
@@ -168,8 +168,8 @@ discard block |
||
| 168 | 168 | // Check if template file exists... |
| 169 | 169 | if (!is_file($templateFile)) { |
| 170 | 170 | // ...check if extension template is used |
| 171 | - if (is_file(__DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) { |
|
| 172 | - $templateFile = __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile; |
|
| 171 | + if (is_file(__DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile)) { |
|
| 172 | + $templateFile = __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile; |
|
| 173 | 173 | |
| 174 | 174 | } else { |
| 175 | 175 | // ...if not throw exception |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | */ |
| 186 | 186 | private function getTemplateFile() : string |
| 187 | 187 | { |
| 188 | - return $this->templateFile !== NULL ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
| 188 | + return $this->templateFile !== NULL ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
@@ -16,12 +16,10 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace IPub\FormSlug\Controls; |
| 18 | 18 | |
| 19 | -use Nette; |
|
| 20 | 19 | use Nette\Application\UI; |
| 21 | 20 | use Nette\Bridges; |
| 22 | 21 | use Nette\Forms; |
| 23 | 22 | use Nette\Utils; |
| 24 | - |
|
| 25 | 23 | use IPub; |
| 26 | 24 | use IPub\FormSlug; |
| 27 | 25 | use IPub\FormSlug\Exceptions; |