Completed
Pull Request — master (#138)
by Loïc
02:53
created

RenderTable::renderTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
/*
4
 * This file is part of monofony.
5
 *
6
 * (c) Mobizel
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Command\Helper;
13
14
use Symfony\Component\Console\Helper\Table;
15
use Symfony\Component\Console\Output\OutputInterface;
16
17
trait RenderTable
18
{
19
    /**
20
     * @param array           $headers
21
     * @param array           $rows
22
     * @param OutputInterface $output
23
     */
24
    private function renderTable(array $headers, array $rows, OutputInterface $output)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
Best Practice introduced by
Using PHP4-style constructors that are named like the class is not recommend; better use the more explicit __construct method.
Loading history...
25
    {
26
        $table = new Table($output);
27
28
        $table
29
            ->setHeaders($headers)
30
            ->setRows($rows)
31
            ->render()
32
        ;
33
    }
34
}
35