Completed
Pull Request — 1.11.x (#1561)
by José
25:13
created
plugin/buycourses/src/buy_course_plugin.class.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     /**
43 43
      *
44
-     * @return StaticPlugin
44
+     * @return BuyCoursesPlugin
45 45
      */
46 46
     static function create()
47 47
     {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     /**
265 265
      * Save a transfer account information
266 266
      * @param array $params The transfer account
267
-     * @return int Rows affected. Otherwise return false
267
+     * @return false|string Rows affected. Otherwise return false
268 268
      */
269 269
     public function saveTransferAccount($params)
270 270
     {
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
     /**
677 677
      * Get session info
678 678
      * @param array $sessionId The session ID
679
-     * @return array
679
+     * @return Session
680 680
      */
681 681
     public function getSessionInfo($sessionId)
682 682
     {
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
      * Register a sale
770 770
      * @param int $itemId The product ID
771 771
      * @param int $paymentType The payment type
772
-     * @return boolean
772
+     * @return false|string
773 773
      */
774 774
     public function registerSale($itemId, $paymentType)
775 775
     {
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
 
952 952
     /**
953 953
      * Get payment types
954
-     * @return array
954
+     * @return string[]
955 955
      */
956 956
     public function getPaymentTypes()
957 957
     {
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
 
990 990
     /**
991 991
      * Get the statuses for sales
992
-     * @return array
992
+     * @return string[]
993 993
      */
994 994
     public function getSaleStatuses()
995 995
     {
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
 
1003 1003
     /**
1004 1004
      * Get the statuses for Payouts
1005
-     * @return array
1005
+     * @return string[]
1006 1006
      */
1007 1007
     public function getPayoutStatuses()
1008 1008
     {
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
 
1016 1016
     /**
1017 1017
      * Get the list of product types
1018
-     * @return array
1018
+     * @return string[]
1019 1019
      */
1020 1020
     public function getProductTypes()
1021 1021
     {
@@ -1396,7 +1396,7 @@  discard block
 block discarded – undo
1396 1396
     /**
1397 1397
      * Register a item
1398 1398
      * @param array $itemData The item data
1399
-     * @return int The item ID. Otherwise return false
1399
+     * @return false|string The item ID. Otherwise return false
1400 1400
      */
1401 1401
     public function registerItem(array $itemData)
1402 1402
     {
@@ -1554,7 +1554,7 @@  discard block
 block discarded – undo
1554 1554
     /**
1555 1555
      * Verify if the beneficiary have a paypal account
1556 1556
      * @param int $userId
1557
-     * @return true if the user have a paypal account, false if not
1557
+     * @return boolean if the user have a paypal account, false if not
1558 1558
      */
1559 1559
     public function verifyPaypalAccountByBeneficiary($userId)
1560 1560
     {
@@ -1676,7 +1676,7 @@  discard block
 block discarded – undo
1676 1676
     /**
1677 1677
      * Register addicional service
1678 1678
      * @param array params $service
1679
-     * @return mixed response
1679
+     * @return string|false response
1680 1680
      */
1681 1681
     public function storeService($service)
1682 1682
     {
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
 
1835 1835
     /**
1836 1836
      * Get the statuses for sales
1837
-     * @return array
1837
+     * @return string[]
1838 1838
      */
1839 1839
     public function getServiceSaleStatuses()
1840 1840
     {
Please login to merge, or discard this patch.
plugin/buycourses/src/configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 // breadcrumbs
25 25
 $interbreadcrumb[] = [
26
-    'url' => api_get_path(WEB_PLUGIN_PATH) . 'buycourses/index.php',
26
+    'url' => api_get_path(WEB_PLUGIN_PATH).'buycourses/index.php',
27 27
     'name' => $plugin->get_lang('Home')
28 28
 ];
29 29
 
Please login to merge, or discard this patch.
plugin/buycourses/src/service_error.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         Display::return_message($plugin->get_lang('OrderCancelled'), 'error', false)
23 23
     );
24 24
 
25
-    header('Location: '. api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/service_catalog.php');
25
+    header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php');
26 26
     exit;
27 27
 }
28 28
 
@@ -30,6 +30,6 @@  discard block
 block discarded – undo
30 30
     Display::return_message($plugin->get_lang('ErrorOccurred'), 'error', false)
31 31
 );
32 32
 
33
-header('Location: '. api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/service_catalog.php');
33
+header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php');
34 34
 
35 35
 exit;
Please login to merge, or discard this patch.
plugin/buycourses/src/service_sales_report.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     $toolbar .= Display::toolbarButton(
62 62
         $plugin->get_lang('PaypalPayoutCommissions'),
63
-        api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/paypal_payout.php',
63
+        api_get_path(WEB_PLUGIN_PATH).'buycourses/src/paypal_payout.php',
64 64
         'paypal',
65 65
         'primary',
66 66
         ['title' => $plugin->get_lang('PaypalPayoutCommissions')]
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     $toolbar .= Display::toolbarButton(
76 76
         $plugin->get_lang('PayoutReport'),
77
-        api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/payout_report.php',
77
+        api_get_path(WEB_PLUGIN_PATH).'buycourses/src/payout_report.php',
78 78
         'money',
79 79
         'info',
80 80
         ['title' => $plugin->get_lang('PayoutReport')]
Please login to merge, or discard this patch.