Skip to content

Commit

Permalink
Remove aligned '=>' and '='
Browse files Browse the repository at this point in the history
  • Loading branch information
polc authored and fabpot committed Oct 26, 2014
1 parent 34687c6 commit 99b4ee7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Escaper.php
Expand Up @@ -32,7 +32,7 @@ class Escaper
"\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17",
"\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f",
"\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9",);
private static $escaped = array('\\\\', '\\"', '\\\\', '\\"',
private static $escaped = array('\\\\', '\\"', '\\\\', '\\"',
"\\0", "\\x01", "\\x02", "\\x03", "\\x04", "\\x05", "\\x06", "\\a",
"\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "\\x0e", "\\x0f",
"\\x10", "\\x11", "\\x12", "\\x13", "\\x14", "\\x15", "\\x16", "\\x17",
Expand Down
10 changes: 5 additions & 5 deletions Parser.php
Expand Up @@ -22,11 +22,11 @@ class Parser
{
const FOLDED_SCALAR_PATTERN = '(?P<separator>\||>)(?P<modifiers>\+|\-|\d+|\+\d+|\-\d+|\d+\+|\d+\-)?(?P<comments> +#.*)?';

private $offset = 0;
private $lines = array();
private $currentLineNb = -1;
private $currentLine = '';
private $refs = array();
private $offset = 0;
private $lines = array();
private $currentLineNb = -1;
private $currentLine = '';
private $refs = array();

/**
* Constructor
Expand Down
4 changes: 2 additions & 2 deletions Tests/Fixtures/YtsSpecificationExamples.yml
Expand Up @@ -463,9 +463,9 @@ yaml: |
0.278 Batting Average
php: |
array(
'name' => 'Mark McGwire',
'name' => 'Mark McGwire',
'accomplishment' => "Mark set a major league home run record in 1998.\n",
'stats' => "65 Home Runs\n0.278 Batting Average\n"
'stats' => "65 Home Runs\n0.278 Batting Average\n"
)
---
test: Quoted scalars
Expand Down
2 changes: 1 addition & 1 deletion Tests/ParserTest.php
Expand Up @@ -577,7 +577,7 @@ public function testFoldedStringBlockWithComments()
public function testNestedFoldedStringBlockWithComments()
{
$this->assertEquals(array(array(
'title' => 'some title',
'title' => 'some title',
'content' => <<<EOT
# comment 1
header
Expand Down

0 comments on commit 99b4ee7

Please sign in to comment.