Completed
Branch master (6ed6e7)
by Lars
07:57
created
src/Intraface/XMLRPC/Shop/Server0004.php 4 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -402,8 +402,6 @@  discard block
 block discarded – undo
402 402
      *
403 403
      * @param struct  $credentials Credentials to use the server
404 404
      * @param integer $shop_id    Id for the shop
405
-     * @param integer $id          Product id
406
-     *
407 405
      * @return array
408 406
      */
409 407
     public function getRelatedProducts($credentials, $shop_id, $product_id)
@@ -578,7 +576,7 @@  discard block
 block discarded – undo
578 576
      *
579 577
      * @param struct  $credentials       Credentials to use the server
580 578
      * @param integer $shop_id    Id for the shop
581
-     * @param integer $produt_id         Product id to add
579
+     * @param integer $product_id         Product id to add
582 580
      * @param integer $product_variation_id Product variation id to change
583 581
      * @param integer $quantity          Optional quantity
584 582
      * @param string  $text              Extra text to the itemline
@@ -621,7 +619,7 @@  discard block
 block discarded – undo
621 619
      * @param string  $text              Extra text to the itemline
622 620
      * @param integer $product_detail_id Product detail id
623 621
      *
624
-     * @return mixed
622
+     * @return boolean
625 623
      */
626 624
     public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0)
627 625
     {
@@ -1077,6 +1075,7 @@  discard block
 block discarded – undo
1077 1075
     /**
1078 1076
      * Initialize the webshop
1079 1077
      *
1078
+     * @param integer $shop_id
1080 1079
      * @return void
1081 1080
      */
1082 1081
     private function _factoryWebshop($shop_id)
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
         return $this->prepareResponseData($this->cleanUpProductList($product->getRelatedProducts($currencies, 'webshop')));
430 430
     }
431 431
 
432
-   /**
432
+    /**
433 433
      * Gets featured products
434 434
      *
435 435
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 
481 481
     }
482 482
 
483
-   /**
483
+    /**
484 484
      * Gets product keywords which can be used to sort ones webshop
485 485
      *
486 486
      *
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
                 }
569 569
                 $tmp_filehandler->__destruct();
570 570
                 unset($tmp_filehandler);
571
-           }
571
+            }
572 572
 
573 573
         return $this->prepareResponseData($pictures);
574 574
     }
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -72,40 +72,40 @@  discard block
 block discarded – undo
72 72
         }
73 73
 
74 74
         // sublevel has to be used so other searches are not overwritten
75
-        $product->getDBQuery()->storeResult('use_stored', 'webshop_' . $area . '_' .  md5($this->credentials['session_id']), 'sublevel');
75
+        $product->getDBQuery()->storeResult('use_stored', 'webshop_'.$area.'_'.md5($this->credentials['session_id']), 'sublevel');
76 76
         $debug2 = serialize($mixed);
77 77
         if (isset($mixed['offset']) AND is_numeric($mixed['offset']) AND $mixed['offset'] > 0) {
78 78
             $product->getDBQuery()->useStored(true);
79 79
             $product->getDBQuery()->setPagingOffset((int)$mixed['offset']);
80
-            $debug2 .= 'offset ' . $mixed['offset'];
80
+            $debug2 .= 'offset '.$mixed['offset'];
81 81
         } elseif (isset($mixed['use_stored']) AND array_key_exists('use_stored', $mixed) AND $mixed['use_stored'] == 'true') {
82 82
             $product->getDBQuery()->useStored(true);
83 83
             $debug2 .= 'use_stored true';
84 84
         } else {
85 85
             if (array_key_exists('search', $mixed) AND !empty($mixed['search'])) {
86 86
                 $product->getDBQuery()->setFilter('search', $mixed['search']);
87
-                $debug2 .= 'search ' . $mixed['search'];
87
+                $debug2 .= 'search '.$mixed['search'];
88 88
             }
89 89
 
90 90
             if (array_key_exists('keywords', $mixed) AND !empty($mixed['keywords'])) {
91 91
                 $product->getDBQuery()->setFilter('keywords', $mixed['keywords']);
92
-                $debug2 .= 'keyword ' . $mixed['keywords'];
92
+                $debug2 .= 'keyword '.$mixed['keywords'];
93 93
             }
94 94
 
95 95
             if (array_key_exists('category', $mixed) AND !empty($mixed['category'])) {
96 96
                 $product->getDBQuery()->setFilter('shop_id', $shop_id);
97 97
                 $product->getDBQuery()->setFilter('category', $mixed['category']);
98
-                $debug2 .= 'category ' . $mixed['category'];
98
+                $debug2 .= 'category '.$mixed['category'];
99 99
             }
100 100
 
101 101
             if (isset($mixed['ids']) AND array_key_exists('ids', $mixed) AND is_array($mixed['ids'])) {
102 102
                 $product->getDBQuery()->setFilter('ids', $mixed['ids']);
103
-                $debug2 .= 'ids ' . implode(', ', $mixed['ids']);
103
+                $debug2 .= 'ids '.implode(', ', $mixed['ids']);
104 104
             }
105 105
 
106 106
             if (array_key_exists('sorting', $mixed) AND !empty($mixed['sorting'])) {
107 107
                 $product->getDBQuery()->setFilter('sorting', $mixed['sorting']);
108
-                $debug2 .= 'sorting ' . $mixed['sorting'];
108
+                $debug2 .= 'sorting '.$mixed['sorting'];
109 109
             }
110 110
 
111 111
         }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $search['area'] = 'category_'.$category_id;
143 143
         if ($results_per_page > 0) {
144 144
             $search['use_paging'] = 'true';
145
-        }else {
145
+        } else {
146 146
             $search['use_paging'] = 'false';
147 147
         }
148 148
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 
453 453
         if (PEAR::isError($db)) {
454 454
             require_once 'XML/RPC2/Exception.php';
455
-            throw new XML_RPC2_FaultException($db->getMessage() . $db->getUserInfo(), -1);
455
+            throw new XML_RPC2_FaultException($db->getMessage().$db->getUserInfo(), -1);
456 456
         }
457 457
 
458 458
         $featured = new Intraface_modules_shop_FeaturedProducts($this->kernel->intranet, $this->webshop->getShop(), $db);
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 
717 717
         if (!$order_id = $this->webshop->placeOrder($values)) {
718 718
             require_once 'XML/RPC2/Exception.php';
719
-            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
719
+            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
720 720
         }
721 721
 
722 722
         return $this->prepareResponseData($this->webshop->getOrderIdentifierKey());
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
 
747 747
         if (!$this->webshop->getBasket()->saveAddress($values)) {
748 748
             require_once 'XML/RPC2/Exception.php';
749
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
749
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
750 750
         }
751 751
 
752 752
         return $this->prepareResponseData(true);
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
         $customer_coupon = $this->processRequestData($customer_coupon);
788 788
         if (!$this->webshop->getBasket()->saveCustomerCoupon($customer_coupon)) {
789 789
             require_once 'XML/RPC2/Exception.php';
790
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
790
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
791 791
         }
792 792
 
793 793
         return $this->prepareResponseData(true);
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
         $customer_ean = $this->processRequestData($customer_ean);
829 829
         if (!$this->webshop->getBasket()->saveCustomerEan($customer_ean)) {
830 830
             require_once 'XML/RPC2/Exception.php';
831
-            throw new XML_RPC2_FaultException('ean could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
831
+            throw new XML_RPC2_FaultException('ean could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
832 832
         }
833 833
 
834 834
         return $this->prepareResponseData(true);
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
         $customer_comment = $this->processRequestData($customer_comment);
871 871
         if (!$this->webshop->getBasket()->saveCustomerComment($customer_comment)) {
872 872
             require_once 'XML/RPC2/Exception.php';
873
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
873
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
874 874
         }
875 875
 
876 876
         return $this->prepareResponseData(true);
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
         $payment_method = $this->processRequestData($payment_method);
930 930
         if (!$this->webshop->getBasket()->savePaymentMethod($payment_method)) {
931 931
             require_once 'XML/RPC2/Exception.php';
932
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
932
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
933 933
         }
934 934
 
935 935
         return $this->prepareResponseData(true);
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $search['area'] = 'category_'.$category_id;
143 143
         if ($results_per_page > 0) {
144 144
             $search['use_paging'] = 'true';
145
-        }else {
145
+        } else {
146 146
             $search['use_paging'] = 'false';
147 147
         }
148 148
 
@@ -327,11 +327,15 @@  discard block
 block discarded – undo
327 327
                 $attributes_array = $variation->getAttributesAsArray();
328 328
 
329 329
                 foreach ($attributes_array as $attribute) {
330
-                    if ($attribute_string != '') $attribute_string .= '-';
330
+                    if ($attribute_string != '') {
331
+                        $attribute_string .= '-';
332
+                    }
331 333
                     $attribute_string .= $attribute['id'];
332 334
 
333 335
                     // We calculate all products which is on stock with this attribute to be able to mark unused attributes in list.
334
-                    if (!isset($attribute_for_sale[$attribute['id']])) $attribute_for_sale[$attribute['id']] = 0;
336
+                    if (!isset($attribute_for_sale[$attribute['id']])) {
337
+                        $attribute_for_sale[$attribute['id']] = 0;
338
+                    }
335 339
                     if ($stock !== false) {
336 340
                         // If for_sale is less than zero we add zero.
337 341
                         $attribute_for_sale[$attribute['id']] += (($stock['for_sale'] < 0) ? 0 : $stock['for_sale']);
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server0100.php 4 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -251,7 +251,8 @@  discard block
 block discarded – undo
251 251
     /**
252 252
      * Formats array to return from product list from Doctrine
253 253
      *
254
-     * @param object $doctrine_products Doctrine_Collection
254
+     * @param object $doctrine_products Doctrine_Collection
255
+     * @param integer $attribute_id
255 256
      * @return array with products
256 257
      */
257 258
     private function createDoctrineProductsListArray($doctrine_products, $attribute_id = NULL)
@@ -568,8 +569,6 @@  discard block
 block discarded – undo
568 569
      *
569 570
      * @param struct  $credentials Credentials to use the server
570 571
      * @param integer $shop_id    Id for the shop
571
-     * @param integer $id          Product id
572
-     *
573 572
      * @return array
574 573
      */
575 574
     public function getRelatedProducts($credentials, $shop_id, $product_id)
@@ -743,7 +742,7 @@  discard block
 block discarded – undo
743 742
      *
744 743
      * @param struct  $credentials       Credentials to use the server
745 744
      * @param integer $shop_id    Id for the shop
746
-     * @param integer $produt_id         Product id to add
745
+     * @param integer $product_id         Product id to add
747 746
      * @param integer $product_variation_id Product variation id to change
748 747
      * @param integer $quantity          Optional quantity
749 748
      * @param string  $text              Extra text to the itemline
@@ -786,7 +785,7 @@  discard block
 block discarded – undo
786 785
      * @param string  $text              Extra text to the itemline
787 786
      * @param integer $product_detail_id Product detail id
788 787
      *
789
-     * @return mixed
788
+     * @return boolean
790 789
      */
791 790
     public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0)
792 791
     {
@@ -1240,6 +1239,7 @@  discard block
 block discarded – undo
1240 1239
     /**
1241 1240
      * Initialize the webshop
1242 1241
      *
1242
+     * @param integer $shop_id
1243 1243
      * @return void
1244 1244
      */
1245 1245
     private function _factoryWebshop($shop_id)
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
         return $this->prepareResponseData($this->cleanUpProductList($product->getRelatedProducts($currencies, 'webshop')));
596 596
     }
597 597
 
598
-   /**
598
+    /**
599 599
      * Gets featured products
600 600
      *
601 601
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
 
647 647
     }
648 648
 
649
-   /**
649
+    /**
650 650
      * Gets product keywords which can be used to sort ones webshop
651 651
      *
652 652
      *
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
                 }
734 734
                 //$tmp_filehandler->__destruct();
735 735
                 unset($tmp_filehandler);
736
-           }
736
+            }
737 737
 
738 738
         return $this->prepareResponseData($pictures);
739 739
     }
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 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
         }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $search['area'] = 'category_'.$category_id;
145 145
         if ($results_per_page > 0) {
146 146
             $search['use_paging'] = 'true';
147
-        }else {
147
+        } else {
148 148
             $search['use_paging'] = 'false';
149 149
         }
150 150
 
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
 
619 619
         if (PEAR::isError($db)) {
620 620
             require_once 'XML/RPC2/Exception.php';
621
-            throw new XML_RPC2_FaultException($db->getMessage() . $db->getUserInfo(), -1);
621
+            throw new XML_RPC2_FaultException($db->getMessage().$db->getUserInfo(), -1);
622 622
         }
623 623
 
624 624
         $featured = new Intraface_modules_shop_FeaturedProducts($this->kernel->intranet, $this->webshop->getShop(), $db);
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
 
881 881
         if (!$order_id = $this->webshop->placeOrder($values)) {
882 882
             require_once 'XML/RPC2/Exception.php';
883
-            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
883
+            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
884 884
         }
885 885
 
886 886
         return $this->prepareResponseData($this->webshop->getOrderIdentifierKey());
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
 
911 911
         if (!$this->webshop->getBasket()->saveAddress($values)) {
912 912
             require_once 'XML/RPC2/Exception.php';
913
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
913
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
914 914
         }
915 915
 
916 916
         return $this->prepareResponseData(true);
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
         $customer_coupon = $this->processRequestData($customer_coupon);
952 952
         if (!$this->webshop->getBasket()->saveCustomerCoupon($customer_coupon)) {
953 953
             require_once 'XML/RPC2/Exception.php';
954
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
954
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
955 955
         }
956 956
 
957 957
         return $this->prepareResponseData(true);
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
         $customer_ean = $this->processRequestData($customer_ean);
993 993
         if (!$this->webshop->getBasket()->saveCustomerEan($customer_ean)) {
994 994
             require_once 'XML/RPC2/Exception.php';
995
-            throw new XML_RPC2_FaultException('ean could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
995
+            throw new XML_RPC2_FaultException('ean could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
996 996
         }
997 997
 
998 998
         return $this->prepareResponseData(true);
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
         $customer_comment = $this->processRequestData($customer_comment);
1035 1035
         if (!$this->webshop->getBasket()->saveCustomerComment($customer_comment)) {
1036 1036
             require_once 'XML/RPC2/Exception.php';
1037
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1037
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1038 1038
         }
1039 1039
 
1040 1040
         return $this->prepareResponseData(true);
@@ -1093,7 +1093,7 @@  discard block
 block discarded – undo
1093 1093
         $payment_method = $this->processRequestData($payment_method);
1094 1094
         if (!$this->webshop->getBasket()->savePaymentMethod($payment_method)) {
1095 1095
             require_once 'XML/RPC2/Exception.php';
1096
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1096
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
1097 1097
         }
1098 1098
 
1099 1099
         return $this->prepareResponseData(true);
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $search['area'] = 'category_'.$category_id;
145 145
         if ($results_per_page > 0) {
146 146
             $search['use_paging'] = 'true';
147
-        }else {
147
+        } else {
148 148
             $search['use_paging'] = 'false';
149 149
         }
150 150
 
@@ -493,11 +493,15 @@  discard block
 block discarded – undo
493 493
                 $attributes_array = $variation->getAttributesAsArray();
494 494
 
495 495
                 foreach ($attributes_array as $attribute) {
496
-                    if ($attribute_string != '') $attribute_string .= '-';
496
+                    if ($attribute_string != '') {
497
+                        $attribute_string .= '-';
498
+                    }
497 499
                     $attribute_string .= $attribute['id'];
498 500
 
499 501
                     // We calculate all products which is on stock with this attribute to be able to mark unused attributes in list.
500
-                    if (!isset($attribute_for_sale[$attribute['id']])) $attribute_for_sale[$attribute['id']] = 0;
502
+                    if (!isset($attribute_for_sale[$attribute['id']])) {
503
+                        $attribute_for_sale[$attribute['id']] = 0;
504
+                    }
501 505
                     if ($stock !== false) {
502 506
                         // If for_sale is less than zero we add zero.
503 507
                         $attribute_for_sale[$attribute['id']] += (($stock['for_sale'] < 0) ? 0 : $stock['for_sale']);
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server2.php 4 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -213,8 +213,6 @@  discard block
 block discarded – undo
213 213
      *
214 214
      * @param struct  $credentials Credentials to use the server
215 215
      * @param integer $shop_id    Id for the shop
216
-     * @param integer $id          Product id
217
-     *
218 216
      * @return array
219 217
      */
220 218
     public function getRelatedProducts($credentials, $shop_id, $product_id)
@@ -326,7 +324,7 @@  discard block
 block discarded – undo
326 324
      *
327 325
      * @param struct  $credentials       Credentials to use the server
328 326
      * @param integer $shop_id    Id for the shop
329
-     * @param integer $produt_id         Product id to add
327
+     * @param integer $product_id         Product id to add
330 328
      * @param integer $product_variation_id Product variation id to change
331 329
      * @param integer $quantity          Optional quantity
332 330
      * @param string  $text              Extra text to the itemline
@@ -369,7 +367,7 @@  discard block
 block discarded – undo
369 367
      * @param string  $text              Extra text to the itemline
370 368
      * @param integer $product_detail_id Product detail id
371 369
      *
372
-     * @return mixed
370
+     * @return boolean
373 371
      */
374 372
     public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0)
375 373
     {
@@ -789,6 +787,7 @@  discard block
 block discarded – undo
789 787
     /**
790 788
      * Initialize the webshop
791 789
      *
790
+     * @param integer $shop_id
792 791
      * @return void
793 792
      */
794 793
     private function _factoryWebshop($shop_id)
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         return $this->prepareResponseData($product->getRelatedProducts());
235 235
     }
236 236
 
237
-   /**
237
+    /**
238 238
      * Gets featured products
239 239
      *
240 240
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
     }
281 281
 
282
-   /**
282
+    /**
283 283
      * Gets product keywords which can be used to sort ones webshop
284 284
      *
285 285
      *
Please login to merge, or discard this 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
         }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                         'name' => $variation->getName(),
198 198
                         'attributes' => $attributes_array,
199 199
                         'identifier' => $attribute_string,
200
-                        'price_incl_vat' => round(($product->get('price') + $detail->getPriceDifference()) * (1 + $product->get('vat_percent')/100), 2),
200
+                        'price_incl_vat' => round(($product->get('price') + $detail->getPriceDifference())*(1 + $product->get('vat_percent')/100), 2),
201 201
                         'weight' => $product->get('weight') + $detail->getWeightDifference()
202 202
                     ),
203 203
                     'stock' => $variation->getStock($product)->get()
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
         if (PEAR::isError($db)) {
259 259
             require_once 'XML/RPC2/Exception.php';
260
-            throw new XML_RPC2_FaultException($db->getMessage() . $db->getUserInfo(), -1);
260
+            throw new XML_RPC2_FaultException($db->getMessage().$db->getUserInfo(), -1);
261 261
         }
262 262
 
263 263
         $featured = new Intraface_modules_shop_FeaturedProducts($this->kernel->intranet, $this->webshop->getShop(), $db);
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 
458 458
         if (!$order_id = $this->webshop->placeOrder($values)) {
459 459
             require_once 'XML/RPC2/Exception.php';
460
-            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
460
+            throw new XML_RPC2_FaultException('order could not be placed. It returned the following error: '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
461 461
         }
462 462
 
463 463
         return $this->prepareResponseData($this->webshop->getOrderIdentifierKey());
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 
488 488
         if (!$this->webshop->getBasket()->saveAddress($values)) {
489 489
             require_once 'XML/RPC2/Exception.php';
490
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
490
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
491 491
         }
492 492
 
493 493
         return $this->prepareResponseData(true);
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
         $customer_coupon = $this->processRequestData($customer_coupon);
529 529
         if (!$this->webshop->getBasket()->saveCustomerCoupon($customer_coupon)) {
530 530
             require_once 'XML/RPC2/Exception.php';
531
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
531
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
532 532
         }
533 533
 
534 534
         return $this->prepareResponseData(true);
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
         $customer_ean = $this->processRequestData($customer_ean);
570 570
         if (!$this->webshop->getBasket()->saveCustomerEan($customer_ean)) {
571 571
             require_once 'XML/RPC2/Exception.php';
572
-            throw new XML_RPC2_FaultException('ean could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
572
+            throw new XML_RPC2_FaultException('ean could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
573 573
         }
574 574
 
575 575
         return $this->prepareResponseData(true);
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
         $customer_comment = $this->processRequestData($customer_comment);
612 612
         if (!$this->webshop->getBasket()->saveCustomerComment($customer_comment)) {
613 613
             require_once 'XML/RPC2/Exception.php';
614
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
614
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
615 615
         }
616 616
 
617 617
         return $this->prepareResponseData(true);
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
         $payment_method = $this->processRequestData($payment_method);
671 671
         if (!$this->webshop->getBasket()->savePaymentMethod($payment_method)) {
672 672
             require_once 'XML/RPC2/Exception.php';
673
-            throw new XML_RPC2_FaultException('datails could not be saved ' . strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
673
+            throw new XML_RPC2_FaultException('datails could not be saved '.strtolower(implode(', ', $this->webshop->error->getMessage())), -4);
674 674
         }
675 675
 
676 676
         return $this->prepareResponseData(true);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,9 @@
 block discarded – undo
185 185
                 $attribute_string = '';
186 186
                 $attributes_array = $variation->getAttributesAsArray();
187 187
                 foreach ($attributes_array as $attribute) {
188
-                    if ($attribute_string != '') $attribute_string .= '-';
188
+                    if ($attribute_string != '') {
189
+                        $attribute_string .= '-';
190
+                    }
189 191
                     $attribute_string .= $attribute['id'];
190 192
                 }
191 193
 
Please login to merge, or discard this patch.
install/Helper/Accounting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         require_once 'Intraface/modules/accounting/Year.php';
16 16
         $year = new Year($this->kernel);
17
-        $year->save(array('from_date' => date('Y') . '-01-01', 'to_date' => date('Y') . '-12-31', 'label' => 'test', 'locked' => 0, 'vat' => 1));
17
+        $year->save(array('from_date' => date('Y').'-01-01', 'to_date' => date('Y').'-12-31', 'label' => 'test', 'locked' => 0, 'vat' => 1));
18 18
         $year->createAccounts('standard');
19 19
         $year->setYear();
20 20
     }
Please login to merge, or discard this patch.
install/Helper/Debtor.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function createInvoice()
14 14
     {
15
-        require_once dirname (__FILE__) . '/Contact.php';
15
+        require_once dirname(__FILE__).'/Contact.php';
16 16
         $contact = new Install_Helper_Contact($this->kernel, $this->db);
17 17
         $contact_id = $contact->create();
18 18
 
19
-        require_once dirname(__FILE__) . '/Product.php';
19
+        require_once dirname(__FILE__).'/Product.php';
20 20
         $product = new Install_Helper_Product($this->kernel, $this->db);
21 21
         $product_id = $product->create();
22 22
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             'contact_id' => $contact_id,
27 27
             'description' => 'Test invoice',
28 28
             'this_date' => date('d-m-Y'),
29
-            'due_date' => date('d-m-Y', time()+14*60*60*24)));
29
+            'due_date' => date('d-m-Y', time() + 14*60*60*24)));
30 30
 
31 31
         $debtor->loadItem();
32 32
         $debtor->item->save(array('product_id' => $product_id, 'quantity' => 3, 'description' => 'Test description on product'));
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function createOrder()
36 36
     {
37
-        require_once dirname(__FILE__) . '/Contact.php';
37
+        require_once dirname(__FILE__).'/Contact.php';
38 38
         $contact = new Install_Helper_Contact($this->kernel, $this->db);
39 39
         $contact_id = $contact->create();
40 40
 
41
-        require_once dirname(__FILE__) . '/Product.php';
41
+        require_once dirname(__FILE__).'/Product.php';
42 42
         $product = new Install_Helper_Product($this->kernel, $this->db);
43 43
         $product_id = $product->create();
44 44
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             'contact_id' => $contact_id,
49 49
             'description' => 'Test invoice',
50 50
             'this_date' => date('d-m-Y'),
51
-            'due_date' => date('d-m-Y', time()+14*60*60*24)));
51
+            'due_date' => date('d-m-Y', time() + 14*60*60*24)));
52 52
 
53 53
         $debtor->loadItem();
54 54
         $debtor->item->save(array('product_id' => $product_id, 'quantity' => 3, 'description' => 'Test description on product'));
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function createOrderFromShop()
58 58
     {
59
-        require_once dirname(__FILE__) . '/Contact.php';
59
+        require_once dirname(__FILE__).'/Contact.php';
60 60
         $contact = new Install_Helper_Contact($this->kernel, $this->db);
61 61
         $contact_id = $contact->create();
62 62
 
63
-        require_once dirname(__FILE__) . '/Product.php';
63
+        require_once dirname(__FILE__).'/Product.php';
64 64
         $product = new Install_Helper_Product($this->kernel, $this->db);
65 65
         $product_id = $product->create();
66 66
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             'contact_id' => $contact_id,
71 71
             'description' => 'From shop',
72 72
             'this_date' => date('d-m-Y'),
73
-            'due_date' => date('d-m-Y', time()+14*60*60*24)), 'webshop', 1);
73
+            'due_date' => date('d-m-Y', time() + 14*60*60*24)), 'webshop', 1);
74 74
 
75 75
         $debtor->loadItem();
76 76
         $debtor->item->save(array('product_id' => $product_id, 'quantity' => 3, 'description' => 'Test description on product'));
Please login to merge, or discard this patch.
install/Helper/ModulePackage.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
     public function loadPackages()
20 20
     {
21 21
 
22
-        $sql_structure = file_get_contents(dirname(__FILE__) . '/../database-module_package-values.sql');
22
+        $sql_structure = file_get_contents(dirname(__FILE__).'/../database-module_package-values.sql');
23 23
         $sql_arr = Intraface_Install::splitSql($sql_structure);
24 24
 
25 25
         foreach ($sql_arr as $sql) {
Please login to merge, or discard this patch.
install/Helper/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                 $variation->load();
97 97
                 $detail = $variation->getDetail();
98 98
                 $detail->price_difference = 0; /* Can be reimplemented: ($a1 * $a2); */
99
-                $detail->weight_difference = -1*($a1 * $a2);
99
+                $detail->weight_difference = -1*($a1*$a2);
100 100
                 $detail->save();
101 101
 
102 102
             }
Please login to merge, or discard this patch.
install/Helper/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     public function create()
14 14
     {
15
-        require_once dirname(__FILE__) . '/Contact.php';
15
+        require_once dirname(__FILE__).'/Contact.php';
16 16
         $contact = new Install_Helper_Contact($this->kernel, $this->db);
17 17
         $contact_id = $contact->create();
18 18
 
Please login to merge, or discard this patch.
generate_package_xml.php 3 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
         'packagefile'       => 'package.xml',
58 58
         'ignore'            => $ignore,
59 59
         'dir_roles'        => array(
60
-              'intraface.dk' => 'www'
60
+                'intraface.dk' => 'www'
61 61
         ),
62 62
         'exceptions' => array(
63
-              'intraface.dk/*.*' => 'www'
63
+                'intraface.dk/*.*' => 'www'
64 64
         ),
65 65
         'simpleoutput'      => true,
66 66
         'addhiddenfiles' => true
@@ -221,29 +221,29 @@  discard block
 block discarded – undo
221 221
 $post_install_script = $pfm->initPostinstallScript('intraface.php');
222 222
 $post_install_script->addParamGroup('setup',
223 223
     array($post_install_script->getParam('db_user', 'User', 'string', 'root'),
224
-          $post_install_script->getParam('db_pass', 'Password', 'string', ''),
225
-          $post_install_script->getParam('db_host', 'Host', 'string', 'localhost'),
226
-          $post_install_script->getParam('db_name', 'Database', 'string', 'intraface'),
227
-          $post_install_script->getParam('net_scheme', 'Net scheme', 'string', 'http://'),
228
-          $post_install_script->getParam('net_host', 'Net host', 'string', 'localhost'),
229
-          $post_install_script->getParam('net_directory', 'Net directory', 'string', '/'),
230
-          $post_install_script->getParam('path_root', 'Root path', 'string', '/home/intraface/'),
231
-          $post_install_script->getParam('path_include_path', 'Include path', 'string', ''),
232
-          $post_install_script->getParam('path_upload', 'Upload path', 'string', '/home/intraface/upload/'),
233
-          $post_install_script->getParam('path_cache', 'Cache path', 'string', '/home/intraface/cache'),
234
-          $post_install_script->getParam('connection_internet', 'Connection to intranet', 'boolean', true),
235
-          $post_install_script->getParam('server_status', 'Server status', 'string', 'PRODUCTION'),
236
-          $post_install_script->getParam('error_handle_level', 'Error handle error ', 'integer', E_ALL),
237
-          $post_install_script->getParam('error_level_continue_script', 'Error level continue script', 'integer' ^ E_NOTICE),
238
-          $post_install_script->getParam('error_report_email', 'Error report email', 'string', '[email protected]'),
239
-          $post_install_script->getParam('error_log', 'Error log', 'string', 'log/error.log'),
240
-          $post_install_script->getParam('timezone', 'Timezone', 'string', 'Europe/Copenhagen'),
241
-          $post_install_script->getParam('country_local', 'Country local', 'string', 'da_DK'),
242
-          $post_install_script->getParam('intraface_intranetmaintenance_intranet_private_key', 'Private key', 'string', ''),
243
-          $post_install_script->getParam('intraface_onlinepayment_provider', 'Online payment provider', 'string', 'Quickpay'),
244
-          $post_install_script->getParam('intraface_onlinepayment_merchant', 'Online payment merchant number', 'string', ''),
245
-          $post_install_script->getParam('intraface_onlinepayment_md5secret', 'Online payment md5secret', 'string', '')
246
-              ),
224
+            $post_install_script->getParam('db_pass', 'Password', 'string', ''),
225
+            $post_install_script->getParam('db_host', 'Host', 'string', 'localhost'),
226
+            $post_install_script->getParam('db_name', 'Database', 'string', 'intraface'),
227
+            $post_install_script->getParam('net_scheme', 'Net scheme', 'string', 'http://'),
228
+            $post_install_script->getParam('net_host', 'Net host', 'string', 'localhost'),
229
+            $post_install_script->getParam('net_directory', 'Net directory', 'string', '/'),
230
+            $post_install_script->getParam('path_root', 'Root path', 'string', '/home/intraface/'),
231
+            $post_install_script->getParam('path_include_path', 'Include path', 'string', ''),
232
+            $post_install_script->getParam('path_upload', 'Upload path', 'string', '/home/intraface/upload/'),
233
+            $post_install_script->getParam('path_cache', 'Cache path', 'string', '/home/intraface/cache'),
234
+            $post_install_script->getParam('connection_internet', 'Connection to intranet', 'boolean', true),
235
+            $post_install_script->getParam('server_status', 'Server status', 'string', 'PRODUCTION'),
236
+            $post_install_script->getParam('error_handle_level', 'Error handle error ', 'integer', E_ALL),
237
+            $post_install_script->getParam('error_level_continue_script', 'Error level continue script', 'integer' ^ E_NOTICE),
238
+            $post_install_script->getParam('error_report_email', 'Error report email', 'string', '[email protected]'),
239
+            $post_install_script->getParam('error_log', 'Error log', 'string', 'log/error.log'),
240
+            $post_install_script->getParam('timezone', 'Timezone', 'string', 'Europe/Copenhagen'),
241
+            $post_install_script->getParam('country_local', 'Country local', 'string', 'da_DK'),
242
+            $post_install_script->getParam('intraface_intranetmaintenance_intranet_private_key', 'Private key', 'string', ''),
243
+            $post_install_script->getParam('intraface_onlinepayment_provider', 'Online payment provider', 'string', 'Quickpay'),
244
+            $post_install_script->getParam('intraface_onlinepayment_merchant', 'Online payment merchant number', 'string', ''),
245
+            $post_install_script->getParam('intraface_onlinepayment_md5secret', 'Online payment md5secret', 'string', '')
246
+                ),
247 247
     '');
248 248
 
249 249
 $pfm->addPostInstallTask($post_install_script, 'intraface.php');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 
251 251
 foreach ($web_files AS $file) {
252 252
     $src_file = substr($file, 4);
253
-    $formatted_file = substr($file, strlen($web_dir . '/'));
253
+    $formatted_file = substr($file, strlen($web_dir.'/'));
254 254
     if (in_array($src_file, $ignore)) continue;
255 255
     $pfm->addInstallAs($src_file, $formatted_file);
256 256
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,9 @@
 block discarded – undo
251 251
 foreach ($web_files AS $file) {
252 252
     $src_file = substr($file, 4);
253 253
     $formatted_file = substr($file, strlen($web_dir . '/'));
254
-    if (in_array($src_file, $ignore)) continue;
254
+    if (in_array($src_file, $ignore)) {
255
+        continue;
256
+    }
255 257
     $pfm->addInstallAs($src_file, $formatted_file);
256 258
 }
257 259
 
Please login to merge, or discard this patch.