Completed
Pull Request — master (#22)
by Lars
25:44 queued 10:42
created
src/Intraface/Controller/RetrievePassword.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $this->document->setTitle('Retrieve forgotten password');
33 33
 
34
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/retrievepassword');
34
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/retrievepassword');
35 35
         return $smarty->render($this);
36 36
     }
37 37
 
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
         $new_password = Intraface_User::generateNewPassword($this->body('email'));
41 41
 
42 42
         $body  = "Huha, det var heldigt, at vi stod på spring i kulissen, så vi kan hjælpe dig med at lave en ny adgangskode.\n\n";
43
-        $body .= "Din nye adgangskode er: " . $new_password . "\n\n";
43
+        $body .= "Din nye adgangskode er: ".$new_password."\n\n";
44 44
         $body .= "Du kan logge ind fra:\n\n";
45
-        $body .= "<".PATH_WWW . 'login'.">\n\n";
45
+        $body .= "<".PATH_WWW.'login'.">\n\n";
46 46
         $body .= "Med venlig hilsen\nDin hengivne webserver";
47 47
 
48 48
         $this->email
Please login to merge, or discard this patch.
src/Intraface/Controller/SwitchIntranet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@
 block discarded – undo
34 34
             }
35 35
         }
36 36
 
37
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/switchintranet');
37
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/switchintranet');
38 38
         return $smarty->render($this);
39 39
     }
40 40
 
41 41
     function getIntranets()
42 42
     {
43
-        $this->db->query("SELECT DISTINCT(intranet.id), name FROM intranet INNER JOIN permission ON permission.intranet_id = intranet.id WHERE permission.user_id = " . $this->getKernel()->user->getId() . " ORDER BY name");
43
+        $this->db->query("SELECT DISTINCT(intranet.id), name FROM intranet INNER JOIN permission ON permission.intranet_id = intranet.id WHERE permission.user_id = ".$this->getKernel()->user->getId()." ORDER BY name");
44 44
         $accessible_intranets = array();
45 45
         while ($this->db->nextRecord()) {
46 46
             $accessible_intranets[$this->db->f('id')] = $this->db->f('name');
Please login to merge, or discard this patch.
src/Intraface/Controller/Restricted.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             }
74 74
 
75 75
             foreach ($frontpage_files as $file) {
76
-                $file = PATH_INCLUDE_MODULE . $module->getName() . '/' .$file;
76
+                $file = PATH_INCLUDE_MODULE.$module->getName().'/'.$file;
77 77
                 if (file_exists($file)) {
78 78
                     include($file);
79 79
                 }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             '_advice' => $_advice
96 96
         );
97 97
 
98
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/restricted');
98
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/restricted');
99 99
         return $smarty->render($this, $data);
100 100
     }
101 101
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             $this->document->setTitle('Intraface.dk');
106 106
         }
107 107
 
108
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/main');
108
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/main');
109 109
         $content = $tpl->render($this, array('content' => $content));
110 110
         return new k_HttpResponse(200, $content);
111 111
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         while ($this->db->nextRecord()) {
183 183
             if ($this->getKernel()->user->hasModuleAccess($this->db->f('name'))) {
184 184
                 $this->menu[$i]['name'] = $this->t($this->db->f('name'));
185
-                $this->menu[$i]['url'] = $this->url('/restricted/module/' . $this->db->f("name"));
185
+                $this->menu[$i]['url'] = $this->url('/restricted/module/'.$this->db->f("name"));
186 186
                 $i++;
187 187
             }
188 188
         }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
                     if ($access) {
225 225
                         $this->submenu[$j]['name'] = $this->t($all_submenu[$i]['label']);
226
-                        $this->submenu[$j]['url'] = $this->primary_module->getPath(). $all_submenu[$i]['url'];
226
+                        $this->submenu[$j]['url'] = $this->primary_module->getPath().$all_submenu[$i]['url'];
227 227
                         $j++;
228 228
                     }
229 229
                 }
Please login to merge, or discard this patch.
src/Intraface/Controller/Login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     function renderHtml()
32 32
     {
33 33
         $this->document->setTitle('Login');
34
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/login');
34
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/login');
35 35
         return $smarty->render($this);
36 36
     }
37 37
 
Please login to merge, or discard this patch.
src/Intraface/Doctrine/ErrorRender.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,8 @@
 block discarded – undo
25 25
             foreach ($errorstack['errorstack'] as $field_name => $error_codes) {
26 26
                 $display .= '<li>';
27 27
                 $display .= $this->translate('There was an error in', 'common').' ';
28
-                $display .= ( isset($errorstack['field_alias'][$field_name]) ?
29
-                            $errorstack['field_alias'][$field_name] :
30
-                            $field_name);
28
+                $display .= (isset($errorstack['field_alias'][$field_name]) ?
29
+                            $errorstack['field_alias'][$field_name] : $field_name);
31 30
 
32 31
                 foreach ($error_codes as $error_code) {
33 32
                     $description = $this->getErrorDescription($error_code);
Please login to merge, or discard this patch.
src/Intraface/Setting.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         global $_setting;
55 55
 
56
-        require_once dirname(__FILE__) . '/config/setting_kernel.php';
56
+        require_once dirname(__FILE__).'/config/setting_kernel.php';
57 57
 
58 58
         $this->db = new DB_Sql;
59 59
         $this->system = &$_setting; // don't remove the & - otherwise it will not work
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     private function loadSettings()
171 171
     {
172 172
         $this->settings = array();
173
-        $this->db->query("SELECT setting, value, sub_id, user_id FROM setting WHERE intranet_id = " . $this->db->quote($this->intranet_id, 'integer')." AND (user_id = ".$this->db->quote($this->user_id, 'integer')." OR user_id = 0)");
173
+        $this->db->query("SELECT setting, value, sub_id, user_id FROM setting WHERE intranet_id = ".$this->db->quote($this->intranet_id, 'integer')." AND (user_id = ".$this->db->quote($this->user_id, 'integer')." OR user_id = 0)");
174 174
         while ($this->db->nextRecord()) {
175 175
             $this->settings[$this->intranet_id][$this->db->f('user_id')][$this->db->f('setting')][$this->db->f('sub_id')] = $this->db->f('value');
176 176
         }
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -57,34 +57,34 @@  discard block
 block discarded – undo
57 57
 
58 58
 
59 59
         // sublevel has to be used so other searches are not overwritten
60
-        $product->getDBQuery()->storeResult('use_stored', 'webshop_' . $area . '_' .  md5($this->credentials['session_id']), 'sublevel');
60
+        $product->getDBQuery()->storeResult('use_stored', 'webshop_'.$area.'_'.md5($this->credentials['session_id']), 'sublevel');
61 61
         $debug2 = serialize($mixed);
62 62
         if (isset($mixed['offset']) and array_key_exists('offset', $mixed) and is_numeric($mixed['offset'])) {
63 63
             $product->getDBQuery()->useStored(true);
64 64
             $product->getDBQuery()->setPagingOffset((int)$mixed['offset']);
65
-            $debug2 .= 'offset ' . $mixed['offset'];
65
+            $debug2 .= 'offset '.$mixed['offset'];
66 66
         } elseif (isset($mixed['use_stored']) and array_key_exists('use_stored', $mixed) and $mixed['use_stored'] == 'true') {
67 67
             $product->getDBQuery()->useStored(true);
68 68
             $debug2 .= 'use_stored true';
69 69
         } else {
70 70
             if (isset($mixed['search']) and array_key_exists('search', $mixed) and !empty($mixed['search'])) {
71 71
                 $product->getDBQuery()->setFilter('search', $mixed['search']);
72
-                $debug2 .= 'search ' . $mixed['search'];
72
+                $debug2 .= 'search '.$mixed['search'];
73 73
             }
74 74
 
75 75
             if (isset($mixed['keywords']) and array_key_exists('keywords', $mixed) and !empty($mixed['keywords'])) {
76 76
                 $product->getDBQuery()->setFilter('keywords', $mixed['keywords']);
77
-                $debug2 .= 'keyword ' . $mixed['keywords'];
77
+                $debug2 .= 'keyword '.$mixed['keywords'];
78 78
             }
79 79
 
80 80
             if (isset($mixed['ids']) and array_key_exists('ids', $mixed) and is_array($mixed['ids'])) {
81 81
                 $product->getDBQuery()->setFilter('ids', $mixed['ids']);
82
-                $debug2 .= 'ids ' . implode(', ', $mixed['ids']);
82
+                $debug2 .= 'ids '.implode(', ', $mixed['ids']);
83 83
             }
84 84
 
85 85
             if (isset($mixed['sorting']) and array_key_exists('sorting', $mixed) and !empty($mixed['sorting'])) {
86 86
                 $product->getDBQuery()->setFilter('sorting', $mixed['sorting']);
87
-                $debug2 .= 'sorting ' . $mixed['sorting'];
87
+                $debug2 .= 'sorting '.$mixed['sorting'];
88 88
             }
89 89
         }
90 90
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
         if (PEAR::isError($db)) {
178 178
             require_once 'XML/RPC2/Exception.php';
179
-            throw new XML_RPC2_FaultException($db->getMessage() . $db->getUserInfo(), -1);
179
+            throw new XML_RPC2_FaultException($db->getMessage().$db->getUserInfo(), -1);
180 180
         }
181 181
 
182 182
         $featured = new Intraface_Webshop_FeaturedProducts($this->kernel->intranet, $db);
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 
348 348
         if (!$order_id = $this->webshop->placeOrder($values)) {
349 349
             require_once 'XML/RPC2/Exception.php';
350
-            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
350
+            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
351 351
         }
352 352
 
353 353
         return $order_id;
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 
385 385
         if (!$payment_id = $onlinepayment->save($values)) {
386 386
             require_once 'XML/RPC2/Exception.php';
387
-            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
387
+            throw new XML_RPC2_FaultException('Onlinebetaling kunne ikke blive gemt'.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
388 388
         }
389 389
 
390 390
         return $payment_id;
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
         if (!$payment_id = $onlinepayment->create()) {
417 417
             require_once 'XML/RPC2/Exception.php';
418
-            throw new XML_RPC2_FaultException('onlinepayment could not be created' . strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
418
+            throw new XML_RPC2_FaultException('onlinepayment could not be created'.strtolower(implode(', ', $onlinepayment->error->getMessage())), -4);
419 419
         }
420 420
 
421 421
         return $payment_id;
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
         if (!$this->webshop->basket->saveAddress($values)) {
446 446
             require_once 'XML/RPC2/Exception.php';
447
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
447
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
448 448
         }
449 449
 
450 450
         return true;
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
         $customer_coupon = $this->utf8Decode($customer_coupon);
484 484
         if (!$this->webshop->basket->saveCustomerCoupon($customer_coupon)) {
485 485
             require_once 'XML/RPC2/Exception.php';
486
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
486
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
487 487
         }
488 488
 
489 489
         return true;
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
         $customer_ean = $this->utf8Decode($customer_ean);
524 524
         if (!$this->webshop->basket->saveCustomerEan($customer_ean)) {
525 525
             require_once 'XML/RPC2/Exception.php';
526
-            throw new XML_RPC2_FaultException('ean could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
526
+            throw new XML_RPC2_FaultException('ean could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
527 527
         }
528 528
 
529 529
         return true;
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
         $customer_comment = $this->utf8Decode($customer_comment);
564 564
         if (!$this->webshop->basket->saveCustomerComment($customer_comment)) {
565 565
             require_once 'XML/RPC2/Exception.php';
566
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
566
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
567 567
         }
568 568
 
569 569
         return true;
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 
616 616
         if (count($credentials) != 2) { // -4
617 617
             require_once 'XML/RPC2/Exception.php';
618
-            throw new XML_RPC2_FaultException('wrong argument count in $credentials - got ' . count($credentials) . ' arguments - need 2', -4);
618
+            throw new XML_RPC2_FaultException('wrong argument count in $credentials - got '.count($credentials).' arguments - need 2', -4);
619 619
         }
620 620
         if (empty($credentials['private_key'])) { // -5
621 621
             require_once 'XML/RPC2/Exception.php';
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server0100.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -74,40 +74,40 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         // sublevel has to be used so other searches are not overwritten
77
-        $product->getDBQuery()->storeResult('use_stored', 'webshop_' . $area . '_' .  md5($this->credentials['session_id']), 'sublevel');
77
+        $product->getDBQuery()->storeResult('use_stored', 'webshop_'.$area.'_'.md5($this->credentials['session_id']), 'sublevel');
78 78
         $debug2 = serialize($mixed);
79 79
         if (isset($mixed['offset']) and is_numeric($mixed['offset']) and $mixed['offset'] > 0) {
80 80
             $product->getDBQuery()->useStored(true);
81 81
             $product->getDBQuery()->setPagingOffset((int)$mixed['offset']);
82
-            $debug2 .= 'offset ' . $mixed['offset'];
82
+            $debug2 .= 'offset '.$mixed['offset'];
83 83
         } elseif (isset($mixed['use_stored']) and array_key_exists('use_stored', $mixed) and $mixed['use_stored'] == 'true') {
84 84
             $product->getDBQuery()->useStored(true);
85 85
             $debug2 .= 'use_stored true';
86 86
         } else {
87 87
             if (array_key_exists('search', $mixed) and !empty($mixed['search'])) {
88 88
                 $product->getDBQuery()->setFilter('search', $mixed['search']);
89
-                $debug2 .= 'search ' . $mixed['search'];
89
+                $debug2 .= 'search '.$mixed['search'];
90 90
             }
91 91
 
92 92
             if (array_key_exists('keywords', $mixed) and !empty($mixed['keywords'])) {
93 93
                 $product->getDBQuery()->setFilter('keywords', $mixed['keywords']);
94
-                $debug2 .= 'keyword ' . $mixed['keywords'];
94
+                $debug2 .= 'keyword '.$mixed['keywords'];
95 95
             }
96 96
 
97 97
             if (array_key_exists('category', $mixed) and !empty($mixed['category'])) {
98 98
                 $product->getDBQuery()->setFilter('shop_id', $shop_id);
99 99
                 $product->getDBQuery()->setFilter('category', $mixed['category']);
100
-                $debug2 .= 'category ' . $mixed['category'];
100
+                $debug2 .= 'category '.$mixed['category'];
101 101
             }
102 102
 
103 103
             if (isset($mixed['ids']) and array_key_exists('ids', $mixed) and is_array($mixed['ids'])) {
104 104
                 $product->getDBQuery()->setFilter('ids', $mixed['ids']);
105
-                $debug2 .= 'ids ' . implode(', ', $mixed['ids']);
105
+                $debug2 .= 'ids '.implode(', ', $mixed['ids']);
106 106
             }
107 107
 
108 108
             if (array_key_exists('sorting', $mixed) and !empty($mixed['sorting'])) {
109 109
                 $product->getDBQuery()->setFilter('sorting', $mixed['sorting']);
110
-                $debug2 .= 'sorting ' . $mixed['sorting'];
110
+                $debug2 .= 'sorting '.$mixed['sorting'];
111 111
             }
112 112
         }
113 113
 
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 
614 614
         if (PEAR::isError($db)) {
615 615
             require_once 'XML/RPC2/Exception.php';
616
-            throw new XML_RPC2_FaultException($db->getMessage() . $db->getUserInfo(), -1);
616
+            throw new XML_RPC2_FaultException($db->getMessage().$db->getUserInfo(), -1);
617 617
         }
618 618
 
619 619
         $featured = new Intraface_modules_shop_FeaturedProducts($this->kernel->intranet, $this->webshop->getShop(), $db);
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
 
879 879
         if (!$order_id = $this->webshop->placeOrder($values)) {
880 880
             require_once 'XML/RPC2/Exception.php';
881
-            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
881
+            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
882 882
         }
883 883
 
884 884
         return $this->prepareResponseData($this->webshop->getOrderIdentifierKey());
@@ -908,7 +908,7 @@  discard block
 block discarded – undo
908 908
 
909 909
         if (!$this->webshop->getBasket()->saveAddress($values)) {
910 910
             require_once 'XML/RPC2/Exception.php';
911
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
911
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
912 912
         }
913 913
 
914 914
         return $this->prepareResponseData(true);
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
         $customer_coupon = $this->processRequestData($customer_coupon);
950 950
         if (!$this->webshop->getBasket()->saveCustomerCoupon($customer_coupon)) {
951 951
             require_once 'XML/RPC2/Exception.php';
952
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
952
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
953 953
         }
954 954
 
955 955
         return $this->prepareResponseData(true);
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
         $customer_ean = $this->processRequestData($customer_ean);
991 991
         if (!$this->webshop->getBasket()->saveCustomerEan($customer_ean)) {
992 992
             require_once 'XML/RPC2/Exception.php';
993
-            throw new XML_RPC2_FaultException('ean could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
993
+            throw new XML_RPC2_FaultException('ean could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
994 994
         }
995 995
 
996 996
         return $this->prepareResponseData(true);
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
         $customer_comment = $this->processRequestData($customer_comment);
1033 1033
         if (!$this->webshop->getBasket()->saveCustomerComment($customer_comment)) {
1034 1034
             require_once 'XML/RPC2/Exception.php';
1035
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1035
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1036 1036
         }
1037 1037
 
1038 1038
         return $this->prepareResponseData(true);
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
         $payment_method = $this->processRequestData($payment_method);
1092 1092
         if (!$this->webshop->getBasket()->savePaymentMethod($payment_method)) {
1093 1093
             require_once 'XML/RPC2/Exception.php';
1094
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1094
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1095 1095
         }
1096 1096
 
1097 1097
         return $this->prepareResponseData(true);
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server2.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -60,40 +60,40 @@  discard block
 block discarded – undo
60 60
 
61 61
 
62 62
         // sublevel has to be used so other searches are not overwritten
63
-        $product->getDBQuery()->storeResult('use_stored', 'webshop_' . $area . '_' .  md5($this->credentials['session_id']), 'sublevel');
63
+        $product->getDBQuery()->storeResult('use_stored', 'webshop_'.$area.'_'.md5($this->credentials['session_id']), 'sublevel');
64 64
         $debug2 = serialize($mixed);
65 65
         if (isset($mixed['offset']) and array_key_exists('offset', $mixed) and is_numeric($mixed['offset'])) {
66 66
             $product->getDBQuery()->useStored(true);
67 67
             $product->getDBQuery()->setPagingOffset((int)$mixed['offset']);
68
-            $debug2 .= 'offset ' . $mixed['offset'];
68
+            $debug2 .= 'offset '.$mixed['offset'];
69 69
         } elseif (isset($mixed['use_stored']) and array_key_exists('use_stored', $mixed) and $mixed['use_stored'] == 'true') {
70 70
             $product->getDBQuery()->useStored(true);
71 71
             $debug2 .= 'use_stored true';
72 72
         } else {
73 73
             if (array_key_exists('search', $mixed) and !empty($mixed['search'])) {
74 74
                 $product->getDBQuery()->setFilter('search', $mixed['search']);
75
-                $debug2 .= 'search ' . $mixed['search'];
75
+                $debug2 .= 'search '.$mixed['search'];
76 76
             }
77 77
 
78 78
             if (array_key_exists('keywords', $mixed) and !empty($mixed['keywords'])) {
79 79
                 $product->getDBQuery()->setFilter('keywords', $mixed['keywords']);
80
-                $debug2 .= 'keyword ' . $mixed['keywords'];
80
+                $debug2 .= 'keyword '.$mixed['keywords'];
81 81
             }
82 82
 
83 83
             if (array_key_exists('category', $mixed) and !empty($mixed['category'])) {
84 84
                 $product->getDBQuery()->setFilter('shop_id', $shop_id);
85 85
                 $product->getDBQuery()->setFilter('category', $mixed['category']);
86
-                $debug2 .= 'category ' . $mixed['category'];
86
+                $debug2 .= 'category '.$mixed['category'];
87 87
             }
88 88
 
89 89
             if (isset($mixed['ids']) and array_key_exists('ids', $mixed) and is_array($mixed['ids'])) {
90 90
                 $product->getDBQuery()->setFilter('ids', $mixed['ids']);
91
-                $debug2 .= 'ids ' . implode(', ', $mixed['ids']);
91
+                $debug2 .= 'ids '.implode(', ', $mixed['ids']);
92 92
             }
93 93
 
94 94
             if (array_key_exists('sorting', $mixed) and !empty($mixed['sorting'])) {
95 95
                 $product->getDBQuery()->setFilter('sorting', $mixed['sorting']);
96
-                $debug2 .= 'sorting ' . $mixed['sorting'];
96
+                $debug2 .= 'sorting '.$mixed['sorting'];
97 97
             }
98 98
         }
99 99
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                         'name' => $variation->getName(),
197 197
                         'attributes' => $attributes_array,
198 198
                         'identifier' => $attribute_string,
199
-                        'price_incl_vat' => round(($product->get('price') + $detail->getPriceDifference()) * (1 + $product->get('vat_percent')/100), 2),
199
+                        'price_incl_vat' => round(($product->get('price') + $detail->getPriceDifference())*(1 + $product->get('vat_percent')/100), 2),
200 200
                         'weight' => $product->get('weight') + $detail->getWeightDifference()
201 201
                     ),
202 202
                     'stock' => $variation->getStock($product)->get()
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         if (PEAR::isError($db)) {
258 258
             require_once 'XML/RPC2/Exception.php';
259
-            throw new XML_RPC2_FaultException($db->getMessage() . $db->getUserInfo(), -1);
259
+            throw new XML_RPC2_FaultException($db->getMessage().$db->getUserInfo(), -1);
260 260
         }
261 261
 
262 262
         $featured = new Intraface_modules_shop_FeaturedProducts($this->kernel->intranet, $this->webshop->getShop(), $db);
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 
460 460
         if (!$order_id = $this->webshop->placeOrder($values)) {
461 461
             require_once 'XML/RPC2/Exception.php';
462
-            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
462
+            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
463 463
         }
464 464
 
465 465
         return $this->prepareResponseData($this->webshop->getOrderIdentifierKey());
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 
490 490
         if (!$this->webshop->getBasket()->saveAddress($values)) {
491 491
             require_once 'XML/RPC2/Exception.php';
492
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
492
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
493 493
         }
494 494
 
495 495
         return $this->prepareResponseData(true);
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
         $customer_coupon = $this->processRequestData($customer_coupon);
531 531
         if (!$this->webshop->getBasket()->saveCustomerCoupon($customer_coupon)) {
532 532
             require_once 'XML/RPC2/Exception.php';
533
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
533
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
534 534
         }
535 535
 
536 536
         return $this->prepareResponseData(true);
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
         $customer_ean = $this->processRequestData($customer_ean);
572 572
         if (!$this->webshop->getBasket()->saveCustomerEan($customer_ean)) {
573 573
             require_once 'XML/RPC2/Exception.php';
574
-            throw new XML_RPC2_FaultException('ean could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
574
+            throw new XML_RPC2_FaultException('ean could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
575 575
         }
576 576
 
577 577
         return $this->prepareResponseData(true);
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
         $customer_comment = $this->processRequestData($customer_comment);
614 614
         if (!$this->webshop->getBasket()->saveCustomerComment($customer_comment)) {
615 615
             require_once 'XML/RPC2/Exception.php';
616
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
616
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
617 617
         }
618 618
 
619 619
         return $this->prepareResponseData(true);
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
         $payment_method = $this->processRequestData($payment_method);
673 673
         if (!$this->webshop->getBasket()->savePaymentMethod($payment_method)) {
674 674
             require_once 'XML/RPC2/Exception.php';
675
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
675
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
676 676
         }
677 677
 
678 678
         return $this->prepareResponseData(true);
Please login to merge, or discard this patch.