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

ConsoleHtmlOutput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 8 2
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