File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
tests/Core/Generators/Expectations Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ protected function printCodeComparisonBlock(DOMNode $node)
133
133
{
134
134
$ codeBlocks = $ node ->getElementsByTagName ('code ' );
135
135
$ first = trim ($ codeBlocks ->item (0 )->nodeValue );
136
- $ firstTitle = $ codeBlocks ->item (0 )->getAttribute ('title ' );
136
+ $ firstTitle = trim ( $ codeBlocks ->item (0 )->getAttribute ('title ' ) );
137
137
138
138
$ firstTitleLines = [];
139
139
$ tempTitle = '' ;
@@ -168,7 +168,7 @@ protected function printCodeComparisonBlock(DOMNode $node)
168
168
$ firstLines = explode ("\n" , $ first );
169
169
170
170
$ second = trim ($ codeBlocks ->item (1 )->nodeValue );
171
- $ secondTitle = $ codeBlocks ->item (1 )->getAttribute ('title ' );
171
+ $ secondTitle = trim ( $ codeBlocks ->item (1 )->getAttribute ('title ' ) );
172
172
173
173
$ secondTitleLines = [];
174
174
$ tempTitle = '' ;
Original file line number Diff line number Diff line change 6
6
This is a standard block.
7
7
8
8
----------------------------------------- CODE COMPARISON ------------------------------------------
9
- | Valid: spaces at start of description. | Invalid: spaces at end making line > 46 chars. |
10
- | | |
9
+ | Valid: spaces at start of description. | Invalid: spaces at end making line > 46 chars. |
11
10
----------------------------------------------------------------------------------------------------
12
11
| // Dummy. | // Dummy. |
13
12
----------------------------------------------------------------------------------------------------
14
13
15
14
----------------------------------------- CODE COMPARISON ------------------------------------------
16
- | Valid: spaces at start + end of description. | Invalid: spaces ' ' in description. |
17
- | | |
15
+ | Valid: spaces at start + end of description. | Invalid: spaces ' ' in description. |
18
16
----------------------------------------------------------------------------------------------------
19
17
| // Note: description above without the | // Dummy. |
20
18
| // trailing whitespace fits in 46 chars. | |
You can’t perform that action at this time.
0 commit comments