Completed
Push — master ( fe4c2e...b05117 )
by Michael
12s
created

Request::getVar()   C

Complexity

Conditions 11
Paths 42

Size

Total Lines 48
Code Lines 35

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 16
CRAP Score 24.7104

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 48
ccs 16
cts 31
cp 0.5161
rs 5.2653
c 1
b 0
f 0
cc 11
eloc 35
nc 42
nop 5
crap 24.7104

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 */
11
12
namespace Xoops\Core;
13
14
use Xoops\Core\Locale\Time;
15
16
/**
17
 * Request Class
18
 *
19
 * This class serves to provide a common interface to access
20
 * request variables.  This includes $_POST, $_GET, and naturally $_REQUEST.  Variables
21
 * can be passed through an input filter to avoid injection or returned raw.
22
 *
23
 * @category  Xoops\Core\Request
24
 * @package   Xoops\Core
25
 * @author    Richard Griffith <[email protected]>
26
 * @author    trabis <[email protected]>
27
 * @author    Joomla!
28
 * @copyright 2011-2015 XOOPS Project (http://xoops.org)
29
 * @license   GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
30
 * @version   Release: 1.0
31
 * @link      http://xoops.org
32
 * @since     1.0
33
 */
34
class Request extends \Xmf\Request
35
{
36
}
37