update2
This commit is contained in:
parent
98419bd18d
commit
8a69e45efa
4919 changed files with 28311 additions and 224136 deletions
6
pfosten/vendor/symfony/http-foundation/AcceptHeader.php
vendored
Executable file → Normal file
6
pfosten/vendor/symfony/http-foundation/AcceptHeader.php
vendored
Executable file → Normal file
|
|
@ -32,8 +32,6 @@ class AcceptHeader
|
|||
private $sorted = true;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param AcceptHeaderItem[] $items
|
||||
*/
|
||||
public function __construct(array $items)
|
||||
|
|
@ -99,8 +97,6 @@ class AcceptHeader
|
|||
/**
|
||||
* Adds an item.
|
||||
*
|
||||
* @param AcceptHeaderItem $item
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function add(AcceptHeaderItem $item)
|
||||
|
|
@ -155,7 +151,7 @@ class AcceptHeader
|
|||
private function sort()
|
||||
{
|
||||
if (!$this->sorted) {
|
||||
uasort($this->items, function ($a, $b) {
|
||||
uasort($this->items, function (AcceptHeaderItem $a, AcceptHeaderItem $b) {
|
||||
$qA = $a->getQuality();
|
||||
$qB = $b->getQuality();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue