Completed
Push — master ( d7a1b7...10d04d )
by Restu
16:10
created

Request   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A ip() 0 4 1
A ipAll() 0 4 1
1
<?php
2
namespace JayaCode\Framework\Core\Http;
3
4
class Request extends \Symfony\Component\HttpFoundation\Request
5
{
6
    /**
7
     * Return IP address client
8
     * @return string
9
     */
10
    public function ip()
11
    {
12
        return $this->getClientIp();
13
    }
14
15
    /**
16
     * Return IP address client
17
     * @return array
18
     */
19
    public function ipAll()
20
    {
21
        return $this->getClientIps();
22
    }
23
}
24