Issues (37)

demo/demo.bell.php (1 issue)

Severity
1
<?php
2
require_once __DIR__ .'/../vendor/autoload.php';
3
use Kristuff\Mishell\Console;  
4
5
Console::log(' '. Console::text('Overview:', 'underlined', 'bold'));
6
Console::log('  - Use ' . Console::text("Console::bell()", 'lightblue', 'underlined') . ' to play a bell sound in console (if available).', 'white');
7
Console::log();   
8
Console::log(' '. Console::text('Usage:', 'underlined', 'bold'));
9
Console::log();   
10
Console::log('   ' .Console::text('// Play the bell', 'green'));
11
Console::log('   ' .Console::text('Console::bell();', 'lightmagenta'));
12
Console::log();   
13
Console::log(' '. Console::text('Sample:', 'underlined', 'bold'));
14
15
// -----------------
16
// sample start here
17
// -----------------
18
Console::bell();
19
Console::log(' Hey! we just play the bell, did you hear??', 'lightgray');
20
Console::log();   
21
22
?>
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...
23