Code Duplication    Length = 8-8 lines in 2 locations

src/target/AbstractTarget.php 1 location

@@ 103-110 (lines=8) @@
100
        return $this->matchStrings($this->type, $other->getType());
101
    }
102
103
    protected function matchStrings($lhs, $rhs)
104
    {
105
        if ($lhs === self::NONE || $rhs === self::NONE) {
106
            return false;
107
        }
108
109
        return (string) $lhs === (string) $rhs;
110
    }
111
112
113
    public function jsonSerialize()

src/type/Type.php 1 location

@@ 73-80 (lines=8) @@
70
            : $this->checkMatches($this->id, $other->getId());
71
    }
72
73
    protected function checkMatches($lhs, $rhs)
74
    {
75
        if ($lhs === self::NONE || $rhs === self::NONE) {
76
            return false;
77
        }
78
79
        return (string) $lhs === (string) $rhs;
80
    }
81
82
    public function jsonSerialize()
83
    {