Test Failed
Push — develop ( 185a68...fdcb33 )
by Freddie
02:19
created
src/Builder/AbstractBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
     protected function twig()
25 25
     {
26 26
         $appVariableReflection = new \ReflectionClass('\Symfony\Bridge\Twig\AppVariable');
27
-        $vendorTwigBridgeDirectory = dirname((string)$appVariableReflection->getFileName());
27
+        $vendorTwigBridgeDirectory = dirname((string) $appVariableReflection->getFileName());
28 28
 
29 29
         $loader = new \Twig\Loader\FilesystemLoader([
30
-            $vendorTwigBridgeDirectory . '/Resources/views/Form',
30
+            $vendorTwigBridgeDirectory.'/Resources/views/Form',
31 31
         ]);
32 32
 
33 33
         $twig = new \Twig\Environment($loader);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $formEngine = new \Symfony\Bridge\Twig\Form\TwigRendererEngine(['bootstrap_4_layout.html.twig'], $twig);
40 40
         $twig->addRuntimeLoader(new \Twig\RuntimeLoader\FactoryRuntimeLoader([
41
-            \Symfony\Component\Form\FormRenderer::class => function () use ($formEngine) {
41
+            \Symfony\Component\Form\FormRenderer::class => function() use ($formEngine) {
42 42
                 return new \Symfony\Component\Form\FormRenderer($formEngine);
43 43
             },
44 44
         ]));
Please login to merge, or discard this patch.
src/Builder/InputBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $_options = [];
81 81
 
82
-        $options = array_change_key_case(array_filter($options, function ($var) {
82
+        $options = array_change_key_case(array_filter($options, function($var) {
83 83
             return !is_null($var);
84 84
         }));
85 85
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                         if ($attribute == 'required' || $_value == 'required') {
107 107
                             $_options['required'] = true;
108 108
                         } elseif (in_array($attribute, ['length', 'mincheck', 'maxcheck', 'check', 'equalto'])) {
109
-                            $_options['attr']['data-parsley-' . $attribute] = $_value;
109
+                            $_options['attr']['data-parsley-'.$attribute] = $_value;
110 110
                         } elseif ($attribute == 'range') {
111 111
                             $_options['type'] = $attribute;
112 112
                             list($min, $max) = explode(',', $_value);
Please login to merge, or discard this patch.
tests/Unit/InputTest.php 5 patches
Indentation   +1 added lines, -22 removed lines patch added patch discarded remove patch
@@ -52,25 +52,4 @@
 block discarded – undo
52 52
         $this->assertEquals(<<<T
53 53
 <form name="form" method="post">
54 54
 </form>
55
-T, $render);
56
-    }
57
-
58
-    public function getTypeNameOptions(): array
59
-    {
60
-        return [
61
-            ['text'],
62
-            [' text '],
63
-            [' text'],
64
-            ['text '],
65
-            ['TEXT '],
66
-            ['textType'],
67
-            [' textType '],
68
-            [' textType'],
69
-            ['textType '],
70
-            ['TextType '],
71
-            ['Texttype '],
72
-            ['texttype '],
73
-            ['TEXTTYPE '],
74
-        ];
75
-    }
76
-}
55
+T, $render
77 56
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -22 removed lines patch added patch discarded remove patch
@@ -52,25 +52,4 @@
 block discarded – undo
52 52
         $this->assertEquals(<<<T
53 53
 <form name="form" method="post">
54 54
 </form>
55
-T, $render);
56
-    }
57
-
58
-    public function getTypeNameOptions(): array
59
-    {
60
-        return [
61
-            ['text'],
62
-            [' text '],
63
-            [' text'],
64
-            ['text '],
65
-            ['TEXT '],
66
-            ['textType'],
67
-            [' textType '],
68
-            [' textType'],
69
-            ['textType '],
70
-            ['TextType '],
71
-            ['Texttype '],
72
-            ['texttype '],
73
-            ['TEXTTYPE '],
74
-        ];
75
-    }
76
-}
55
+T, $render
77 56
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -22 removed lines patch added patch discarded remove patch
@@ -52,25 +52,4 @@
 block discarded – undo
52 52
         $this->assertEquals(<<<T
53 53
 <form name="form" method="post">
54 54
 </form>
55
-T, $render);
56
-    }
57
-
58
-    public function getTypeNameOptions(): array
59
-    {
60
-        return [
61
-            ['text'],
62
-            [' text '],
63
-            [' text'],
64
-            ['text '],
65
-            ['TEXT '],
66
-            ['textType'],
67
-            [' textType '],
68
-            [' textType'],
69
-            ['textType '],
70
-            ['TextType '],
71
-            ['Texttype '],
72
-            ['texttype '],
73
-            ['TEXTTYPE '],
74
-        ];
75
-    }
76
-}
55
+T, $render
77 56
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -22 removed lines patch added patch discarded remove patch
@@ -52,25 +52,4 @@
 block discarded – undo
52 52
         $this->assertEquals(<<<T
53 53
 <form name="form" method="post">
54 54
 </form>
55
-T, $render);
56
-    }
57
-
58
-    public function getTypeNameOptions(): array
59
-    {
60
-        return [
61
-            ['text'],
62
-            [' text '],
63
-            [' text'],
64
-            ['text '],
65
-            ['TEXT '],
66
-            ['textType'],
67
-            [' textType '],
68
-            [' textType'],
69
-            ['textType '],
70
-            ['TextType '],
71
-            ['Texttype '],
72
-            ['texttype '],
73
-            ['TEXTTYPE '],
74
-        ];
75
-    }
76
-}
55
+T, $render
77 56
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -22 removed lines patch added patch discarded remove patch
@@ -52,25 +52,4 @@
 block discarded – undo
52 52
         $this->assertEquals(<<<T
53 53
 <form name="form" method="post">
54 54
 </form>
55
-T, $render);
56
-    }
57
-
58
-    public function getTypeNameOptions(): array
59
-    {
60
-        return [
61
-            ['text'],
62
-            [' text '],
63
-            [' text'],
64
-            ['text '],
65
-            ['TEXT '],
66
-            ['textType'],
67
-            [' textType '],
68
-            [' textType'],
69
-            ['textType '],
70
-            ['TextType '],
71
-            ['Texttype '],
72
-            ['texttype '],
73
-            ['TEXTTYPE '],
74
-        ];
75
-    }
76
-}
55
+T, $render
77 56
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Unit/Builder/FormBuilderTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,6 +81,4 @@
 block discarded – undo
81 81
 
82 82
         $this->assertEquals(<<<T
83 83
 File: <form name="form" method="post"><div id="form"></div></form>
84
-T, $render);
85
-    }
86
-}
84
+T, $render
87 85
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,6 +81,4 @@
 block discarded – undo
81 81
 
82 82
         $this->assertEquals(<<<T
83 83
 File: <form name="form" method="post"><div id="form"></div></form>
84
-T, $render);
85
-    }
86
-}
84
+T, $render
87 85
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,6 +81,4 @@
 block discarded – undo
81 81
 
82 82
         $this->assertEquals(<<<T
83 83
 File: <form name="form" method="post"><div id="form"></div></form>
84
-T, $render);
85
-    }
86
-}
84
+T, $render
87 85
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,6 +81,4 @@
 block discarded – undo
81 81
 
82 82
         $this->assertEquals(<<<T
83 83
 File: <form name="form" method="post"><div id="form"></div></form>
84
-T, $render);
85
-    }
86
-}
84
+T, $render
87 85
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,6 +81,4 @@
 block discarded – undo
81 81
 
82 82
         $this->assertEquals(<<<T
83 83
 File: <form name="form" method="post"><div id="form"></div></form>
84
-T, $render);
85
-    }
86
-}
84
+T, $render
87 85
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Unit/Builder/InputBuilderTest.php 5 patches
Indentation   +1 added lines, -26 removed lines patch added patch discarded remove patch
@@ -432,29 +432,4 @@
 block discarded – undo
432 432
 
433 433
         $this->assertEquals(<<<T
434 434
 <div class="row-class form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
435
-T, $render);
436
-    }
437
-
438
-    public function getDefaultWithSpacesOptions(): array
439
-    {
440
-        return [
441
-            ['foo bar'],
442
-            ['foo  bar'],
443
-            [' foo bar '],
444
-            [' foo bar'],
445
-            ['foo bar '],
446
-            ['  foo  bar  '],
447
-        ];
448
-    }
449
-
450
-    public function getRequiredOptions(): array
451
-    {
452
-        return [
453
-            [\json_encode(['required'])],
454
-            [\json_encode(['required' => true])],
455
-            [\json_encode(['required' => 'true'])],
456
-            [\json_encode(['required' => 'required'])],
457
-            ['required'],
458
-        ];
459
-    }
460
-}
435
+T, $render
461 436
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -26 removed lines patch added patch discarded remove patch
@@ -432,29 +432,4 @@
 block discarded – undo
432 432
 
433 433
         $this->assertEquals(<<<T
434 434
 <div class="row-class form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
435
-T, $render);
436
-    }
437
-
438
-    public function getDefaultWithSpacesOptions(): array
439
-    {
440
-        return [
441
-            ['foo bar'],
442
-            ['foo  bar'],
443
-            [' foo bar '],
444
-            [' foo bar'],
445
-            ['foo bar '],
446
-            ['  foo  bar  '],
447
-        ];
448
-    }
449
-
450
-    public function getRequiredOptions(): array
451
-    {
452
-        return [
453
-            [\json_encode(['required'])],
454
-            [\json_encode(['required' => true])],
455
-            [\json_encode(['required' => 'true'])],
456
-            [\json_encode(['required' => 'required'])],
457
-            ['required'],
458
-        ];
459
-    }
460
-}
435
+T, $render
461 436
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -26 removed lines patch added patch discarded remove patch
@@ -432,29 +432,4 @@
 block discarded – undo
432 432
 
433 433
         $this->assertEquals(<<<T
434 434
 <div class="row-class form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
435
-T, $render);
436
-    }
437
-
438
-    public function getDefaultWithSpacesOptions(): array
439
-    {
440
-        return [
441
-            ['foo bar'],
442
-            ['foo  bar'],
443
-            [' foo bar '],
444
-            [' foo bar'],
445
-            ['foo bar '],
446
-            ['  foo  bar  '],
447
-        ];
448
-    }
449
-
450
-    public function getRequiredOptions(): array
451
-    {
452
-        return [
453
-            [\json_encode(['required'])],
454
-            [\json_encode(['required' => true])],
455
-            [\json_encode(['required' => 'true'])],
456
-            [\json_encode(['required' => 'required'])],
457
-            ['required'],
458
-        ];
459
-    }
460
-}
435
+T, $render
461 436
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -26 removed lines patch added patch discarded remove patch
@@ -432,29 +432,4 @@
 block discarded – undo
432 432
 
433 433
         $this->assertEquals(<<<T
434 434
 <div class="row-class form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
435
-T, $render);
436
-    }
437
-
438
-    public function getDefaultWithSpacesOptions(): array
439
-    {
440
-        return [
441
-            ['foo bar'],
442
-            ['foo  bar'],
443
-            [' foo bar '],
444
-            [' foo bar'],
445
-            ['foo bar '],
446
-            ['  foo  bar  '],
447
-        ];
448
-    }
449
-
450
-    public function getRequiredOptions(): array
451
-    {
452
-        return [
453
-            [\json_encode(['required'])],
454
-            [\json_encode(['required' => true])],
455
-            [\json_encode(['required' => 'true'])],
456
-            [\json_encode(['required' => 'required'])],
457
-            ['required'],
458
-        ];
459
-    }
460
-}
435
+T, $render
461 436
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -26 removed lines patch added patch discarded remove patch
@@ -432,29 +432,4 @@
 block discarded – undo
432 432
 
433 433
         $this->assertEquals(<<<T
434 434
 <div class="row-class form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
435
-T, $render);
436
-    }
437
-
438
-    public function getDefaultWithSpacesOptions(): array
439
-    {
440
-        return [
441
-            ['foo bar'],
442
-            ['foo  bar'],
443
-            [' foo bar '],
444
-            [' foo bar'],
445
-            ['foo bar '],
446
-            ['  foo  bar  '],
447
-        ];
448
-    }
449
-
450
-    public function getRequiredOptions(): array
451
-    {
452
-        return [
453
-            [\json_encode(['required'])],
454
-            [\json_encode(['required' => true])],
455
-            [\json_encode(['required' => 'true'])],
456
-            [\json_encode(['required' => 'required'])],
457
-            ['required'],
458
-        ];
459
-    }
460
-}
435
+T, $render
461 436
\ No newline at end of file
Please login to merge, or discard this patch.