Test Failed
Push — master ( dea459...15b84c )
by David
06:38
created
Controller/CartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $response = $flow->handleSubmit($form, $formData);
59 59
 
60
-        if( $response instanceof RedirectResponse ){
60
+        if ($response instanceof RedirectResponse) {
61 61
             return $response;
62 62
         }
63 63
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         $flow->handleDone($payment, $status);
121 121
 
122
-        if( $this->container->hasParameter('ggggino_skuskucart.templates.done_layout') ) {
122
+        if ($this->container->hasParameter('ggggino_skuskucart.templates.done_layout')) {
123 123
             return $this->render($this->container->getParameter('ggggino_skuskucart.templates.done_layout'), array(
124 124
                 'status' => $status,
125 125
                 'payment' => $payment
Please login to merge, or discard this patch.
Controller/ProductController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             ->findAll();
36 36
 
37 37
         /** @var SkuskuProductInterface $product */
38
-        foreach($products as $product) {
38
+        foreach ($products as $product) {
39 39
             /** @var Form $addToCartForm */
40 40
             $addToCartForm = $this->createForm(AddToCartType::class, array(
41 41
                 'idProduct' => $product->getId()
Please login to merge, or discard this patch.
Service/SkuskuHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $resultArray = array();
42 42
 
43
-        foreach($this->getAbstractEntities() as $key => $value){
43
+        foreach ($this->getAbstractEntities() as $key => $value) {
44 44
             $resultArray[] = array(
45 45
                 'interface' => $key,
46 46
                 'concrete' => $value
Please login to merge, or discard this patch.
Service/CurrencyManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         /** @var SkuskuCurrencyInterface $locale */
66 66
         $locale = $this->em->getRepository(SkuskuCurrencyInterface::class)->findOneByIsoCode($currencyIdentifier);
67 67
 
68
-        if( !$locale )
68
+        if (!$locale)
69 69
             throw new CurrencyNotFoundException();
70 70
 
71 71
         return $locale;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,9 @@
 block discarded – undo
65 65
         /** @var SkuskuCurrencyInterface $locale */
66 66
         $locale = $this->em->getRepository(SkuskuCurrencyInterface::class)->findOneByIsoCode($currencyIdentifier);
67 67
 
68
-        if( !$locale )
69
-            throw new CurrencyNotFoundException();
68
+        if( !$locale ) {
69
+                    throw new CurrencyNotFoundException();
70
+        }
70 71
 
71 72
         return $locale;
72 73
     }
Please login to merge, or discard this patch.
DependencyInjection/GGGGinoSkuskuCartExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 
32 32
         $container->setParameter('ggggino_skuskucart.stepform_class', $config['stepform_class']);
33 33
 
34
-        foreach($config['templates'] as $key => $template) {
35
-            $container->setParameter('ggggino_skuskucart.templates.' . $key, $template);
34
+        foreach ($config['templates'] as $key => $template) {
35
+            $container->setParameter('ggggino_skuskucart.templates.'.$key, $template);
36 36
         }
37 37
 
38 38
         $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function prependPayumGateway(ContainerBuilder $container)
97 97
     {
98
-        if( !$container->hasExtension('payum') ){
98
+        if (!$container->hasExtension('payum')) {
99 99
             die('non ce payum');
100 100
         }
101 101
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $arrayEntities = $arrayEntities['gateways'];
111 111
         $finalEntities = array();
112 112
 
113
-        foreach( $arrayEntities as $key => $value ){
113
+        foreach ($arrayEntities as $key => $value) {
114 114
             $labelName = isset($value['name']) ? $value['name'] : $key;
115 115
             $finalEntities[$labelName] = $key;
116 116
         }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/DoctrineRelatedPass.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function process(ContainerBuilder $container)
20 20
     {
21
-        if( !$container->hasDefinition('doctrine.orm.listeners.resolve_target_entity') )
21
+        if (!$container->hasDefinition('doctrine.orm.listeners.resolve_target_entity'))
22 22
             return;
23 23
     }
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
      */
19 19
     public function process(ContainerBuilder $container)
20 20
     {
21
-        if( !$container->hasDefinition('doctrine.orm.listeners.resolve_target_entity') )
22
-            return;
21
+        if( !$container->hasDefinition('doctrine.orm.listeners.resolve_target_entity') ) {
22
+                    return;
23
+        }
23 24
     }
24 25
 }
25 26
\ No newline at end of file
Please login to merge, or discard this patch.
Repository/OrderRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
  */
11 11
 class OrderRepository extends \Doctrine\ORM\EntityRepository
12 12
 {
13
-    public function findByUser(){}
13
+    public function findByUser() {}
14 14
 }
Please login to merge, or discard this patch.
Command/CurrencyCreateCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 
62 62
         // If i make a mistake writing the class this enforce you to chose
63 63
         // @todo now i'm forced to write thee entity namespace wth 2 backslash otherwise it will be removed
64
-        if( !in_array($input->getArgument('entity'), $abstractEntities) ){
65
-            $output->writeln('<error>Entity: ' . $input->getArgument('entity') . ' Not found</error>');
64
+        if (!in_array($input->getArgument('entity'), $abstractEntities)) {
65
+            $output->writeln('<error>Entity: '.$input->getArgument('entity').' Not found</error>');
66 66
             $question = new ChoiceQuestion(
67 67
                 'Please select the entity',
68 68
                 array_keys($abstractEntitiesInverted)
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
 
94 94
         $classReflectedProps = $classReflected->getProperties();
95 95
 
96
-        foreach($classReflectedProps as $key => $value){
97
-            $question = new Question('Set value for (' . $value->name . '): ', false);
96
+        foreach ($classReflectedProps as $key => $value) {
97
+            $question = new Question('Set value for ('.$value->name.'): ', false);
98 98
 
99 99
             $response = $helper->ask($input, $output, $question);
100
-            if( !$response ){
100
+            if (!$response) {
101 101
                 continue;
102 102
             }
103 103
             $propertyAccessor->setValue($entityInstance, $value->name, $response);
Please login to merge, or discard this patch.
Command/DoctorDbCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@
 block discarded – undo
49 49
         /** @var SkuskuCurrencyInterface[] $Currencies */
50 50
         $currencies = $em->getRepository(SkuskuCurrencyInterface::class)->findAll();
51 51
 
52
-        if( count($currencies) > 0 ) {
52
+        if (count($currencies) > 0) {
53 53
             return 'Currency: <info> correct</info>';
54
-        }else{
54
+        } else {
55 55
             return 'Currency: <error>not correct</error>';
56 56
         }
57 57
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         if( count($currencies) > 0 ) {
53 53
             return 'Currency: <info> correct</info>';
54
-        }else{
54
+        } else{
55 55
             return 'Currency: <error>not correct</error>';
56 56
         }
57 57
     }
Please login to merge, or discard this patch.