Passed
Branch 3.x (0b1ace)
by Enjoys
25:07 queued 03:02
created
example/set_default.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Traits/Attributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.