PreRequirements   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A Request() 0 5 1
1
<?php
2
namespace SEOCheckup;
3
4
use GuzzleHttp\Client;
5
6
class PreRequirements
7
{
8
    /**
9
     * GET Request via Guzzle
10
     * @param string $url
11
     *
12
     * @return \Psr\Http\Message\ResponseInterface
13
     */
14
    protected function Request($url)
15
    {
16
        $guzzle  = new Client;
17
18
        return $guzzle->get($url, ['http_errors' => false]);
19
    }
20
}