Passed
Push — master ( d13d8d...dbf2b1 )
by Karel
11:09 queued 11s
created

RequestFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 3 1
1
<?php
2
3
namespace Chuckbe\Chuckcms\Chuck\Matomo;
4
5
use GuzzleHttp\Psr7\Request;
6
7
/**
8
 * Default implementation of a class that creates a PSR7 request object.
9
 */
10
class RequestFactory implements RequestFactoryInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function getRequest($method, $uri, array $headers = [], $body = null, $version = '1.1')
16
    {
17
        return new Request($method, $uri, $headers, $body, $version);
18
    }
19
}