Completed
Pull Request — master (#27)
by
unknown
06:13
created

Body   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
3
namespace Spatie\MixedContentScanner;
4
5
use GuzzleHttp\Client;
6
use Psr\Http\Message\UriInterface;
7
8
class Body
9
{
10
    public static function get(UriInterface $uri): string
11
    {
12
        return (new Client())->request('GET', $uri)->getBody();
13
    }
14
}
15