Code Duplication    Length = 4-7 lines in 2 locations

class/log.php 2 locations

@@ 562-565 (lines=4) @@
559
                        // if !QUERY eg: !logs.php,views.php
560
                        if (0 === strpos($qry, '!')) {
561
                            $flagStr = true;
562
                            if (false !== strpos($log[$op], substr($qry, 1))) {
563
                                $flagStr = false; // have that delete
564
                                break; // means AND
565
                            }
566
                        } else {
567
                            $flagStr = false;
568
                            if (false !== strpos($log[$op], $qry)) {
@@ 566-572 (lines=7) @@
563
                                $flagStr = false; // have that delete
564
                                break; // means AND
565
                            }
566
                        } else {
567
                            $flagStr = false;
568
                            if (false !== strpos($log[$op], $qry)) {
569
                                $flagStr = true; // have that dont delete
570
                                break; // means OR
571
                            }
572
                        }
573
                    }
574
                    if (!$flagStr) {
575
                        unset($logs[$id]);