Code Duplication    Length = 12-12 lines in 2 locations

src/Graph/IndexDB.php 2 locations

@@ 185-196 (lines=12) @@
182
    /**
183
     * @inheritdocs
184
     */
185
    public function _global($name) {
186
        assert('is_string($name)');
187
188
        if (array_key_exists($name, $this->globals)) {
189
            return $this->globals[$name];
190
        }
191
192
        $global = $this->create_node("global", ["name" => $name]);
193
        $this->globals[$name] = $global;
194
195
        return $global;
196
    }
197
198
    /**
199
     * @inheritdocs
@@ 201-212 (lines=12) @@
198
    /**
199
     * @inheritdocs
200
     */
201
    public function _language_construct($name) {
202
        assert('is_string($name)');
203
204
        if (array_key_exists($name, $this->language_constructs)) {
205
            return $this->language_constructs[$name];
206
        }
207
208
        $language_construct = $this->create_node("language construct", ["name" => $name]);
209
        $this->language_constructs[$name] = $language_construct;
210
211
        return $language_construct;
212
    }
213
214
    /**
215
     * @inheritdocs