Completed
Push — master ( 4ab5e7...191e4e )
by Greg
02:08
created

VarExportFormatter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

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