frontend/helpers/ReferralHelper.php
/**
     * Converts referral points to preium days
     *
     * @param  integer $points
     * @return integer
     */
Converts referral points to preium days
@param  integer $points
@return integer
Converts referral points to preium days @param integer $points @return integer
public static function referralPointsToPremiumDays ($points)
    {
        $rate = (float)Yii::$app->config->get('App.ReferralPointsRate');
        return floor($points * $rate);
    }
public static function referralPointsToPremiumDays ( $ points ) { $ rate = ( float ) Yii :: $ app -> config -> get ( 'App.ReferralPointsRate' ) ; return floor ( $ points * $ rate ) ; }
Converts referral points to preium days
 @param  integer $points
 @return integer
Converts referral points to preium days @param integer $points @return integer