Completed
Pull Request — develop_3.0 (#457)
by Adrien
02:34
created

CSV::escape()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Box\Spout\Common\Helper\Escaper;
4
5
/**
6
 * Class CSV
7
 * Provides functions to escape and unescape data for CSV files
8
 *
9
 * @package Box\Spout\Common\Helper\Escaper
10
 */
11
class CSV implements EscaperInterface
12
{
13
    /**
14
     * Escapes the given string to make it compatible with CSV
15
     *
16
     * @codeCoverageIgnore
17
     *
18
     * @param string $string The string to escape
19
     * @return string The escaped string
20
     */
21
    public function escape($string)
22
    {
23
        return $string;
24
    }
25
26
    /**
27
     * Unescapes the given string to make it compatible with CSV
28
     *
29
     * @codeCoverageIgnore
30
     *
31
     * @param string $string The string to unescape
32
     * @return string The unescaped string
33
     */
34
    public function unescape($string)
35
    {
36
        return $string;
37
    }
38
}
39