Completed
Push — master ( 68693d...b79797 )
by Adam
12:25
created

ConsoleHtmlOutput::write()   A

Complexity

Conditions 2
Paths 2

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 8
Code Lines 5

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 1
1
<?php
2
3
namespace WellCommerce\Bundle\CoreBundle\Console\Output;
4
5
/**
6
 * Class ConsoleHtmlOutput
7
 *
8
 * @author  Adam Piotrowski <[email protected]>
9
 */
10
class ConsoleHtmlOutput
11
{
12
    public function write($message)
13
    {
14
        if (strlen($message)) {
15
            echo '<span style="color: #D7D7D7;font: 11px Courier New;line-height: 1.6em;">' . $message . '</span><br />';
16
            ob_flush();
17
            flush();
18
        }
19
    }
20
}
21