Completed
Pull Request — master (#287)
by Nic
07:56
created
code/controllers/FoxyStripe_Controller.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
 		}
35 35
 	}
36 36
 
37
+    /**
38
+     * @param string $encrypted
39
+     */
37 40
     public function handleDataFeed($encrypted, $decrypted){
38 41
         //handle encrypted & decrypted data
39 42
         $orders = new SimpleXMLElement($decrypted);
@@ -79,6 +82,10 @@  discard block
 block discarded – undo
79 82
         }
80 83
     }
81 84
 
85
+    /**
86
+     * @param SimpleXMLElement $orders
87
+     * @param DataObject $transaction
88
+     */
82 89
     public function parseOrderInfo($orders, $transaction) {
83 90
 
84 91
         foreach ($orders->transactions->transaction as $order) {
@@ -95,6 +102,10 @@  discard block
 block discarded – undo
95 102
         }
96 103
     }
97 104
 
105
+    /**
106
+     * @param SimpleXMLElement $orders
107
+     * @param DataObject $transaction
108
+     */
98 109
     public function parseOrderCustomer($orders, $transaction) {
99 110
 
100 111
         foreach ($orders->transactions->transaction as $order) {
@@ -133,6 +144,10 @@  discard block
 block discarded – undo
133 144
         }
134 145
     }
135 146
 
147
+    /**
148
+     * @param SimpleXMLElement $orders
149
+     * @param DataObject $transaction
150
+     */
136 151
     public function parseOrderDetails($orders, $transaction) {
137 152
 
138 153
         // remove previous OrderDetails so we don't end up with duplicates
Please login to merge, or discard this patch.
code/form/FoxyStripePurchaseForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     private $product;
21 21
 
22 22
     /**
23
-     * @param $siteConfig
23
+     * @param SiteConfig|null $siteConfig
24 24
      * @return $this
25 25
      */
26 26
     public function setSiteConfig($siteConfig)
Please login to merge, or discard this patch.
code/model/foxycart.cart_validation.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -30,10 +30,16 @@
 block discarded – undo
30 30
 	// protected static $cart_url = 'https://yourdomain.foxycart.com/cart';
31 31
 	protected static $cart_url;
32 32
 
33
+	/**
34
+	 * @param string $storeName
35
+	 */
33 36
 	public static function setCartURL($storeName = null){
34 37
 		self::$cart_url = 'https://'.$storeName.'.faxycart.com/cart';
35 38
 	}
36 39
 
40
+	/**
41
+	 * @param string $secret
42
+	 */
37 43
 	public static function setSecret($secret = null){
38 44
 		self::$secret = $secret;
39 45
 	}
Please login to merge, or discard this patch.
code/objects/OptionItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -181,6 +181,9 @@
 block discarded – undo
181 181
         return $result;
182 182
     }
183 183
 
184
+    /**
185
+     * @param string $oma
186
+     */
184 187
     public static function getOptionModifierActionSymbol($oma, $returnWithOnlyPlusMinus = false)
185 188
     {
186 189
         switch ($oma) {
Please login to merge, or discard this patch.