Passed
Pull Request — develop (#492)
by nikos
11:03 queued 10s
created

InStoreTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A inStore() 0 3 1
1
<?php
2
/**
3
 */
4
5
namespace Commercetools\Core\Request\InStores;
6
7
trait InStoreTrait
8
{
9
    /**
10
     * @param $storeKey
11
     * @return InStoreRequestDecorator
12
     */
13 1
    public function inStore($storeKey)
14
    {
15 1
        return new InStoreRequestDecorator($storeKey, $this);
0 ignored issues
show
Bug introduced by
$this of type Commercetools\Core\Request\InStores\InStoreTrait is incompatible with the type Commercetools\Core\Request\ClientRequestInterface expected by parameter $request of Commercetools\Core\Reque...ecorator::__construct(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

15
        return new InStoreRequestDecorator($storeKey, /** @scrutinizer ignore-type */ $this);
Loading history...
16
    }
17
}
18