mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
debug() in CLI should include newline..
If not, two debug() statements after each other is very hard to read, as the #### separater is on the same line
This commit is contained in:
parent
fb86859585
commit
d14f0cece4
1 changed files with 3 additions and 2 deletions
|
@ -95,6 +95,7 @@ HTML;
|
|||
########## DEBUG ##########
|
||||
%s
|
||||
###########################
|
||||
|
||||
TEXT;
|
||||
$template = $html;
|
||||
if (php_sapi_name() === 'cli' || $showHtml === false) {
|
||||
|
@ -231,8 +232,8 @@ if (!function_exists('pr')) {
|
|||
|
||||
/**
|
||||
* print_r() convenience function
|
||||
*
|
||||
* In terminals this will act the same as using print_r() directly, when not run on cli
|
||||
*
|
||||
* In terminals this will act the same as using print_r() directly, when not run on cli
|
||||
* print_r() will wrap <PRE> tags around the output of given array. Similar to debug().
|
||||
*
|
||||
* @see debug()
|
||||
|
|
Loading…
Add table
Reference in a new issue