8000 Coding standard fix · symfony/symfony@893db8d · GitHub
[go: up one dir, main page]

Skip to content

Commit 893db8d

Browse files
committed
Coding standard fix
1 parent b749733 commit 893db8d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Symfony/Component/Yaml/Escaper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,23 @@ public static function escapeWithSingleQuotes($value)
8686
{
8787
return sprintf("'%s'", str_replace('\'', '\'\'', $value));
8888
}
89-
89+
9090
/**
9191
* Determines if a PHP value contains any single characters that would cause
9292
* the value to require single quoting in YAML.
93-
*
93+
*
9494
* @param string $value A PHP value
9595
* @return bool True if the value would require single quotes.
9696
*/
9797
private static function containsCharRequiresSingleQuoting($value)
9898
{
9999
return preg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ \- ? | < > = ! % @ ` ]/x', $value);
100100
}
101-
101+
102102
/**
103-
* Determines if a PHP value is entirely composed of a value that would
103+
* Determines if a PHP value is entirely composed of a value that would
104104
* require require single quoting in YAML.
105-
*
105+
*
106106
* @param string $value A PHP value
107107
* @return bool True if the value would require single quotes.
108108
*/

src/Symfony/Component/Yaml/Tests/InlineTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected function getTestsForParse()
189189
"'foo # bar'" => 'foo # bar',
190190
"'#cfcfcf'" => '#cfcfcf',
191191
'::form_base.html.twig' => '::form_base.html.twig',
192-
192+
193193
// Pre-YAML-1.2 booleans
194194
"'y'" => 'y',
195195
"'n'" => 'n',
@@ -264,7 +264,7 @@ protected function getTestsForDump()
264264

265265
"'-dash'" => '-dash',
266266
"'-'" => '-',
267-
267+
268268
// Pre-YAML-1.2 booleans
269269
"'y'" => 'y',
270270
"'n'" => 'n',

0 commit comments

Comments
 (0)
0