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)
133133 {
134134 $ codeBlocks = $ node ->getElementsByTagName ('code ' );
135135 $ first = trim ($ codeBlocks ->item (0 )->nodeValue );
136- $ firstTitle = $ codeBlocks ->item (0 )->getAttribute ('title ' );
136+ $ firstTitle = trim ( $ codeBlocks ->item (0 )->getAttribute ('title ' ) );
137137
138138 $ firstTitleLines = [];
139139 $ tempTitle = '' ;
@@ -168,7 +168,7 @@ protected function printCodeComparisonBlock(DOMNode $node)
168168 $ firstLines = explode ("\n" , $ first );
169169
170170 $ second = trim ($ codeBlocks ->item (1 )->nodeValue );
171- $ secondTitle = $ codeBlocks ->item (1 )->getAttribute ('title ' );
171+ $ secondTitle = trim ( $ codeBlocks ->item (1 )->getAttribute ('title ' ) );
172172
173173 $ secondTitleLines = [];
174174 $ tempTitle = '' ;
Original file line number Diff line number Diff line change 66This is a standard block.
77
88----------------------------------------- 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. |
1110----------------------------------------------------------------------------------------------------
1211| // Dummy. | // Dummy. |
1312----------------------------------------------------------------------------------------------------
1413
1514----------------------------------------- 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. |
1816----------------------------------------------------------------------------------------------------
1917| // Note: description above without the | // Dummy. |
2018| // trailing whitespace fits in 46 chars. | |
You can’t perform that action at this time.
0 commit comments