Issues (37)

demo/demo.progress2.php (1 issue)

Severity
1
<?php
2
require_once __DIR__ .'/../vendor/autoload.php';
3
use Kristuff\Mishell\Console;  
4
5
Console::log();
6
Console::log(' '. Console::text('Overview:', 'underlined', 'bold'));
7
Console::log("  - Use " . Console::text("Console::overwrite()", 'lightblue', 'underlined') . " to overwrite the last printed line.", 'white');
8
Console::log();
9
10
Console::log(' '. Console::text('Tips:', 'underlined', 'bold'));
11
Console::log("   - " . Console::text('No need', 'underlined', 'bold') ." to use " . Console::text("php str_pad()", 'lightblue', 'underlined') . " method like with " .Console::text("Console::relog()", 'lightblue', 'underlined') );
12
Console::log("   - You can customize colors (foreground and background) and some styles in same way than ");
13
Console::log('   ' .Console::text("Console::text()", 'lightblue', 'underlined') . 
14
                 ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
15
Console::log();
16
Console::log(' '. Console::text('Basic usage:', 'underlined', 'bold'));
17
Console::log();
18
Console::log("      Console::log('I am a real log line, with \\n, but I will be erased');");
19
Console::log("      Console::overwrite('I am new real line.');");
20
Console::log();
21
Console::log(' ' .Console::text('Sample code:', 'underlined', 'bold'));
22
Console::log();
23
24
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
25