Code Duplication    Length = 7-7 lines in 2 locations

src/CanvasHack.php 2 locations

@@ 150-156 (lines=7) @@
147
        $this->updateDb($this->table, $this->id, array('name' => $_name, 'path' => $_path, 'abstract' => $_abstract, 'description' => $_description), 'id');
148
    }
149
150
    private function parseManifestCSS($css)
151
    {
152
        if (!empty($css)) {
153
            $this->updateDb($this->css, $this->id, array('path' => realpath($this->path . '/' . $css)));
154
        } else {
155
            $this->clearDb($this->css, $this->id);
156
        }
157
    }
158
159
    private function parseManifestJavascript($javascript)
@@ 159-165 (lines=7) @@
156
        }
157
    }
158
159
    private function parseManifestJavascript($javascript)
160
    {
161
        if (!empty($javascript)) {
162
            $this->updateDb($this->javascript, $this->id, array('path' => realpath($this->path) . '/' . $javascript));
163
        } else {
164
            $this->clearDb($this->javascript, $this->id);
165
        }
166
    }
167
168
    private function parseManifestCanvasPages($pages)