StripslashesFilter::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * KumbiaPHP web & app Framework
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the new BSD license that is bundled
8
 * with this package in the file LICENSE.
9
 *
10
 * @category   Kumbia
11
 * @package    Filter
12
 * @subpackage BaseFilter
13
 *
14
 * @copyright  Copyright (c) 2005 - 2019 KumbiaPHP Team (http://www.kumbiaphp.com)
15
 * @license    https://github.com/KumbiaPHP/KumbiaPHP/blob/master/LICENSE   New BSD License
16
 */
17
18
/** Filtra una cadena haciendo stripslashes
19
 *
20
 * @category   Kumbia
21
 * @package    Filter
22
 * @subpackage BaseFilter
23
 *
24
 */
25
class StripslashesFilter implements FilterInterface
26
{
27
28
    /**
29
     * Ejecuta el filtro
30
     *
31
     * @param string $s
32
     * @param array $options
33
     * @return string
34
     */
35
    public static function execute($s, $options)
36
    {
37
        return stripslashes((string) $s);
38
    }
39
40
}