@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -include __DIR__."/vendor/autoload.php"; |
|
| 2 | +include __DIR__ . "/vendor/autoload.php"; |
|
| 3 | 3 | |
| 4 | 4 | use Enjoys\Forms\Form; |
| 5 | 5 | use Enjoys\Forms\Renderer\Renderer; |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | $form->textarea('about', 'Коротко о себе'); |
| 38 | 38 | $form->submit('submit_btn', 'Отправить анкету'); |
| 39 | 39 | |
| 40 | -if(!$form->isSubmitted()){ |
|
| 40 | +if (!$form->isSubmitted()) { |
|
| 41 | 41 | $renderer = new Renderer($form); |
| 42 | 42 | echo $renderer->display(); |
| 43 | -}else{ |
|
| 43 | +} else { |
|
| 44 | 44 | _var_dump($_GET); |
| 45 | 45 | } |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | */ |
| 185 | 185 | public function addClass($class, string $namespace = 'general') |
| 186 | 186 | { |
| 187 | - if(is_array($class)){ |
|
| 187 | + if (is_array($class)) { |
|
| 188 | 188 | foreach ($class as $_class) { |
| 189 | 189 | $this->addClass($_class, $namespace); |
| 190 | 190 | } |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | */ |
| 104 | 104 | public function getForm() |
| 105 | 105 | { |
| 106 | - return $this->form;// ?? new Form(); |
|
| 106 | + return $this->form; // ?? new Form(); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |