Csv   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 4 1
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Type;
9
10
/**
11
 * Class Csv
12
 * @package Deployer\Type
13
 */
14
class Csv
15
{
16
    /**
17
     * @param string $input
18
     * @return array
19
     */
20 6
    public static function parse($input)
21
    {
22 6
        return array_map('str_getcsv', explode("\n", $input));
23
    }
24
}
25