Completed
Pull Request — 1.11.x (#1688)
by José
28:44
created
main/course_home/2column.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     // Show message to confirm that a tool it to be hidden from available tools
57 57
     // visibility 0,1->2
58 58
     if (!empty($_GET['askDelete'])) {
59
-        $content .='<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
59
+        $content .= '<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
60 60
             <a href="'.api_get_self().'">'.get_lang('No').'</a>&nbsp;|&nbsp;
61 61
             <a href="'.api_get_self().'?delete=yes&id='.intval($_GET['id']).'">'.get_lang('Yes').'</a>
62 62
         </div>';
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     /*	INACTIVE TOOLS - HIDDEN (GREY) LINKS */
94 94
 
95
-    $content .=	"<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n".
95
+    $content .= "<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n".
96 96
             "<tr>\n".
97 97
             "<td colspan=\"4\">\n".
98 98
             "<div style=\"margin-bottom: 10px;\"><font color=\"#808080\">\n".get_lang('InLnk')."</font></div>".
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 
102 102
     $content .= CourseHome::show_tool_2column(TOOL_PUBLIC_BUT_HIDDEN);
103 103
 
104
-    $content .=	"</table>";
105
-    $content .=	"</div> ";
104
+    $content .= "</table>";
105
+    $content .= "</div> ";
106 106
 }
107 107
 
108 108
 /*	Tools for platform admin only */
109 109
 
110 110
 if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) {
111
-    $content .='<div class="platformadminview">
111
+    $content .= '<div class="platformadminview">
112 112
     <span class="viewcaption">'.get_lang('PlatformAdminOnly').'</span>
113 113
     <table width="100%">
114 114
         '.CourseHome::show_tool_2column(TOOL_PLATFORM_ADMIN).'
Please login to merge, or discard this patch.
main/course_home/vertical_activity.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     // Show message to confirm that a tool it to be hidden from available tools
38 38
     // visibility 0,1->2
39 39
     if (!empty($_GET['askDelete'])) {
40
-        $content .='<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
40
+        $content .= '<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
41 41
             <a href="'.api_get_self().'">'.get_lang('No').'</a>&nbsp;|&nbsp;
42 42
             <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a>
43 43
         </div>';
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 
56 56
 // Start of tools for CourseAdmins (teachers/tutors)
57 57
 if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
58
-    $content .=  '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;">
58
+    $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;">
59 59
     <div class="normal-message" id="id_normal_message" style="display:none">';
60
-        $content .=  '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
61
-        $content .=  get_lang('PleaseStandBy');
60
+        $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
61
+        $content .= get_lang('PleaseStandBy');
62 62
 
63
-    $content .=  '</div>
63
+    $content .= '</div>
64 64
         <div class="confirmation-message" id="id_confirmation_message" style="display:none"></div></div>';
65
-    $content .=  '<div id="activity-3col">';
65
+    $content .= '<div id="activity-3col">';
66 66
 
67 67
     if (api_get_setting('show_session_data') == 'true' && $session_id > 0) {
68 68
         $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span>
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
         $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span>
91 91
             <table width="100%">';
92 92
                 $content .= CourseHome::show_session_data($session_id);
93
-             $content .=  '</table></div>';
93
+             $content .= '</table></div>';
94 94
     }
95 95
 
96
-    $content .=  '<div class="Authoringview">';
96
+    $content .= '<div class="Authoringview">';
97 97
                 $my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW);
98 98
                 $content .= CourseHome::show_tools_category($my_list);
99 99
     $content .= '</div>';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $order_tool_list = array();
107 107
         foreach ($my_list as $key => $new_tool) {
108 108
             $tool_name = CourseHome::translate_tool_name($new_tool);
109
-            $order_tool_list [$key]= $tool_name;
109
+            $order_tool_list [$key] = $tool_name;
110 110
         }
111 111
         natsort($order_tool_list);
112 112
         $my_temp_tool_array = array();
Please login to merge, or discard this patch.
main/course_description/listing.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@  discard block
 block discarded – undo
11 11
 api_protect_course_script(true);
12 12
 
13 13
 // display actions menu
14
-if (api_is_allowed_to_edit(null,true)) {
14
+if (api_is_allowed_to_edit(null, true)) {
15 15
     $categories = array();
16 16
     foreach ($default_description_titles as $id => $title) {
17 17
         $categories[$id] = $title;
18 18
     }
19 19
     $categories[ADD_BLOCK] = get_lang('NewBloc');
20 20
 
21
-	$i=1;
21
+	$i = 1;
22 22
 	echo '<div class="actions" style="margin-bottom:30px">';
23 23
 	ksort($categories);
24 24
 	foreach ($categories as $id => $title) {
25
-		if ($i==ADD_BLOCK) {
25
+		if ($i == ADD_BLOCK) {
26 26
 			echo '<a href="index.php?'.api_get_cidreq().'&action=add">'.
27 27
                 Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
28 28
 			break;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             <tr>
44 44
                 <td><h3>'.get_lang('ThematicAdvanceHistory').'</h3></td>
45 45
                 <td align="right"><a href="index.php?action=listing">'.
46
-                Display::return_icon('info.png',get_lang('BackToCourseDesriptionList'), array('style'=>'vertical-align:middle;'),ICON_SIZE_SMALL).' '.get_lang('BackToCourseDesriptionList').'</a></td></tr></table></div>';
46
+                Display::return_icon('info.png', get_lang('BackToCourseDesriptionList'), array('style'=>'vertical-align:middle;'), ICON_SIZE_SMALL).' '.get_lang('BackToCourseDesriptionList').'</a></td></tr></table></div>';
47 47
 }
48 48
 
49 49
 $user_info = api_get_user_info();
@@ -52,21 +52,21 @@  discard block
 block discarded – undo
52 52
 	foreach ($descriptions as $id => $description) {
53 53
         if (!empty($description)) {
54 54
             $actions = '';
55
-            if (api_is_allowed_to_edit(null,true) && !$history) {
55
+            if (api_is_allowed_to_edit(null, true) && !$history) {
56 56
                 if (api_get_session_id() == $description['session_id']) {
57 57
                     $description['title'] = $description['title'].' '.api_get_session_image(api_get_session_id(), $user_info['status']);
58 58
 
59 59
                     // delete
60
-                    $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=delete&description_type='.$description['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,api_get_system_encoding())).'\')) return false;">';
61
-                    $actions .= Display::return_icon('delete.png', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'),ICON_SIZE_SMALL);
60
+                    $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=delete&description_type='.$description['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, api_get_system_encoding())).'\')) return false;">';
61
+                    $actions .= Display::return_icon('delete.png', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'), ICON_SIZE_SMALL);
62 62
                     $actions .= '</a> ';
63 63
 
64 64
                     // edit
65 65
                     $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=edit&description_type='.$description['description_type'].'">';
66
-                    $actions .= Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align:middle;float:right; padding-right:4px;'),ICON_SIZE_SMALL);
66
+                    $actions .= Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align:middle;float:right; padding-right:4px;'), ICON_SIZE_SMALL);
67 67
                     $actions .= '</a> ';
68 68
                 } else {
69
-                    $actions .= Display::return_icon('edit_na.png', get_lang('EditionNotAvailableFromSession'), array('style' => 'vertical-align:middle;float:right;'),ICON_SIZE_SMALL);
69
+                    $actions .= Display::return_icon('edit_na.png', get_lang('EditionNotAvailableFromSession'), array('style' => 'vertical-align:middle;float:right;'), ICON_SIZE_SMALL);
70 70
                 }
71 71
             }
72 72
             echo Display::panel(
Please login to merge, or discard this patch.
main/course_description/edit.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,21 +34,21 @@  discard block
 block discarded – undo
34 34
 }
35 35
 $categories[ADD_BLOCK] = get_lang('NewBloc');
36 36
 
37
-$i=1;
37
+$i = 1;
38 38
 echo '<div class="actions" style="margin-bottom:30px">';
39 39
 echo '<a href="index.php?'.api_get_cidreq().'">'.
40
-		Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('ToolCourseDescription'),'',ICON_SIZE_MEDIUM).
40
+		Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ToolCourseDescription'), '', ICON_SIZE_MEDIUM).
41 41
 	'</a>';
42 42
 
43 43
 ksort($categories);
44 44
 foreach ($categories as $id => $title) {
45
-	if ($i==ADD_BLOCK) {
45
+	if ($i == ADD_BLOCK) {
46 46
 		echo '<a href="index.php?'.api_get_cidreq().'&action=add">'.
47
-			Display::return_icon($default_description_icon[$id], $title,'',ICON_SIZE_MEDIUM).'</a>';
47
+			Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
48 48
 		break;
49 49
 	} else {
50 50
 		echo '<a href="index.php?action=edit&'.api_get_cidreq().'&description_type='.$id.'">'.
51
-			Display::return_icon($default_description_icon[$id], $title,'',ICON_SIZE_MEDIUM).'</a>';
51
+			Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
52 52
 		$i++;
53 53
 	}
54 54
 }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 // error messages
58 58
 if (isset($error) && intval($error) == 1) {
59
-	Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'),false);
59
+	Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false);
60 60
 }
61 61
 
62 62
 // default header title form
Please login to merge, or discard this patch.
main/inc/lib/app_view.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param string  tool name (optional)
17 17
      * @param string $template_path
18 18
      */
19
-    public function __construct($toolname = '', $template_path=null)
19
+    public function __construct($toolname = '', $template_path = null)
20 20
     {
21 21
         if (!empty($toolname)) {
22 22
             if (isset($template_path)) {
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             if (is_dir($path)) {
28 28
                 $this->tool_path = $path;
29 29
             } else {
30
-                throw new Exception('View::__construct() $path directory does not exist ' . $path);
30
+                throw new Exception('View::__construct() $path directory does not exist '.$path);
31 31
             }
32 32
         }
33 33
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function set_data($data)
40 40
     {
41 41
         if (!is_array($data)) {
42
-            throw new Exception('View::set_data() $data must to be an array, you have sent a' . gettype( $data ));
42
+            throw new Exception('View::set_data() $data must to be an array, you have sent a'.gettype($data));
43 43
         }
44 44
         $this->data = $data;
45 45
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param string layout view
50 50
      * @param string $layout
51 51
      */
52
-    public function set_layout( $layout )
52
+    public function set_layout($layout)
53 53
     {
54 54
         $this->layout = $layout;
55 55
     }
Please login to merge, or discard this patch.
main/course_progress/thematic_plan.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 // actions menu
11 11
 $new_thematic_plan_data = array();
12 12
 if (!empty($thematic_plan_data))
13
-foreach($thematic_plan_data as $thematic_item) {
13
+foreach ($thematic_plan_data as $thematic_item) {
14 14
     $thematic_simple_list[] = $thematic_item['description_type'];
15 15
     $new_thematic_plan_data[$thematic_item['description_type']] = $thematic_item;
16 16
 }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     }
26 26
 }
27 27
 
28
-$i=1;
28
+$i = 1;
29 29
 
30 30
 echo Display::tag('h2', $thematic_data['title']);
31 31
 echo $thematic_data['content'];
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
             $thematic_plan = null;
68 68
         } else {
69 69
             $thematic_plan = null;
70
-            $default['title['.$id.']']       = $title;
71
-            $default['description['.$id.']']= '';
70
+            $default['title['.$id.']'] = $title;
71
+            $default['description['.$id.']'] = '';
72 72
         }
73 73
         $form->setDefaults($default);
74 74
     }
Please login to merge, or discard this patch.
main/chat/chat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 ];
18 18
 
19 19
 foreach ($externalCSS as $css) {
20
-    $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_JS_PATH) . $css);
20
+    $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_JS_PATH).$css);
21 21
 }
22 22
 
23
-$htmlHeadXtra[] = api_get_css(api_get_path(WEB_CSS_PATH) . 'chat.css');
24
-$htmlHeadXtra[] = api_get_css(api_get_path(WEB_CSS_PATH) . 'markdown.css');
23
+$htmlHeadXtra[] = api_get_css(api_get_path(WEB_CSS_PATH).'chat.css');
24
+$htmlHeadXtra[] = api_get_css(api_get_path(WEB_CSS_PATH).'markdown.css');
25 25
 
26 26
 $externalJS = [
27 27
     'highlight/highlight.pack.js',
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         continue;
42 42
     }
43 43
 
44
-    $iconList[$key] = strtoupper($icon) . '.png';
44
+    $iconList[$key] = strtoupper($icon).'.png';
45 45
 }
46 46
 
47 47
 $view = new Template(get_lang('Chat'), false, false, false, true, false);
Please login to merge, or discard this patch.
main/inc/lib/extra_field_option.lib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
                         foreach ($sub_options as $sub_option) {
218 218
                             if (!empty($sub_option)) {
219
-                                $new_params  = array(
219
+                                $new_params = array(
220 220
                                     'field_id' => $field_id,
221 221
                                     'option_value' => $sub_id,
222 222
                                     'display_text' => $sub_option,
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
         $form->addElement('hidden', 'field_id', $this->field_id);
661 661
 
662 662
         if ($action == 'edit') {
663
-            $translateUrl = api_get_path(WEB_CODE_PATH) . 'extrafield/translate.php?' . http_build_query([
663
+            $translateUrl = api_get_path(WEB_CODE_PATH).'extrafield/translate.php?'.http_build_query([
664 664
                 'extra_field_option' => $id
665 665
             ]);
666 666
             $translateButton = Display::toolbarButton(get_lang('TranslateThisTerm'), $translateUrl, 'language', 'link');
Please login to merge, or discard this patch.
main/auth/openid/login.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     // Now that there is an association created, move on
65 65
     // to request authentication from the IdP
66 66
     $identity = (!empty($services[0]['delegate'])) ? $services[0]['delegate'] : $claimed_id;
67
-    if (isset($services[0]['types']) && is_array($services[0]['types']) && in_array(OPENID_NS_2_0 . '/server', $services[0]['types'])) {
67
+    if (isset($services[0]['types']) && is_array($services[0]['types']) && in_array(OPENID_NS_2_0.'/server', $services[0]['types'])) {
68 68
         $identity = 'http://openid.net/identifier_select/2.0';
69 69
     }
70 70
     $authn_request = openid_authentication_request($claimed_id, $identity, $return_to, $assoc_handle, $services[0]['version']);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
     $xrds_url = $claimed_id;
121 121
     if (_openid_is_xri($claimed_id)) {
122
-        $xrds_url = 'http://xri.net/' . $claimed_id;
122
+        $xrds_url = 'http://xri.net/'.$claimed_id;
123 123
     }
124 124
     $url = @parse_url($xrds_url);
125 125
     if ($url['scheme'] == 'http' || $url['scheme'] == 'https') {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     //@todo Remove Old Associations:
183 183
     $openid_association = Database::get_main_table(TABLE_MAIN_OPENID_ASSOCIATION);
184 184
     $sql = "DELETE FROM $openid_association
185
-            WHERE created + expires_in < '" . api_get_utc_datetime() . "'";
185
+            WHERE created + expires_in < '".api_get_utc_datetime()."'";
186 186
     Database::query($sql);
187 187
 
188 188
     // Check to see if we have an association for this IdP already
@@ -339,17 +339,17 @@  discard block
 block discarded – undo
339 339
     switch ($uri['scheme']) {
340 340
         case 'http':
341 341
             $port = isset($uri['port']) ? $uri['port'] : 80;
342
-            $host = $uri['host'] . ($port != 80 ? ':' . $port : '');
342
+            $host = $uri['host'].($port != 80 ? ':'.$port : '');
343 343
             $fp = @fsockopen($uri['host'], $port, $errno, $errstr, 15);
344 344
             break;
345 345
         case 'https':
346 346
             // Note: Only works for PHP 4.3 compiled with OpenSSL.
347 347
             $port = isset($uri['port']) ? $uri['port'] : 443;
348
-            $host = $uri['host'] . ($port != 443 ? ':' . $port : '');
349
-            $fp = @fsockopen('ssl://' . $uri['host'], $port, $errno, $errstr, 20);
348
+            $host = $uri['host'].($port != 443 ? ':'.$port : '');
349
+            $fp = @fsockopen('ssl://'.$uri['host'], $port, $errno, $errstr, 20);
350 350
             break;
351 351
         default:
352
-            $result->error = 'invalid schema ' . $uri['scheme'];
352
+            $result->error = 'invalid schema '.$uri['scheme'];
353 353
             return $result;
354 354
     }
355 355
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     // Construct the path to act on.
366 366
     $path = isset($uri['path']) ? $uri['path'] : '/';
367 367
     if (isset($uri['query'])) {
368
-        $path .= '?' . $uri['query'];
368
+        $path .= '?'.$uri['query'];
369 369
     }
370 370
 
371 371
     // Create HTTP request.
@@ -375,23 +375,23 @@  discard block
 block discarded – undo
375 375
         // host that do not take into account the port number.
376 376
         'Host' => "Host: $host",
377 377
         'User-Agent' => 'User-Agent: Chamilo (+http://www.chamilo.org/)',
378
-        'Content-Length' => 'Content-Length: ' . strlen($data)
378
+        'Content-Length' => 'Content-Length: '.strlen($data)
379 379
     );
380 380
 
381 381
     // If the server url has a user then attempt to use basic authentication
382 382
     if (isset($uri['user'])) {
383
-        $defaults['Authorization'] = 'Authorization: Basic ' . base64_encode($uri['user'] . (!empty($uri['pass']) ? ":" . $uri['pass'] : ''));
383
+        $defaults['Authorization'] = 'Authorization: Basic '.base64_encode($uri['user'].(!empty($uri['pass']) ? ":".$uri['pass'] : ''));
384 384
     }
385 385
 
386 386
     foreach ($headers as $header => $value) {
387
-        $defaults[$header] = $header . ': ' . $value;
387
+        $defaults[$header] = $header.': '.$value;
388 388
     }
389 389
 
390
-    $request = $method . ' ' . $path . " HTTP/1.0\r\n";
390
+    $request = $method.' '.$path." HTTP/1.0\r\n";
391 391
     $request .= implode("\r\n", $defaults);
392 392
     $request .= "\r\n\r\n";
393 393
     if ($data) {
394
-        $request .= $data . "\r\n";
394
+        $request .= $data."\r\n";
395 395
     }
396 396
     $result->request = $request;
397 397
 
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
         if (isset($result->headers[$header]) && $header == 'Set-Cookie') {
418 418
             // RFC 2109: the Set-Cookie response header comprises the token Set-
419 419
             // Cookie:, followed by a comma-separated list of one or more cookies.
420
-            $result->headers[$header] .= ',' . trim($value);
420
+            $result->headers[$header] .= ','.trim($value);
421 421
         } else {
422 422
             $result->headers[$header] = trim($value);
423 423
         }
Please login to merge, or discard this patch.