Code Duplication    Length = 8-8 lines in 2 locations

src/Omnipay/Komerci/Message/WSConfPreAuthResponse.php 1 location

@@ 14-21 (lines=8) @@
11
class WSConfPreAuthResponse extends AbstractResponse
12
{
13
14
    public function __construct(RequestInterface $request, $data)
15
    {
16
        $this->request = $request;
17
18
        foreach ($data->root->children() as $childName => $childValue) {
19
            $this->data[strtoupper($childName)] = (string) $childValue;
20
        }
21
    }
22
23
    public function isSuccessful()
24
    {

src/Omnipay/Komerci/Message/WSAuthorizeResponse.php 1 location

@@ 14-21 (lines=8) @@
11
class WSAuthorizeResponse extends AbstractResponse
12
{
13
14
    public function __construct(RequestInterface $request, $data)
15
    {
16
        $this->request = $request;
17
18
        foreach ($data->children() as $childName => $childValue) {
19
            $this->data[strtoupper($childName)] = (string) $childValue;
20
        }
21
    }
22
23
    public function isSuccessful()
24
    {