Completed
Push — 1.11.x ( 78f130...f6f5c2 )
by José
50:40 queued 24:26
created
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/SurveyQuestion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * @param string $option_text
86 86
      * @param int	 $sort
87 87
      */
88
-    public function add_answer($option_text,$sort)
88
+    public function add_answer($option_text, $sort)
89 89
     {
90 90
         $answer = array();
91 91
         $answer['option_text'] = $option_text;
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/ScormDocument.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __construct($id, $path, $title)
23 23
     {
24
-        parent::__construct($id,RESOURCE_SCORM);
24
+        parent::__construct($id, RESOURCE_SCORM);
25 25
         $this->path = 'scorm'.$path;
26 26
         $this->title = $title;
27 27
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         echo $path;
37 37
         if (!empty($this->title)) {
38 38
             if (strpos($path, $this->title) === false) {
39
-                echo " - " . $this->title;
39
+                echo " - ".$this->title;
40 40
             }
41 41
         }
42 42
     }
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/Thematic.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     public $params = array();
13 13
     public $thematic_advance_list = array();
14
-	public $thematic_plan_list = array();
14
+    public $thematic_plan_list = array();
15 15
 
16 16
     /**
17
-    * Create a new Thematic
18
-    *
19
-    * @param array $params
20
-    */
17
+     * Create a new Thematic
18
+     *
19
+     * @param array $params
20
+     */
21 21
     public function __construct($params)
22 22
     {
23 23
         parent::__construct($params['id'], RESOURCE_THEMATIC);
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/Resources/LinkCategory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
      * @param string $title
30 30
      * @param string $description
31 31
      */
32
-    public function __construct($id,$title,$description,$display_order)
32
+    public function __construct($id, $title, $description, $display_order)
33 33
     {
34
-        parent::__construct($id,RESOURCE_LINKCATEGORY);
34
+        parent::__construct($id, RESOURCE_LINKCATEGORY);
35 35
         $this->title = $title;
36 36
         $this->description = $description;
37 37
         $this->display_order = $display_order;
Please login to merge, or discard this patch.
main/coursecopy/copy_course_session_selected.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 $this_section = SECTION_COURSES;
49 49
 $nameTools = get_lang('CopyCourse');
50
-$returnLink = api_get_path(WEB_CODE_PATH) . 'course_info/maintenance_coach.php?' . api_get_cidreq();
50
+$returnLink = api_get_path(WEB_CODE_PATH).'course_info/maintenance_coach.php?'.api_get_cidreq();
51 51
 $interbreadcrumb[] = array(
52 52
     'url' => $returnLink,
53 53
     'name' => get_lang('Maintenance')
@@ -73,29 +73,29 @@  discard block
 block discarded – undo
73 73
     $attrs = '';
74 74
     if (count($attr) > 0) {
75 75
         foreach ($attr as $key => $value) {
76
-            $attrs .= ' ' . $key . '="' . $value . '"';
76
+            $attrs .= ' '.$key.'="'.$value.'"';
77 77
         }
78 78
     }
79
-    $output = '<select name="' . $name . '" ' . $attrs . '>';
79
+    $output = '<select name="'.$name.'" '.$attrs.'>';
80 80
 
81 81
     if (count($sessions) == 0) {
82
-        $output .= '<option value = "0">' . get_lang(
82
+        $output .= '<option value = "0">'.get_lang(
83 83
                 'ThereIsNotStillASession'
84
-            ) . '</option>';
84
+            ).'</option>';
85 85
     } else {
86
-        $output .= '<option value = "0">' . get_lang(
86
+        $output .= '<option value = "0">'.get_lang(
87 87
                 'SelectASession'
88
-            ) . '</option>';
88
+            ).'</option>';
89 89
     }
90 90
 
91 91
     if (is_array($sessions)) {
92 92
         foreach ($sessions as $session) {
93 93
             $category_name = '';
94 94
             if (!empty($session['category_name'])) {
95
-                $category_name = ' (' . $session['category_name'] . ')';
95
+                $category_name = ' ('.$session['category_name'].')';
96 96
             }
97 97
 
98
-            $output .= '<option value="' . $session['id'] . '">' . $session['name'] . ' ' . $category_name . '</option>';
98
+            $output .= '<option value="'.$session['id'].'">'.$session['name'].' '.$category_name.'</option>';
99 99
         }
100 100
     }
101 101
     $output .= '</select>';
@@ -120,43 +120,43 @@  discard block
 block discarded – undo
120 120
     // Actions
121 121
     $html .= '<div class="actions">';
122 122
     // Link back to the documents overview
123
-    $html .= '<a href="' . $returnLink . '">' . Display::return_icon(
124
-            'back.png', get_lang('BackTo') . ' ' . get_lang('Maintenance'), '', ICON_SIZE_MEDIUM
125
-        ) . '</a>';
123
+    $html .= '<a href="'.$returnLink.'">'.Display::return_icon(
124
+            'back.png', get_lang('BackTo').' '.get_lang('Maintenance'), '', ICON_SIZE_MEDIUM
125
+        ).'</a>';
126 126
     $html .= '</div>';
127 127
 
128 128
     $html .= Display::return_message(
129 129
             get_lang('CopyCourseFromSessionToSessionExplanation')
130 130
     );
131 131
 
132
-    $html .= '<form name="formulaire" method="post" action="' . api_get_self(
133
-        ) . '?' . api_get_cidreq() . '" >';
132
+    $html .= '<form name="formulaire" method="post" action="'.api_get_self(
133
+        ).'?'.api_get_cidreq().'" >';
134 134
     $html .= '<table border="0" cellpadding="5" cellspacing="0" width="100%">';
135 135
 
136 136
     // Source
137
-    $html .= '<tr><td width="15%"><b>' . get_lang(
137
+    $html .= '<tr><td width="15%"><b>'.get_lang(
138 138
             'OriginCoursesFromSession'
139
-        ) . ':</b></td>';
140
-    $html .= '<td width="10%" align="left">' . api_get_session_name(
139
+        ).':</b></td>';
140
+    $html .= '<td width="10%" align="left">'.api_get_session_name(
141 141
             $sessionId
142
-        ) . '</td>';
142
+        ).'</td>';
143 143
     $html .= '<td width="50%">';
144
-    $html .= "{$courseInfo['title']} ({$courseInfo['code']})" . '</td></tr>';
144
+    $html .= "{$courseInfo['title']} ({$courseInfo['code']})".'</td></tr>';
145 145
 
146 146
     // Destination
147
-    $html .= '<tr><td width="15%"><b>' . get_lang(
147
+    $html .= '<tr><td width="15%"><b>'.get_lang(
148 148
             'DestinationCoursesFromSession'
149
-        ) . ':</b></td>';
149
+        ).':</b></td>';
150 150
     $html .= '<td width="10%" align="left"><div id="ajax_sessions_list_destination">';
151 151
     $html .= '<select name="sessions_list_destination" onchange="javascript: xajax_searchCourses(this.value,\'destination\');">';
152 152
     if (empty($sessions)) {
153
-        $html .= '<option value = "0">' . get_lang(
153
+        $html .= '<option value = "0">'.get_lang(
154 154
                 'ThereIsNotStillASession'
155
-            ) . '</option>';
155
+            ).'</option>';
156 156
     } else {
157
-        $html .= '<option value = "0">' . get_lang(
157
+        $html .= '<option value = "0">'.get_lang(
158 158
                 'SelectASession'
159
-            ) . '</option>';
159
+            ).'</option>';
160 160
         foreach ($sessions as $session) {
161 161
             if ($session['id'] == $sessionId) {
162 162
                 continue;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 continue;
167 167
             }
168 168
 
169
-            $html .= '<option value="' . $session['id'] . '">' . $session['name'] . '</option>';
169
+            $html .= '<option value="'.$session['id'].'">'.$session['name'].'</option>';
170 170
         }
171 171
     }
172 172
 
@@ -178,17 +178,17 @@  discard block
 block discarded – undo
178 178
     $html .= '</tr></table>';
179 179
 
180 180
     $html .= "<fieldset>";
181
-    $html .= '<legend>' . get_lang('TypeOfCopy') . ' <small>(' . get_lang('CopyOnlySessionItems') . ')</small></legend>';
181
+    $html .= '<legend>'.get_lang('TypeOfCopy').' <small>('.get_lang('CopyOnlySessionItems').')</small></legend>';
182 182
     $html .= '<label class="radio"><input type="radio" id="copy_option_1" name="copy_option" value="full_copy" checked="checked"/>';
183
-    $html .= get_lang('FullCopy') . '</label>';
183
+    $html .= get_lang('FullCopy').'</label>';
184 184
     $html .= '<label class="radio"><input type="radio" id="copy_option_2" name="copy_option" value="select_items"/>';
185
-    $html .= ' ' . get_lang('LetMeSelectItems') . '</label><br/>';
185
+    $html .= ' '.get_lang('LetMeSelectItems').'</label><br/>';
186 186
 
187 187
     $html .= "</fieldset>";
188 188
 
189
-    $html .= '<button class="save" type="submit" onclick="javascript:if(!confirm(' . "'" . addslashes(
189
+    $html .= '<button class="save" type="submit" onclick="javascript:if(!confirm('."'".addslashes(
190 190
             api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES)
191
-        ) . "'" . ')) return false;">' . get_lang('CopyCourse') . '</button>';
191
+        )."'".')) return false;">'.get_lang('CopyCourse').'</button>';
192 192
     $html .= '</form>';
193 193
     echo $html;
194 194
 }
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
 
215 215
             $courseTitle = str_replace("'", "\'", $course['title']);
216 216
 
217
-            $return .= '<option value="' . $course['code'] . '" title="' . @htmlspecialchars(
218
-                    $course['title'] . ' (' . $course['visual_code'] . ')', ENT_QUOTES, api_get_system_encoding()
219
-                ) . '">' .
220
-                $course['title'] . ' (' . $course['visual_code'] . ')</option>';
217
+            $return .= '<option value="'.$course['code'].'" title="'.@htmlspecialchars(
218
+                    $course['title'].' ('.$course['visual_code'].')', ENT_QUOTES, api_get_system_encoding()
219
+                ).'">'.
220
+                $course['title'].' ('.$course['visual_code'].')</option>';
221 221
         }
222 222
         $return .= '</select>';
223 223
         $_SESSION['course_list_destination'] = $course_list_destination;
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 /* HTML head extra */
236 236
 
237 237
 $htmlHeadXtra[] = $xajax->getJavascript(
238
-    api_get_path(WEB_LIBRARY_PATH) . 'xajax/'
238
+    api_get_path(WEB_LIBRARY_PATH).'xajax/'
239 239
 );
240 240
 $htmlHeadXtra[] = '<script>
241 241
 	function checkSelected(id_select,id_radio,id_title,id_destination) {
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 
381 381
         CourseSelectForm :: display_form($course, $hiddenFields, true);
382 382
 
383
-        echo '<div style="float:right"><a href="javascript:window.history.go(-1);">' .
383
+        echo '<div style="float:right"><a href="javascript:window.history.go(-1);">'.
384 384
             Display::return_icon(
385 385
                 'back.png',
386 386
                 get_lang('Back').' '.get_lang('To').' '.get_lang(
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
                 ),
389 389
                 array('style' => 'vertical-align:middle')
390 390
             ).
391
-            get_lang('Back') . '</a></div>';
391
+            get_lang('Back').'</a></div>';
392 392
     } else {
393 393
         Display::display_error_message(
394 394
             get_lang('You must select a course from original session and select a destination session')
Please login to merge, or discard this patch.
main/survey/create_new_survey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 $form = new FormValidator(
101 101
     'survey',
102 102
     'post',
103
-    api_get_self().'?action='.Security::remove_XSS($_GET['action']).'&survey_id='.$survey_id. '&' . api_get_cidreq()
103
+    api_get_self().'?action='.Security::remove_XSS($_GET['action']).'&survey_id='.$survey_id.'&'.api_get_cidreq()
104 104
 );
105 105
 
106 106
 $form->addElement('header', $tool_name);
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             foreach ($field_list as $key => & $field) {
217 217
                 if ($field['visibility'] == 1) {
218 218
                     $form->addElement('checkbox', 'profile_'.$key, ' ', '&nbsp;&nbsp;'.$field['name']);
219
-                    $input_name_list.= 'profile_'.$key.',';
219
+                    $input_name_list .= 'profile_'.$key.',';
220 220
                 }
221 221
             }
222 222
 
Please login to merge, or discard this patch.
plugin/buycourses/src/buy_course_plugin.class.php 2 patches
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     /**
38 38
      *
39
-     * @return StaticPlugin
39
+     * @return BuyCoursesPlugin
40 40
      */
41 41
     static function create()
42 42
     {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     /**
253 253
      * Save a transfer account information
254 254
      * @param array $params The transfer account
255
-     * @return int Rows affected. Otherwise return false
255
+     * @return false|string Rows affected. Otherwise return false
256 256
      */
257 257
     public function saveTransferAccount($params)
258 258
     {
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
     /**
665 665
      * Get session info
666 666
      * @param array $sessionId The session ID
667
-     * @return array
667
+     * @return Session
668 668
      */
669 669
     public function getSessionInfo($sessionId)
670 670
     {
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
      * Register a sale
758 758
      * @param int $itemId The product ID
759 759
      * @param int $paymentType The payment type
760
-     * @return boolean
760
+     * @return false|string
761 761
      */
762 762
     public function registerSale($itemId, $paymentType)
763 763
     {
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
 
940 940
     /**
941 941
      * Get payment types
942
-     * @return array
942
+     * @return string[]
943 943
      */
944 944
     public function getPaymentTypes()
945 945
     {
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
 
978 978
     /**
979 979
      * Get the statuses for sales
980
-     * @return array
980
+     * @return string[]
981 981
      */
982 982
     public function getSaleStatuses()
983 983
     {
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
 
991 991
     /**
992 992
      * Get the statuses for Payouts
993
-     * @return array
993
+     * @return string[]
994 994
      */
995 995
     public function getPayoutStatuses()
996 996
     {
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
 
1004 1004
     /**
1005 1005
      * Get the list of product types
1006
-     * @return array
1006
+     * @return string[]
1007 1007
      */
1008 1008
     public function getProductTypes()
1009 1009
     {
@@ -1384,7 +1384,7 @@  discard block
 block discarded – undo
1384 1384
     /**
1385 1385
      * Register a item
1386 1386
      * @param array $itemData The item data
1387
-     * @return int The item ID. Otherwise return false
1387
+     * @return false|string The item ID. Otherwise return false
1388 1388
      */
1389 1389
     public function registerItem(array $itemData)
1390 1390
     {
@@ -1542,7 +1542,7 @@  discard block
 block discarded – undo
1542 1542
     /**
1543 1543
      * Verify if the beneficiary have a paypal account
1544 1544
      * @param int $userId
1545
-     * @return true if the user have a paypal account, false if not
1545
+     * @return boolean if the user have a paypal account, false if not
1546 1546
      */
1547 1547
     public function verifyPaypalAccountByBeneficiary($userId)
1548 1548
     {
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             return false;
92 92
         }
93 93
 
94
-        require_once api_get_path(SYS_PLUGIN_PATH) . 'buycourses/database.php';
94
+        require_once api_get_path(SYS_PLUGIN_PATH).'buycourses/database.php';
95 95
     }
96 96
 
97 97
     /**
@@ -135,10 +135,10 @@  discard block
 block discarded – undo
135 135
             $item = $this->getItemByProduct(intval($productId), $productType);
136 136
             $return['html'] = '<div class="buycourses-price">';
137 137
             if ($item) {
138
-                $return['html'] .= '<span class="label label-primary"><b>'. $item['iso_code'] .' ' . $item['price'] . '</b></span>';
138
+                $return['html'] .= '<span class="label label-primary"><b>'.$item['iso_code'].' '.$item['price'].'</b></span>';
139 139
                 $return['verificator'] = true;
140 140
             } else {
141
-                $return['html'] .= '<span class="label label-primary"><b>'. $this->get_lang('Free'). '</b></span>';
141
+                $return['html'] .= '<span class="label label-primary"><b>'.$this->get_lang('Free').'</b></span>';
142 142
                 $return['verificator'] = false;
143 143
             }
144 144
             $return['html'] .= '</div>';
@@ -156,15 +156,15 @@  discard block
 block discarded – undo
156 156
      * @return string $html
157 157
      */
158 158
     public function returnBuyCourseButton($productId, $productType) {
159
-        $url = api_get_path(WEB_PLUGIN_PATH) .
160
-            'buycourses/src/process.php?i=' .
161
-            intval($productId) .
162
-            '&t=' .
159
+        $url = api_get_path(WEB_PLUGIN_PATH).
160
+            'buycourses/src/process.php?i='.
161
+            intval($productId).
162
+            '&t='.
163 163
             $productType
164 164
         ;
165 165
 
166
-        $html = ' <a class="btn btn-success btn-sm" title="' . $this->get_lang('Buy') . '" href="' . $url . '">' .
167
-            Display::returnFontAwesomeIcon('fa fa-shopping-cart') . '</a>';
166
+        $html = ' <a class="btn btn-success btn-sm" title="'.$this->get_lang('Buy').'" href="'.$url.'">'.
167
+            Display::returnFontAwesomeIcon('fa fa-shopping-cart').'</a>';
168 168
 
169 169
         return $html;
170 170
     }
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
         );
710 710
 
711 711
         if (!empty($sessionImage)) {
712
-            $sessionInfo['image'] = api_get_path(WEB_UPLOAD_PATH) . $sessionImage['value'];
712
+            $sessionInfo['image'] = api_get_path(WEB_UPLOAD_PATH).$sessionImage['value'];
713 713
         }
714 714
 
715 715
         $sessionCourses = $session->getCourses();
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
 
1152 1152
         $str = '';
1153 1153
 
1154
-        srand((double)microtime() * 1000000);
1154
+        srand((double) microtime() * 1000000);
1155 1155
 
1156 1156
         for ($i = 0; $i < $length; $i++) {
1157 1157
             $numbers = rand(0, strlen($salt) - 1);
@@ -1498,8 +1498,8 @@  discard block
 block discarded – undo
1498 1498
      */
1499 1499
     public function getPayouts($status = self::PAYOUT_STATUS_PENDING, $payoutId = false, $userId = false)
1500 1500
     {
1501
-        $condition = ($payoutId) ? 'AND p.id = '. intval($payoutId) : '';
1502
-        $condition2 = ($userId) ? ' AND p.user_id = ' . intval($userId) : '';
1501
+        $condition = ($payoutId) ? 'AND p.id = '.intval($payoutId) : '';
1502
+        $condition2 = ($userId) ? ' AND p.user_id = '.intval($userId) : '';
1503 1503
         $typeResult = ($condition) ? 'first' : 'all';
1504 1504
         $payoutsTable = Database::get_main_table(BuyCoursesPlugin::TABLE_PAYPAL_PAYOUTS);
1505 1505
         $saleTable = Database::get_main_table(BuyCoursesPlugin::TABLE_SALE);
@@ -1526,14 +1526,14 @@  discard block
 block discarded – undo
1526 1526
             INNER JOIN $saleTable s ON s.id = p.sale_id
1527 1527
             INNER JOIN $currencyTable c ON s.currency_id = c.id
1528 1528
             LEFT JOIN  $extraFieldValues efv ON p.user_id = efv.item_id 
1529
-            AND field_id = " . intval($paypalExtraField['id']) . "
1529
+            AND field_id = ".intval($paypalExtraField['id'])."
1530 1530
         ";
1531 1531
 
1532 1532
         $payouts = Database::select(
1533 1533
             "p.* , u.firstname, u.lastname, efv.value as paypal_account, s.reference as sale_reference, s.price as item_price, c.iso_code",
1534 1534
             "$payoutsTable p $innerJoins",
1535 1535
             [
1536
-                'where' => ['p.status = ? '.$condition . ' ' .$condition2 => $status]
1536
+                'where' => ['p.status = ? '.$condition.' '.$condition2 => $status]
1537 1537
             ],
1538 1538
             $typeResult
1539 1539
         );
@@ -1597,7 +1597,7 @@  discard block
 block discarded – undo
1597 1597
         $platformCommission = $this->getPlatformCommission();
1598 1598
 
1599 1599
         $sale = $this->getSale($saleId);
1600
-        $teachersCommission = number_format((floatval($sale['price']) * intval($platformCommission['commission']))/100, 2);
1600
+        $teachersCommission = number_format((floatval($sale['price']) * intval($platformCommission['commission'])) / 100, 2);
1601 1601
 
1602 1602
 
1603 1603
         $beneficiaries = $this->getBeneficiariesBySale($saleId);
@@ -1609,7 +1609,7 @@  discard block
 block discarded – undo
1609 1609
                     'payout_date' => getdate(),
1610 1610
                     'sale_id' => intval($saleId),
1611 1611
                     'user_id' => $beneficiary['user_id'],
1612
-                    'commission' => number_format((floatval($teachersCommission) * intval($beneficiary['commissions']))/100, 2),
1612
+                    'commission' => number_format((floatval($teachersCommission) * intval($beneficiary['commissions'])) / 100, 2),
1613 1613
                     'status' => self::PAYOUT_STATUS_PENDING
1614 1614
                 ]
1615 1615
             );
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Language.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
     /**
231 231
      * Get id
232 232
      *
233
-     * @return boolean
233
+     * @return integer
234 234
      */
235 235
     public function getId()
236 236
     {
Please login to merge, or discard this patch.
main/coursecopy/create_backup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
 
71 71
     $zip_file = CourseArchiver::write_course($course);
72 72
     Display::display_confirmation_message(get_lang('BackupCreated'));
73
-    echo '<br /><a class="btn btn-primary btn-large" href="' . api_get_path(WEB_CODE_PATH) . 'course_info/download.php?archive=' . $zip_file . '&' . api_get_cidreq() . '">
74
-    ' . get_lang('Download') . '</a>';
73
+    echo '<br /><a class="btn btn-primary btn-large" href="'.api_get_path(WEB_CODE_PATH).'course_info/download.php?archive='.$zip_file.'&'.api_get_cidreq().'">
74
+    ' . get_lang('Download').'</a>';
75 75
 
76 76
 } elseif (Security::check_token('post') && (
77 77
         isset($_POST['backup_option']) &&
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $form = new FormValidator(
97 97
             'create_backup_form',
98 98
             'post',
99
-            api_get_self() . '?' . api_get_cidreq()
99
+            api_get_self().'?'.api_get_cidreq()
100 100
         );
101 101
         $form->addElement('header', get_lang('SelectOptionForBackup'));
102 102
         $form->addElement('radio', 'backup_option', '', get_lang('CreateFullBackup'), 'full_backup');
Please login to merge, or discard this patch.