TextValidator::validate()   A
last analyzed

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 2
1
<?php
2
/**
3
 * BrightNucleus ChainMail Component.
4
 *
5
 * @package   BrightNucleus/ChainMail
6
 * @author    Alain Schlesser <[email protected]>
7
 * @license   MIT
8
 * @link      http://www.brightnucleus.com/
9
 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
 */
11
12
namespace BrightNucleus\ChainMail\Validator;
13
14
/**
15
 * Class TextValidator.
16
 *
17
 * @since   1.0.0
18
 *
19
 * @package BrightNucleus\ChainMail\Validator
20
 * @author  Alain Schlesser <[email protected]>
21
 */
22
class TextValidator extends AbstractValidator
23
{
24
25
    /**
26
     * Validate the content for a given context.
27
     *
28
     * @since 1.0.0
29
     *
30
     * @param string $content Content to validate.
31
     * @param array  $context Context in which to validate.
32
     *
33
     * @return string Validated content.
34
     */
35
    public function validate($content, array $context)
36
    {
37
        return $content;
38
    }
39
}
40