Passed
Push — master ( 0e4096...7cb3ed )
by Nicolaas
02:58
created
code/control/cms/CountryPrice_TestController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
     /**
348 348
      * returns the Distributor for the user
349 349
      * Needs to be in model so we can access from the order in the template.
350
-     * @return Varchar Field
350
+     * @return Distributor Field
351 351
      */
352 352
     public function MyDistributor()
353 353
     {
Please login to merge, or discard this patch.
code/model/buyables/CountryPrice_CopyPrices.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,6 @@
 block discarded – undo
96 96
      *  - ID
97 97
      * searches through children, until all all childpages have been added
98 98
      *
99
-     * @param  string $country [description]
100 99
      * @param  array  $values  [description]
101 100
      * @return array          [description]
102 101
      */
Please login to merge, or discard this patch.
code/control/CountryPrice_Page_Controller_Extension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 
158 158
     /**
159 159
      *
160
-     * @return DataList
160
+     * @return string
161 161
      */
162 162
     public function AlternativeHrefLangLinksCachingKey()
163 163
     {
Please login to merge, or discard this patch.
code/model/translations/CountryPrice_SiteTreeExtensions.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -123,6 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * @var int $countryID
125 125
      *
126
+     * @param integer $countryID
126 127
      * @return CountryPrice_Translation | null
127 128
      */
128 129
     public function getEcommerceTranslation($countryID)
Please login to merge, or discard this patch.
code/model/buyables/CountryPrice_BuyableExtension.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * This is called from /ecommerce/code/Product
101 101
      * returning NULL is like returning TRUE OR FALSE, i.e. ignore this.
102
-     * @param Member (optional)   $member
102
+     * @param Member Member   $member
103 103
      * @param bool (optional)     $checkPrice
104
-     * @return false | null
104
+     * @return null|false | null
105 105
      */
106 106
     public function canPurchaseByCountry(Member $member = null, $checkPrice = true, $countryCode = '')
107 107
     {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
      * as long as we do not give distributors access to the Products
400 400
      * this is fairly safe.
401 401
      * @param member (optiona) $member
402
-     * @return null / bool
402
+     * @return boolean / bool
403 403
      */
404 404
     public function canEdit($member = null)
405 405
     {
Please login to merge, or discard this patch.
code/model/address/CountryPrice_EcommerceCountry.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -303,6 +303,10 @@
 block discarded – undo
303 303
         return self::$_get_real_country_cache[$cacheKey];
304 304
     }
305 305
 
306
+    /**
307
+     * @param string $countryOrCountryCodeA
308
+     * @param string $countryOrCountryCodeB
309
+     */
306 310
     public static function countries_belong_to_same_group($countryOrCountryCodeA, $countryOrCountryCodeB)
307 311
     {
308 312
         $countryA = EcommerceCountry::get_country_from_mixed_var($countryOrCountryCodeA);
Please login to merge, or discard this patch.
code/model/CountryPrice.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,6 +210,10 @@  discard block
 block discarded – undo
210 210
     private static $cms_object = null;
211 211
 
212 212
     //MUST KEEP
213
+
214
+    /**
215
+     * @param SS_Object $o
216
+     */
213 217
     public static function set_cms_object($o)
214 218
     {
215 219
         self::$cms_object = $o;
@@ -265,7 +269,7 @@  discard block
 block discarded – undo
265 269
 
266 270
     /**
267 271
      * Returns if the currency is an old currency not used anymore.
268
-     * @return Boolean
272
+     * @return boolean|null
269 273
      */
270 274
     public function isObsolete()
271 275
     {
Please login to merge, or discard this patch.