Code Duplication    Length = 5-5 lines in 2 locations

class/pictures.php 2 locations

@@ 222-226 (lines=5) @@
219
            $sql = sprintf($format, $this->db->prefix('adslight_pictures'), $cod_img, $this->db->quoteString($title), $now, $now, $this->db->quoteString($lid), $this->db->quoteString($uid_owner),
220
                           $this->db->quoteString($url), $cod_img);
221
        }
222
        if (false != $force) {
223
            $result = $this->db->queryF($sql);
224
        } else {
225
            $result = $this->db->query($sql);
226
        }
227
        if (!$result) {
228
            return false;
229
        }
@@ 255-259 (lines=5) @@
252
            return false;
253
        }
254
        $sql = sprintf('DELETE FROM %s WHERE cod_img = %u', $this->db->prefix('adslight_pictures'), $jlm_pictures->getVar('cod_img'));
255
        if (false != $force) {
256
            $result = $this->db->queryF($sql);
257
        } else {
258
            $result = $this->db->query($sql);
259
        }
260
        if (!$result) {
261
            return false;
262
        }