Code Duplication    Length = 12-12 lines in 2 locations

src/Graph/IndexDB.php 2 locations

@@ 175-186 (lines=12) @@
172
    /**
173
     * @inheritdocs
174
     */
175
    public function _global($name) {
176
        assert('is_string($name)');
177
178
        if (array_key_exists($name, $this->globals)) {
179
            return $this->globals[$name];
180
        }
181
182
        $global = $this->create_node("global", ["name" => $name]);
183
        $this->globals[$name] = $global;
184
185
        return $global;
186
    }
187
188
    /**
189
     * @inheritdocs
@@ 191-202 (lines=12) @@
188
    /**
189
     * @inheritdocs
190
     */
191
    public function _language_construct($name) {
192
        assert('is_string($name)');
193
194
        if (array_key_exists($name, $this->language_constructs)) {
195
            return $this->language_constructs[$name];
196
        }
197
198
        $language_construct = $this->create_node("language construct", ["name" => $name]);
199
        $this->language_constructs[$name] = $language_construct;
200
201
        return $language_construct;
202
    }
203
204
    /**
205
     * @inheritdocs