Code Duplication    Length = 19-19 lines in 2 locations

src/Action/Direct.php 1 location

@@ 9-27 (lines=19) @@
6
7
use Everypay\Http\Client\ClientInterface;
8
9
class Direct extends AbstractAction
10
{
11
    protected $method = ClientInterface::METHOD_POST;
12
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function __invoke()
17
    {
18
        return $this->createRequest($this->method);
19
    }
20
21
    protected function getResourceUri()
22
    {
23
        return $this->apiUri . '/sellers'
24
            . ($this->tokenId ? '/' . $this->tokenId : null)
25
            . '/transfers';
26
    }
27
}
28

src/Action/Payment.php 1 location

@@ 9-27 (lines=19) @@
6
7
use Everypay\Http\Client\ClientInterface;
8
9
class Payment extends AbstractAction
10
{
11
    protected $method = ClientInterface::METHOD_POST;
12
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function __invoke()
17
    {
18
        return $this->createRequest($this->method);
19
    }
20
21
    protected function getResourceUri()
22
    {
23
        return $this->apiUri . '/payments'
24
            . ($this->tokenId ? '/' . $this->tokenId : null)
25
            . '/transfers';
26
    }
27
}
28