Code Duplication    Length = 8-8 lines in 2 locations

Manager/OrderLineManager.php 1 location

@@ 38-45 (lines=8) @@
35
    /**
36
     * @return string
37
     */
38
    public function getClass() : string
39
    {
40
        if (false !== strpos($this->class, ':')) {
41
            $metadata = $this->objectManager->getClassMetadata($this->class);
42
            $this->class = $metadata->getName();
43
        }
44
        return $this->class;
45
    }
46
47
    /**
48
     * @return OrderLineInterface

Manager/CallbackManager.php 1 location

@@ 40-47 (lines=8) @@
37
    /**
38
     * @return string
39
     */
40
    public function getClass() : string
41
    {
42
        if (false !== strpos($this->class, ':')) {
43
            $metadata = $this->objectManager->getClassMetadata($this->class);
44
            $this->class = $metadata->getName();
45
        }
46
        return $this->class;
47
    }
48
49
    /**
50
     * @return CallbackInterface