Passed
Pull Request — master (#3)
by
unknown
08:48
created

Cards   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A delete() 0 10 1
1
<?php
2
3
namespace seregazhuk\Favro\Api\Endpoints;
4
5
class Cards extends CrudEndpoint
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $endpoint = 'cards';
11
12
    /**
13
     * @param string $cardId
14
     * @param bool $everywhere
15
     * @return mixed
16
     */
17
    public function delete($cardId, $everywhere)
18
    {
19
        return $this
20
            ->getHttp()
21
            ->delete(
22
                $this->makeRequestUrl($cardId),
23
                ['everywhere' => $everywhere],
24
                $this->getHeaders()
25
            );
26
    }
27
}
28