Completed
Branch FET-10486-add-timestamp-checki... (611b15)
by
unknown
105:07 queued 90:18
created

LeaveAlone   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A format() 0 4 1
A formatArray() 0 4 1
1
<?php
2
namespace EventEspresso\core\services\formatters;
3
4
use EventEspresso\core\exceptions\InvalidDataTypeException;
5
6
defined('EVENT_ESPRESSO_VERSION') || exit;
7
8
9
10
/**
11
 * Class LeaveAlone
12
 * Leaves the string as-is
13
 *
14
 * @package        Event Espresso
15
 * @author         Mike Nelson
16
 * @since          4.9.31.p
17
 */
18
class LeaveAlone extends FormatterBase
19
{
20
21
    /**
22
     * Removes the emojis from the inputted string
23
     *
24
     * @param string|int|float $input anything easily cast into a string
25
     * @return string
26
     * @throws InvalidDataTypeException if $input is not a string
27
     */
28
    public function format($input)
29
    {
30
        return $input;
31
    }
32
33
    /**
34
     * Just returns the inputted $input array
35
     *
36
     * @param array $input
37
     * @return array
38
     */
39
    public function formatArray($input)
40
    {
41
        return $input;
42
    }
43
}
44
// End of file LeaveAlonel.php
45
// Location: core\services\formatters/LeaveAlonel.php