Stdout::write()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 1
c 1
b 0
f 1
nc 2
nop 1
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * -> Stdout
4
 * User: moyo
5
 * Date: 10/10/2017
6
 * Time: 2:58 PM
7
 */
8
9
namespace Carno\Log\Outputter;
10
11
use Carno\Log\Contracts\Outputter;
12
13
class Stdout implements Outputter
14
{
15
    /**
16
     * @param string $data
17
     */
18
    public function write(string $data) : void
19
    {
20
        PHP_SAPI === 'cli' && print $data;
21
    }
22
}
23