Code Duplication    Length = 10-10 lines in 2 locations

src/Graph/IndexDB.php 2 locations

@@ 139-148 (lines=10) @@
136
    /**
137
     * @inheritdocs
138
     */
139
    public function _method_reference($name, $file, $line) {
140
        assert('is_string($name)');
141
        assert('$file->type() == "file"');
142
        assert('is_int($line)');
143
144
        $method = $this->create_node("method reference", ["name" => $name]);
145
        $this->add_relation($method, "referenced at", ["line" => $line], $file);
146
147
        return $method;
148
    }
149
150
    /**
151
     * @inheritdocs
@@ 153-162 (lines=10) @@
150
    /**
151
     * @inheritdocs
152
     */
153
    public function _function_reference($name, $file, $line) {
154
        assert('is_string($name)');
155
        assert('$file->type() == "file"');
156
        assert('is_int($line)');
157
158
        $function = $this->create_node("function reference", ["name" => $name]);
159
        $this->add_relation($function, "referenced at", ["line" => $line], $file);
160
161
        return $function;
162
    }
163
164
    /**
165
     * @inheritdocs