Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/Header/AbstractAccept.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ protected function assembleAcceptParam(&$value, $key)
220220
'/', '[', ']', '?', '=', '{', '}', ' ', "\t");
221221

222222
$escaped = preg_replace_callback('/[[:cntrl:]"\\\\]/', // escape cntrl, ", \
223-
function($v) { return '\\' . $v[0]; },
224-
$value
225-
);
223+
function ($v) {
224+
return '\\' . $v[0];
225+
},
226+
$value
227+
);
226228

227229
if ($escaped == $value && !array_intersect(str_split($value), $separators)) {
228230
$value = $key . '=' . $value;
@@ -405,7 +407,7 @@ protected function addFieldValuePartToQueue($value)
405407
*/
406408
protected function sortFieldValueParts()
407409
{
408-
$sort = function($a, $b) { // If A has higher prio than B, return -1.
410+
$sort = function ($a, $b) { // If A has higher prio than B, return -1.
409411
if ($a->priority > $b->priority) {
410412
return -1;
411413
} elseif ($a->priority < $b->priority) {

src/Header/SetCookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function fromString($headerLine, $bypassHeaderFieldName = false)
9595

9696
if ($setCookieProcessor === null) {
9797
$setCookieClass = get_called_class();
98-
$setCookieProcessor = function($headerLine) use ($setCookieClass) {
98+
$setCookieProcessor = function ($headerLine) use ($setCookieClass) {
9999
$header = new $setCookieClass;
100100
$keyValuePairs = preg_split('#;\s*#', $headerLine);
101101
foreach ($keyValuePairs as $keyValue) {

0 commit comments

Comments
 (0)