Code Duplication    Length = 12-12 lines in 2 locations

src/Graph/IndexDB.php 2 locations

@@ 125-136 (lines=12) @@
122
    /**
123
     * @inheritdocs
124
     */
125
    public function _global($name) {
126
        assert('is_string($name)');
127
128
        if (array_key_exists($name, $this->globals)) {
129
            return $this->globals[$name];
130
        }
131
132
        $global = $this->create_node("global", ["name" => $name]);
133
        $this->globals[$name] = $global;
134
135
        return $global;
136
    }
137
138
    /**
139
     * @inheritdocs
@@ 141-152 (lines=12) @@
138
    /**
139
     * @inheritdocs
140
     */
141
    public function _language_construct($name) {
142
        assert('is_string($name)');
143
144
        if (array_key_exists($name, $this->language_constructs)) {
145
            return $this->language_constructs[$name];
146
        }
147
148
        $language_construct = $this->create_node("language construct", ["name" => $name]);
149
        $this->language_constructs[$name] = $language_construct;
150
151
        return $language_construct;
152
    }
153
154
    /**
155
     * @inheritdocs