Completed
Push — master ( d9e0d9...617fb5 )
by Risan Bagja
06:12 queued 04:43
created

PlainTextSigner   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 3 1
A sign() 0 3 1
1
<?php
2
3
namespace Risan\OAuth1\Signature;
4
5
class PlainTextSigner implements SignerInterface, KeyBasedSignerInterface
6
{
7
    use CanGetSigningKey;
8
9
    /**
10
     * {@inheritdoc}
11
     */
12 1
    public function getMethod()
13
    {
14 1
        return 'PLAINTEXT';
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20 1
    public function sign($uri, array $parameters = [], $httpMethod = 'POST')
21
    {
22 1
        return $this->getKey();
23
    }
24
}
25