Commit 80be824f by pzaremba

fixing wrapping - my NetBeans has a mind of its own.

parent 0bf39f6e
...@@ -952,8 +952,7 @@ class Request extends \yii\base\Request ...@@ -952,8 +952,7 @@ class Request extends \yii\base\Request
$n = preg_match_all('/\s*([\w\/\-\*]+)\s*(?:;\s*q\s*=\s*([\d\.]+))?[^,]*/', $header, $matches, PREG_SET_ORDER); $n = preg_match_all('/\s*([\w\/\-\*]+)\s*(?:;\s*q\s*=\s*([\d\.]+))?[^,]*/', $header, $matches, PREG_SET_ORDER);
for ($i = 0; $i < $n; ++$i) { for ($i = 0; $i < $n; ++$i) {
if (!empty($matches[$i][1])) { if (!empty($matches[$i][1])) {
$accepts[] = [$matches[$i][1], isset($matches[$i][2]) ? (float)$matches[$i][2] : 1, $accepts[] = [$matches[$i][1], isset($matches[$i][2]) ? (float)$matches[$i][2] : 1, $i];
$i];
} }
} }
usort($accepts, function ($a, $b) { usort($accepts, function ($a, $b) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment