Code Duplication    Length = 8-8 lines in 2 locations

src/RSSFeed/simplepie/simplepie_1.3.1.mini.php 2 locations

@@ 2223-2230 (lines=8) @@
2220
        {
2221
            $db[] = $row;
2222
        }
2223
        if (!in_array($this->options['extras']['prefix'] . 'cache_data', $db))
2224
        {
2225
            $query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'cache_data` (`id` TEXT CHARACTER SET utf8 NOT NULL, `items` SMALLINT NOT NULL DEFAULT 0, `data` BLOB NOT NULL, `mtime` INT UNSIGNED NOT NULL, UNIQUE (`id`(125)))');
2226
            if ($query === false)
2227
            {
2228
                $this->mysql = null;
2229
            }
2230
        }
2231
        if (!in_array($this->options['extras']['prefix'] . 'items', $db))
2232
        {
2233
            $query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'items` (`feed_id` TEXT CHARACTER SET utf8 NOT NULL, `id` TEXT CHARACTER SET utf8 NOT NULL, `data` TEXT CHARACTER SET utf8 NOT NULL, `posted` INT UNSIGNED NOT NULL, INDEX `feed_id` (`feed_id`(125)))');
@@ 2231-2238 (lines=8) @@
2228
                $this->mysql = null;
2229
            }
2230
        }
2231
        if (!in_array($this->options['extras']['prefix'] . 'items', $db))
2232
        {
2233
            $query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'items` (`feed_id` TEXT CHARACTER SET utf8 NOT NULL, `id` TEXT CHARACTER SET utf8 NOT NULL, `data` TEXT CHARACTER SET utf8 NOT NULL, `posted` INT UNSIGNED NOT NULL, INDEX `feed_id` (`feed_id`(125)))');
2234
            if ($query === false)
2235
            {
2236
                $this->mysql = null;
2237
            }
2238
        }
2239
    }
2240
    
2241
    public function save($data)