Code Duplication    Length = 7-7 lines in 2 locations

functions.php 2 locations

@@ 336-342 (lines=7) @@
333
 *
334
 * @access public
335
 */
336
function xhelpDeleteTickets($tickets)
337
{
338
    $hTicket =& xhelpGetHandler('ticket');
339
    $crit    = new Criteria('id', "(". implode($tickets, ',') .")", 'IN');
340
341
    return $hTicket->deleteAll($crit);
342
}
343
344
/**
345
 * Retrieves an array of tickets in one query
@@ 352-358 (lines=7) @@
349
 *
350
 * @access public
351
 */
352
function &xhelpGetTickets(&$tickets)
353
{
354
    $hTicket =& xhelpGetHandler('ticket');
355
    $crit    = new Criteria('t.id', "(". implode($tickets, ',') .")", 'IN');
356
357
    return $hTicket->getObjects($crit);
358
}
359
360
/**
361
 * Check if all supplied rules pass, and return any errors