@@ -88,7 +88,7 @@ |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | if ($indent !== NULL) { |
91 | - return "\n" . str_repeat("\t", $indent - 1) . $s . "\n" . str_repeat("\t", max(0, $indent - 2)); |
|
91 | + return "\n".str_repeat("\t", $indent - 1).$s."\n".str_repeat("\t", max(0, $indent - 2)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | return $s; |
@@ -14,11 +14,9 @@ |
||
14 | 14 | |
15 | 15 | namespace IPub\FormSlug\Controls; |
16 | 16 | |
17 | -use Nette; |
|
18 | 17 | use Nette\Application\UI; |
19 | 18 | use Nette\Bridges; |
20 | 19 | use Nette\Forms; |
21 | - |
|
22 | 20 | use IPub; |
23 | 21 | use IPub\FormSlug; |
24 | 22 | use IPub\FormSlug\Exceptions; |
@@ -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 | /** |