@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function testCanCreateLineReturn() |
35 | 35 | { |
36 | - $newlineTest = new Newline(1,'return'); |
|
36 | + $newlineTest = new Newline(1, 'return'); |
|
37 | 37 | $nl = $newlineTest->nl; |
38 | 38 | $this->assertEquals("\r", $nl); |
39 | 39 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function testCanCreateMultipleLineReturn() |
45 | 45 | { |
46 | - $newlineTest = new Newline(5,'return'); |
|
46 | + $newlineTest = new Newline(5, 'return'); |
|
47 | 47 | $nl = $newlineTest->nl; |
48 | 48 | $this->assertEquals("\r\r\r\r\r", $nl); |
49 | 49 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function testCanCreateLineBoth() |
55 | 55 | { |
56 | - $newlineTest = new Newline(1,'both'); |
|
56 | + $newlineTest = new Newline(1, 'both'); |
|
57 | 57 | $nl = $newlineTest->nl; |
58 | 58 | $this->assertEquals("\r\n", $nl); |
59 | 59 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function testCanCreateMultipleLineBoth() |
65 | 65 | { |
66 | - $newlineTest = new Newline(9,'both'); |
|
66 | + $newlineTest = new Newline(9, 'both'); |
|
67 | 67 | $nl = $newlineTest->nl; |
68 | 68 | $this->assertEquals("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", $nl); |
69 | 69 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function testCanCreateEscapedSpace() |
35 | 35 | { |
36 | - $spaceTest = new Space(1,'escaped'); |
|
36 | + $spaceTest = new Space(1, 'escaped'); |
|
37 | 37 | $sp = $spaceTest->spaces; |
38 | 38 | $this->assertEquals("\040", $sp); |
39 | 39 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function testCanCreateMultipleEscapedSpaces() |
45 | 45 | { |
46 | - $spaceTest = new Space(6,'escaped'); |
|
46 | + $spaceTest = new Space(6, 'escaped'); |
|
47 | 47 | $sp = $spaceTest->spaces; |
48 | 48 | $this->assertEquals("\040\040\040\040\040\040", $sp); |
49 | 49 | } |
@@ -39,15 +39,15 @@ |
||
39 | 39 | private function generateBreak() |
40 | 40 | { |
41 | 41 | if ('linebreak' == $this->kind) { |
42 | - foreach($this->lineBreak($this->lines) as $linebreak) { |
|
42 | + foreach ($this->lineBreak($this->lines) as $linebreak) { |
|
43 | 43 | $this->nl .= $linebreak; |
44 | 44 | } |
45 | 45 | } elseif ('return' == $this->kind) { |
46 | - foreach($this->lineReturn($this->lines) as $linebreak) { |
|
46 | + foreach ($this->lineReturn($this->lines) as $linebreak) { |
|
47 | 47 | $this->nl .= $linebreak; |
48 | 48 | } |
49 | 49 | } elseif ('both' == $this->kind) { |
50 | - foreach($this->lineBoth($this->lines) as $linebreak) { |
|
50 | + foreach ($this->lineBoth($this->lines) as $linebreak) { |
|
51 | 51 | $this->nl .= $linebreak; |
52 | 52 | } |
53 | 53 | } |