Skip to content
/ yaml Public
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony/yaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.4.43
Choose a base ref
...
head repository: symfony/yaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.4.44
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Jun 27, 2022

  1. CS fixes

    nicolas-grekas committed Jun 27, 2022
    Copy the full SHA
    c2b28c1 View commit details
Showing with 4 additions and 4 deletions.
  1. +1 −1 Dumper.php
  2. +1 −1 Inline.php
  3. +2 −2 Parser.php
2 changes: 1 addition & 1 deletion Dumper.php
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ public function dump($input, int $inline = 0, int $indent = 0, int $flags = 0):
continue;
}

if ($inline - 1 <= 0 || null === $value->getValue() || is_scalar($value->getValue())) {
if ($inline - 1 <= 0 || null === $value->getValue() || \is_scalar($value->getValue())) {
$output .= ' '.$this->dump($value->getValue(), $inline - 1, 0, $flags)."\n";
} else {
$output .= "\n";
2 changes: 1 addition & 1 deletion Inline.php
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ public static function parse(string $value = null, int $flags = 0, array &$refer
return '';
}

if (2 /* MB_OVERLOAD_STRING */ & (int) ini_get('mbstring.func_overload')) {
if (2 /* MB_OVERLOAD_STRING */ & (int) \ini_get('mbstring.func_overload')) {
$mbEncoding = mb_internal_encoding();
mb_internal_encoding('ASCII');
}
4 changes: 2 additions & 2 deletions Parser.php
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ public function parse(string $value, int $flags = 0)

$mbEncoding = null;

if (2 /* MB_OVERLOAD_STRING */ & (int) ini_get('mbstring.func_overload')) {
if (2 /* MB_OVERLOAD_STRING */ & (int) \ini_get('mbstring.func_overload')) {
$mbEncoding = mb_internal_encoding();
mb_internal_encoding('UTF-8');
}
@@ -988,7 +988,7 @@ private function isCurrentLineBlank(): bool
*/
private function isCurrentLineComment(): bool
{
//checking explicitly the first char of the trim is faster than loops or strpos
// checking explicitly the first char of the trim is faster than loops or strpos
$ltrimmedLine = ltrim($this->currentLine, ' ');

return '' !== $ltrimmedLine && '#' === $ltrimmedLine[0];