Test   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A apply() 0 3 1
1
<?php
2
/**
3
 * This file is part of GameQ.
4
 *
5
 * GameQ is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU Lesser General Public License as published by
7
 * the Free Software Foundation; either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * GameQ is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18
19
namespace GameQ\Filters;
20
21
use GameQ\Server;
22
23
/**
24
 * Class Test
25
 *
26
 * This is a test filter to be used for testing purposes only.
27
 *
28
 * @package GameQ\Filters
29
 */
30
class Test extends Base
31
{
32
    /**
33
     * Apply the filter.  For this we just return whatever is sent
34
     *
35
     * @SuppressWarnings(PHPMD)
36
     *
37
     * @param array         $result
38
     * @param \GameQ\Server $server
39
     *
40
     * @return array
41
     */
42 6
    public function apply(array $result, Server $server)
43
    {
44 6
        return $result;
45
    }
46
}
47