Skip to content

Commit 254b973

Browse files
keradusfabpot
authored andcommitted
chore: PHP CS Fixer fixes
1 parent 099581e commit 254b973

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

Escaper.php

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,24 @@ class Escaper
2828
// first to ensure proper escaping because str_replace operates iteratively
2929
// on the input arrays. This ordering of the characters avoids the use of strtr,
3030
// which performs more slowly.
31-
private const ESCAPEES = ['\\', '\\\\', '\\"', '"',
32-
"\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07",
33-
"\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f",
34-
"\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17",
35-
"\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f",
36-
"\x7f",
37-
"\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9",
38-
];
39-
private const ESCAPED = ['\\\\', '\\"', '\\\\', '\\"',
40-
'\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a',
41-
'\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f',
42-
'\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17',
43-
'\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f',
44-
'\\x7f',
45-
'\\N', '\\_', '\\L', '\\P',
46-
];
31+
private const ESCAPEES = [
32+
'\\', '\\\\', '\\"', '"',
33+
"\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07",
34+
"\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f",
35+
"\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17",
36+
"\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f",
37+
"\x7f",
38+
"\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9",
39+
];
40+
private const ESCAPED = [
41+
'\\\\', '\\"', '\\\\', '\\"',
42+
'\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a',
43+
'\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f',
44+
'\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17',
45+
'\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f',
46+
'\\x7f',
47+
'\\N', '\\_', '\\L', '\\P',
48+
];
4749

4850
/**
4951
* Determines if a PHP value would require double quoting in YAML.

0 commit comments

Comments
 (0)