Completed
Pull Request — 1.11.x (#1599)
by José
28:19
created
plugin/courselegal/user_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /* For license terms, see /license.txt */
3
-require_once dirname(__FILE__) . '/config.php';
3
+require_once dirname(__FILE__).'/config.php';
4 4
 
5 5
 // Course legal
6 6
 $enabled = api_get_plugin_setting('courselegal', 'tool_enable');
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $url = api_get_self().'?'.api_get_cidreq();
20 20
 
21 21
 $action = isset($_GET['action']) ? $_GET['action'] : null;
22
-switch($action) {
22
+switch ($action) {
23 23
     case 'resend':
24 24
         if (isset($_GET['user_id'])) {
25 25
             $legal->updateMailAgreementLink($_GET['user_id'], $courseId, $sessionId);
Please login to merge, or discard this patch.
plugin/courselegal/install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For license terms, see /license.txt */
3 3
 
4
-require_once dirname(__FILE__) . '/config.php';
4
+require_once dirname(__FILE__).'/config.php';
5 5
 
6 6
 if (!api_is_platform_admin()) {
7 7
     die ('You must have admin permissions to install plugins');
Please login to merge, or discard this patch.
plugin/buycourses/src/configure_course.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 if ($commissionsEnable == "true") {
25 25
     
26
-    $htmlHeadXtra[] = '<script type="text/javascript" src="' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/js/commissions.js"></script>';
26
+    $htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_PLUGIN_PATH).'buycourses/resources/js/commissions.js"></script>';
27 27
     $defaultCommissions = [];
28 28
     $commissions = "";
29 29
     
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
     . '<script>'
171 171
         . '$(function(){'
172 172
             . 'if ($("[name=\'commissions\']").val() === "") {'
173
-                . '$("#panelSliders").html("<button id=\"setCommissionsButton\" class=\"btn btn-warning\">' . get_plugin_lang("SetCommissions", "BuyCoursesPlugin") . '</button>");'
173
+                . '$("#panelSliders").html("<button id=\"setCommissionsButton\" class=\"btn btn-warning\">'.get_plugin_lang("SetCommissions", "BuyCoursesPlugin").'</button>");'
174 174
             . '} else {'
175
-                . 'showSliders(100, "default", "' . $commissions . '");'
175
+                . 'showSliders(100, "default", "'.$commissions.'");'
176 176
             . '}'
177 177
         . '});'
178 178
 
@@ -226,14 +226,14 @@  discard block
 block discarded – undo
226 226
     
227 227
     $platformCommission = $plugin->getPlatformCommission();
228 228
     
229
-    $form->addHtml( ''
229
+    $form->addHtml(''
230 230
             . '<div class="form-group">'
231 231
                 . '<label for="sliders" class="col-sm-2 control-label">'
232 232
                     . get_plugin_lang('Commissions', 'BuyCoursesPlugin')
233 233
                 . '</label>'
234 234
                 . '<div class="col-sm-8">'
235 235
                     . Display::return_message(
236
-                        sprintf($plugin->get_lang('TheActualPlatformCommissionIsX'), $platformCommission['commission']. '%'),
236
+                        sprintf($plugin->get_lang('TheActualPlatformCommissionIsX'), $platformCommission['commission'].'%'),
237 237
                         'info',
238 238
                         false
239 239
                     )
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         $plugin->deleteItem($productItem['id']);
293 293
     }
294 294
 
295
-    header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/configuration.php');
295
+    header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/configuration.php');
296 296
     exit;
297 297
 }
298 298
 
Please login to merge, or discard this patch.
plugin/buycourses/src/expresscheckout.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
     $ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]);
41 41
 
42 42
     echo "SetExpressCheckout API call failed. ";
43
-    echo "Detailed Error Message: " . $ErrorLongMsg;
44
-    echo "Short Error Message: " . $ErrorShortMsg;
45
-    echo "Error Code: " . $ErrorCode;
46
-    echo "Error Severity Code: " . $ErrorSeverityCode;
43
+    echo "Detailed Error Message: ".$ErrorLongMsg;
44
+    echo "Short Error Message: ".$ErrorShortMsg;
45
+    echo "Error Code: ".$ErrorCode;
46
+    echo "Error Severity Code: ".$ErrorSeverityCode;
47 47
 }
Please login to merge, or discard this patch.
plugin/buycourses/src/success.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         unset($_SESSION['bc_sale_id']);
59 59
 
60
-        header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/index.php');
60
+        header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/index.php');
61 61
         exit;
62 62
     }
63 63
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     }
167 167
 
168 168
     unset($_SESSION['bc_sale_id']);
169
-    header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/course_catalog.php');
169
+    header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/course_catalog.php');
170 170
     exit;
171 171
 }
172 172
 
Please login to merge, or discard this patch.
plugin/buycourses/src/process.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $currentUserId = api_get_user_id();
13 13
 
14 14
 if (empty($currentUserId)) {
15
-    header('Location: ' . api_get_path(WEB_CODE_PATH) . 'auth/inscription.php');
15
+    header('Location: '.api_get_path(WEB_CODE_PATH).'auth/inscription.php');
16 16
     exit;
17 17
 }
18 18
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 $buyingCourse = intval($_REQUEST['t']) === BuyCoursesPlugin::PRODUCT_TYPE_COURSE;
29 29
 $buyingSession = intval($_REQUEST['t']) === BuyCoursesPlugin::PRODUCT_TYPE_SESSION;
30
-$queryString = 'i=' . intval($_REQUEST['i']) . '&t=' . intval($_REQUEST['t']);
30
+$queryString = 'i='.intval($_REQUEST['i']).'&t='.intval($_REQUEST['t']);
31 31
 
32 32
 if ($buyingCourse) {
33 33
     $courseInfo = $plugin->getCourseInfo($_REQUEST['i']);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         Display::addFlash(
49 49
             Display::return_message($plugin->get_lang('NeedToSelectPaymentType'), 'error', false)
50 50
         );
51
-        header('Location:' . api_get_self() . '?' . $queryString);
51
+        header('Location:'.api_get_self().'?'.$queryString);
52 52
         exit;
53 53
     }
54 54
     
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     if ($saleId !== false) {
58 58
         $_SESSION['bc_sale_id'] = $saleId;
59
-        header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/process_confirm.php');  
59
+        header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/process_confirm.php');  
60 60
     }
61 61
 
62 62
     exit;
Please login to merge, or discard this patch.
plugin/buycourses/src/sales_report.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         api_not_allowed(true);
25 25
     }
26 26
 
27
-    $urlToRedirect = api_get_self() . '?';
27
+    $urlToRedirect = api_get_self().'?';
28 28
 
29 29
     switch ($_GET['action']) {
30 30
         case 'confirm':
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
     get_lang('Filter'),
94 94
     [$plugin->get_lang('ByStatus'), $plugin->get_lang('ByUser')]
95 95
 );
96
-$form->addHtml('<div id="report-by-status" ' . ($selectedFilterType !== '0' ? 'style="display:none"' : '') . '>');
96
+$form->addHtml('<div id="report-by-status" '.($selectedFilterType !== '0' ? 'style="display:none"' : '').'>');
97 97
 $form->addSelect('status', $plugin->get_lang('OrderStatus'), $saleStatuses);
98 98
 $form->addHtml('</div>');
99
-$form->addHtml('<div id="report-by-user" ' . ($selectedFilterType !== '1' ? 'style="display:none"' : '') . '>');
99
+$form->addHtml('<div id="report-by-user" '.($selectedFilterType !== '1' ? 'style="display:none"' : '').'>');
100 100
 $form->addText('user', get_lang('UserName'), false);
101 101
 $form->addHtml('</div>');
102 102
 $form->addButtonFilter(get_lang('Search'));
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
     $toolbar .= Display::toolbarButton(
146 146
         $plugin->get_lang('PaypalPayoutCommissions'),
147
-        api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/paypal_payout.php',
147
+        api_get_path(WEB_PLUGIN_PATH).'buycourses/src/paypal_payout.php',
148 148
         'paypal',
149 149
         'primary',
150 150
         ['title' => $plugin->get_lang('PaypalPayoutCommissions')]
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
     $toolbar .= Display::toolbarButton(
160 160
         $plugin->get_lang('PayoutReport'),
161
-        api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/payout_report.php',
161
+        api_get_path(WEB_PLUGIN_PATH).'buycourses/src/payout_report.php',
162 162
         'money',
163 163
         'info',
164 164
         ['title' => $plugin->get_lang('PayoutReport')]
Please login to merge, or discard this patch.
plugin/buycourses/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 
4
-require_once __DIR__ . '/../../main/inc/global.inc.php';
4
+require_once __DIR__.'/../../main/inc/global.inc.php';
Please login to merge, or discard this patch.
plugin/buycourses/install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 /**
9 9
  * Initialization
10 10
  */
11
-require_once dirname(__FILE__) . '/config.php';
11
+require_once dirname(__FILE__).'/config.php';
12 12
 if (!api_is_platform_admin()) {
13 13
     die ('You must have admin permissions to install plugins');
14 14
 }
Please login to merge, or discard this patch.