Completed
Push — 1.11.x ( a57ddd...bba58e )
by José
25:59
created
plugin/buycourses/src/buy_course_plugin.class.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      *
48
-     * @return StaticPlugin
48
+     * @return BuyCoursesPlugin
49 49
      */
50 50
     static function create()
51 51
     {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     /**
269 269
      * Save a transfer account information
270 270
      * @param array $params The transfer account
271
-     * @return int Rows affected. Otherwise return false
271
+     * @return false|string Rows affected. Otherwise return false
272 272
      */
273 273
     public function saveTransferAccount($params)
274 274
     {
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
     /**
681 681
      * Get session info
682 682
      * @param array $sessionId The session ID
683
-     * @return array
683
+     * @return Session
684 684
      */
685 685
     public function getSessionInfo($sessionId)
686 686
     {
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
      * Register a sale
774 774
      * @param int $itemId The product ID
775 775
      * @param int $paymentType The payment type
776
-     * @return boolean
776
+     * @return false|string
777 777
      */
778 778
     public function registerSale($itemId, $paymentType)
779 779
     {
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
 
956 956
     /**
957 957
      * Get payment types
958
-     * @return array
958
+     * @return string[]
959 959
      */
960 960
     public function getPaymentTypes()
961 961
     {
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
 
995 995
     /**
996 996
      * Get the statuses for sales
997
-     * @return array
997
+     * @return string[]
998 998
      */
999 999
     public function getSaleStatuses()
1000 1000
     {
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
 
1008 1008
     /**
1009 1009
      * Get the statuses for Payouts
1010
-     * @return array
1010
+     * @return string[]
1011 1011
      */
1012 1012
     public function getPayoutStatuses()
1013 1013
     {
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
 
1021 1021
     /**
1022 1022
      * Get the list of product types
1023
-     * @return array
1023
+     * @return string[]
1024 1024
      */
1025 1025
     public function getProductTypes()
1026 1026
     {
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
     /**
1402 1402
      * Register a item
1403 1403
      * @param array $itemData The item data
1404
-     * @return int The item ID. Otherwise return false
1404
+     * @return false|string The item ID. Otherwise return false
1405 1405
      */
1406 1406
     public function registerItem(array $itemData)
1407 1407
     {
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
     /**
1560 1560
      * Verify if the beneficiary have a paypal account
1561 1561
      * @param int $userId
1562
-     * @return true if the user have a paypal account, false if not
1562
+     * @return boolean if the user have a paypal account, false if not
1563 1563
      */
1564 1564
     public function verifyPaypalAccountByBeneficiary($userId)
1565 1565
     {
@@ -1681,7 +1681,7 @@  discard block
 block discarded – undo
1681 1681
     /**
1682 1682
      * Register addicional service
1683 1683
      * @param array params $service
1684
-     * @return mixed response
1684
+     * @return string|false response
1685 1685
      */
1686 1686
     public function storeService($service)
1687 1687
     {
@@ -1838,7 +1838,7 @@  discard block
 block discarded – undo
1838 1838
 
1839 1839
     /**
1840 1840
      * Get the statuses for sales
1841
-     * @return array
1841
+     * @return string[]
1842 1842
      */
1843 1843
     public function getServiceSaleStatuses()
1844 1844
     {
@@ -2094,7 +2094,7 @@  discard block
 block discarded – undo
2094 2094
      * @param int $paymentType The payment type
2095 2095
      * @param int $infoSelect The ID for Service Type
2096 2096
      * @param int $trial trial mode
2097
-     * @return boolean
2097
+     * @return false|string
2098 2098
      */
2099 2099
     public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null)
2100 2100
     {
Please login to merge, or discard this patch.