Completed
Push — master ( 6dc795...9d6c0d )
by Greg
02:45
created

StringFormatter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 6 2
1
<?php
2
namespace Consolidation\OutputFormatters\Formatters;
3
4
use Consolidation\OutputFormatters\FormatterInterface;
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
class StringFormatter implements FormatterInterface
8
{
9
    /**
10
     * @inheritdoc
11
     */
12 1
    public function write(OutputInterface $output, $data, $options = [])
13
    {
14 1
        if (is_string($data)) {
15 1
            $output->writeln($data);
16 1
        }
17 1
    }
18
}
19