Test Failed
Pull Request — master (#7)
by David
12:06
created
Form/CartFlowType/CartSinglePageFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 {
20 20
     protected $extra_fields;
21 21
 
22
-    public function __construct( $extra_fields ) {
22
+    public function __construct($extra_fields) {
23 23
         $this->extra_fields = $extra_fields;
24 24
     }
25 25
 
Please login to merge, or discard this patch.
Form/Type/AdditionalFieldsType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
 
24 24
         foreach ($options['fields'] as $field) {
25
-            $class = 'Symfony\Component\Form\Extension\Core\Type\\'.$field['type'] .'Type';
25
+            $class = 'Symfony\Component\Form\Extension\Core\Type\\'.$field['type'].'Type';
26 26
 
27 27
             $cssClass = null !== $field['class'] ? $field['class'] : '';
28 28
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
                     )
36 36
                 ));
37 37
 
38
-            if($field['data'] !== null) {
39
-                $builder->get($field['id'])->setData( true );
38
+            if ($field['data'] !== null) {
39
+                $builder->get($field['id'])->setData(true);
40 40
             }
41 41
         }
42 42
 
Please login to merge, or discard this patch.
DependencyInjection/GGGGinoSkuskuCartExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $container->setParameter('ggggino_skuskucart.cart_mode', $config['cart_mode']);        
39 39
 
40 40
         foreach ($config['templates'] as $key => $template) {
41
-            $container->setParameter('ggggino_skuskucart.templates.' . $key, $template);
41
+            $container->setParameter('ggggino_skuskucart.templates.'.$key, $template);
42 42
         }
43 43
 
44 44
         $container->setParameter('ggggino_skuskucart.redirect_after_done_route', $config['redirect_after_done_route']);        
Please login to merge, or discard this patch.
Controller/CartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $response = $flow->handleSubmit($form, $formData);
63 63
 
64
-        if ( $response instanceof RedirectResponse ) {
64
+        if ($response instanceof RedirectResponse) {
65 65
             return $response;
66 66
         }
67 67
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $token = $this->get('payum')->getHttpRequestVerifier()->verify($request);
119 119
         } catch (\Exception $tokenNotFound) {
120 120
             // To remove this if because everithing is managed in the event listener
121
-            if(null !== $this->getParameter('ggggino_skuskucart.redirect_after_done_route')) {
121
+            if (null !== $this->getParameter('ggggino_skuskucart.redirect_after_done_route')) {
122 122
                 return $this->redirectToRoute($redirectRoute);
123 123
             }
124 124
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
         $flow->handleDone($payment, $status);
138 138
 
139
-        if ( $this->container->hasParameter('ggggino_skuskucart.templates.done_layout') ) {
139
+        if ($this->container->hasParameter('ggggino_skuskucart.templates.done_layout')) {
140 140
             return $this->render($this->container->getParameter('ggggino_skuskucart.templates.done_layout'), array(
141 141
                 'status' => $status,
142 142
                 'payment' => $payment
Please login to merge, or discard this patch.