Test Failed
Branch master (c17565)
by David
06:36
created
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.
Tests/TestKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      */
100 100
     public function registerContainerConfiguration(LoaderInterface $loader)
101 101
     {
102
-        $loader->load(__DIR__ . '/app/config/config.yml');
102
+        $loader->load(__DIR__.'/app/config/config.yml');
103 103
     }
104 104
 
105 105
     public function serialize()
Please login to merge, or discard this patch.
Model/SkuskuCartProductBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,5 +100,5 @@
 block discarded – undo
100 100
         return $this->getProduct()->getPrice() * $this->quantity;
101 101
     }
102 102
 
103
-    public function getProductAttribute(){}
103
+    public function getProductAttribute() {}
104 104
 }
Please login to merge, or discard this patch.
Exception/CurrencyNotFoundException.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
      */
13 13
     public function __construct($message = "", $code = 0, \Exception $previous = null)
14 14
     {
15
-        if( !empty($message) )
16
-            $message = ": " . $message;
15
+        if (!empty($message))
16
+            $message = ": ".$message;
17 17
 
18 18
         $finalMessage = sprintf("Currency not found, maybe the db table is empty%s", $message);
19 19
         parent::__construct($finalMessage, $code, $previous);
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,9 @@
 block discarded – undo
12 12
      */
13 13
     public function __construct($message = "", $code = 0, \Exception $previous = null)
14 14
     {
15
-        if( !empty($message) )
16
-            $message = ": " . $message;
15
+        if( !empty($message) ) {
16
+                    $message = ": " . $message;
17
+        }
17 18
 
18 19
         $finalMessage = sprintf("Currency not found, maybe the db table is empty%s", $message);
19 20
         parent::__construct($finalMessage, $code, $previous);
Please login to merge, or discard this patch.
Twig/CartExtension.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function renderPreviewCart($template = null)
100 100
     {
101
-        if( !$template )
101
+        if (!$template)
102 102
             $template = $this->templatePreviewCart;
103 103
 
104 104
         /** @var SkuskuCart $cart */
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function renderCurrencyCart($template = null)
119 119
     {
120
-        if( !$template )
120
+        if (!$template)
121 121
             $template = $this->templateCurrencyCart;
122 122
 
123 123
         /** @var SkuskuCurrencyInterface[] $currencies */
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function renderLangCart($template = null)
139 139
     {
140
-        if( !$template )
140
+        if (!$template)
141 141
             $template = $this->templateLangCart;
142 142
 
143 143
         /** @var SkuskuLangInterface[] $languages */
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,8 +98,9 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function renderPreviewCart($template = null)
100 100
     {
101
-        if( !$template )
102
-            $template = $this->templatePreviewCart;
101
+        if( !$template ) {
102
+                    $template = $this->templatePreviewCart;
103
+        }
103 104
 
104 105
         /** @var SkuskuCart $cart */
105 106
         $cart = $this->cartManager->getCartFromCustomer();
@@ -117,8 +118,9 @@  discard block
 block discarded – undo
117 118
      */
118 119
     public function renderCurrencyCart($template = null)
119 120
     {
120
-        if( !$template )
121
-            $template = $this->templateCurrencyCart;
121
+        if( !$template ) {
122
+                    $template = $this->templateCurrencyCart;
123
+        }
122 124
 
123 125
         /** @var SkuskuCurrencyInterface[] $currencies */
124 126
         $currencies = $this->currencyManager->getActiveCurrencies();
@@ -137,8 +139,9 @@  discard block
 block discarded – undo
137 139
      */
138 140
     public function renderLangCart($template = null)
139 141
     {
140
-        if( !$template )
141
-            $template = $this->templateLangCart;
142
+        if( !$template ) {
143
+                    $template = $this->templateLangCart;
144
+        }
142 145
 
143 146
         /** @var SkuskuLangInterface[] $languages */
144 147
         $languages = $this->langManager->getActiveLanguages();
Please login to merge, or discard this patch.