Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7cf16b0

Browse filesBrowse files
committed
use single quotes
1 parent 8e8a470 commit 7cf16b0
Copy full SHA for 7cf16b0

File tree

1 file changed

+6
-6
lines changed
Filter options

1 file changed

+6
-6
lines changed

‎src/Symfony/Component/HttpFoundation/HeaderUtils.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/HeaderUtils.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ private function __construct()
3333
*
3434
* Example:
3535
*
36-
* HeaderUtils::split("da, en-gb;q=0.8", ",;")
36+
* HeaderUtils::split('da, en-gb;q=0.8', ',;')
3737
* // => ['da'], ['en-gb', 'q=0.8']]
3838
*
3939
* @param string $separators List of characters to split on, ordered by
40-
* precedence, e.g. ",", ";=", or ",;="
40+
* precedence, e.g. ',', ';=', or ',;='
4141
*
4242
* @return array Nested array with as many levels as there are characters in
4343
* $separators
@@ -77,8 +77,8 @@ public static function split(string $header, string $separators): array
7777
*
7878
* Example:
7979
*
80-
* HeaderUtils::combine([["foo", "abc"], ["bar"]])
81-
* // => ["foo" => "abc", "bar" => true]
80+
* HeaderUtils::combine([['foo', 'abc'], ['bar']])
81+
* // => ['foo' => 'abc', 'bar' => true]
8282
*/
8383
public static function combine(array $parts): array
8484
{
@@ -95,13 +95,13 @@ public static function combine(array $parts): array
9595
/**
9696
* Joins an associative array into a string for use in an HTTP header.
9797
*
98-
* The key and value of each entry are joined with "=", and all entries
98+
* The key and value of each entry are joined with '=', and all entries
9999
* are joined with the specified separator and an additional space (for
100100
* readability). Values are quoted if necessary.
101101
*
102102
* Example:
103103
*
104-
* HeaderUtils::toString(["foo" => "abc", "bar" => true, "baz" => "a b c"], ",")
104+
* HeaderUtils::toString(['foo' => 'abc', 'bar' => true, 'baz' => 'a b c'], ',')
105105
* // => 'foo=abc, bar, baz="a b c"'
106106
*/
107107
public static function toString(array $assoc, string $separator): string

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.