File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
tests/Core/Generators/Fixtures Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -245,16 +245,17 @@ protected function getFormattedFooter()
245
245
// Turn off errors so we don't get timezone warnings if people
246
246
// don't have their timezone set.
247
247
$ errorLevel = error_reporting (0 );
248
- $ output = ' <div class="tag-line"> ' ;
249
- $ output .= 'Documentation generated on ' .date ('r ' );
250
- $ output .= ' by <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer">PHP_CodeSniffer ' .Config::VERSION .'</a> ' ;
251
- $ output .= '</div> ' .PHP_EOL ;
248
+ $ output = sprintf (
249
+ ' <div class="tag-line">Documentation generated on %s by <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer">PHP_CodeSniffer %s</a></div>
250
+ </body>
251
+ </html> ' ,
252
+ date ('r ' ),
253
+ Config::VERSION
254
+ );
252
255
error_reporting ($ errorLevel );
253
256
254
- $ output .= ' </body> ' .PHP_EOL ;
255
- $ output .= '</html> ' .PHP_EOL ;
256
-
257
- return $ output ;
257
+ // Use the correct line endings based on the OS.
258
+ return str_replace ("\n" , PHP_EOL , $ output ).PHP_EOL ;
258
259
259
260
}//end getFormattedFooter()
260
261
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ class HTMLDouble extends HTML
20
20
*/
21
21
protected function getFormattedFooter ()
22
22
{
23
- $ output = ' <div class="tag-line"> ' ;
24
- $ output .= 'Documentation generated on #REDACTED# ' ;
25
- $ output .= ' by <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer">PHP_CodeSniffer #VERSION#</a> ' ;
26
- $ output .= '</div> ' .PHP_EOL ;
27
- $ output .= ' </body> ' .PHP_EOL ;
28
- $ output .= '</html> ' .PHP_EOL ;
23
+ $ output =' <div class="tag-line">Documentation generated on #REDACTED# by <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer">PHP_CodeSniffer #VERSION#</a></div>
24
+ </body>
25
+ </html> ' ;
29
26
30
- return $ output ;
27
+ // Use the correct line endings based on the OS.
28
+ return str_replace ("\n" , PHP_EOL , $ output ).PHP_EOL ;
31
29
}
32
30
33
31
/**
You can’t perform that action at this time.
0 commit comments