Completed
Pull Request — master (#2)
by nicolas
06:34
created

Client   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 8 1
1
<?php
2
3
namespace Dekalee\AdbackAnalytics\Client;
4
5
/**
6
 * Class Client
7
 */
8
class Client
9
{
10
    /**
11
     * @param $url
12
     *
13
     * @return Response
14
     */
15
    public function get($url)
16
    {
17
        $content = @file_get_contents($url);
18
19
        $response = new Response($content);
20
21
        return $response;
22
    }
23
}
24