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

Body::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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