Completed
Push — master ( 138e29...323acf )
by Mario
03:13
created
Controllers/Frontend/PaymentKlarna.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     public function showIframeAction()
131 131
     {
132 132
         $this->basket = $this->get('modules')->Basket()->sGetBasket();
133
-         $preFill = $this->config['preFillCheckout'];
133
+            $preFill = $this->config['preFillCheckout'];
134 134
         if ($this->isUserLoggedIn()) {
135 135
             $user = Shopware()->Modules()->Admin()->sGetUserData();
136 136
         }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
         // Klarna Prefill checkBox
291 291
         if ($this->isUserLoggedIn()) {
292
-               $this->View()->assign('KlarnaPreFillSelect', !$this->session['klarnaPreFill']);
292
+                $this->View()->assign('KlarnaPreFillSelect', !$this->session['klarnaPreFill']);
293 293
         }
294 294
 
295 295
         // Iframe Backend Config
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
             $plainbilling['birthday'] = null;
874 874
         } else {
875 875
             $plainbilling['birthday'] = new \DateTime(
876
-               $plainbilling['birthyear'] . '-' .
876
+                $plainbilling['birthyear'] . '-' .
877 877
                     $plainbilling['birthmonth'] . '-' .
878 878
                     $plainbilling['birthday']);
879 879
         }
@@ -944,12 +944,12 @@  discard block
 block discarded – undo
944 944
     }
945 945
 
946 946
 
947
-     /**
948
-     * Updates the shipping address
949
-     *
950
-     * @param int $userId
951
-     * @param array $shippingData
952
-     */
947
+        /**
948
+         * Updates the shipping address
949
+         *
950
+         * @param int $userId
951
+         * @param array $shippingData
952
+         */
953 953
     private function updateShipping($userId, $shippingData)
954 954
     {
955 955
         /** @var \Shopware\Components\Model\ModelManager $em */
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
         $addressBefore = $customer->getDefaultShippingAddress();
963 963
         $address = new \Shopware\Models\Customer\Address();
964 964
         
965
-         /** @var \Shopware\Models\Country\Country $country */
965
+            /** @var \Shopware\Models\Country\Country $country */
966 966
         $country = $addressBefore->getCountry();
967 967
         $shippingData['country'] = $country;
968 968
         if ($shippingData['phone'] === null) {
@@ -1026,7 +1026,7 @@  discard block
 block discarded – undo
1026 1026
         /** @var \Shopware\Models\Customer\Address $address */
1027 1027
         $address = $customer->getDefaultBillingAddress();
1028 1028
         
1029
-         /** @var \Shopware\Models\Country\Country $country */
1029
+            /** @var \Shopware\Models\Country\Country $country */
1030 1030
         $country = $address->getCountry();
1031 1031
         $billingData['country'] = $country;
1032 1032
         $address->fromArray($billingData);
@@ -1602,7 +1602,7 @@  discard block
 block discarded – undo
1602 1602
      */
1603 1603
     protected function isUserLoggedIn()
1604 1604
     {
1605
-         return (isset($this->session->sUserId) && !empty($this->session->sUserId));
1605
+            return (isset($this->session->sUserId) && !empty($this->session->sUserId));
1606 1606
     }
1607 1607
 
1608 1608
     /**
Please login to merge, or discard this patch.