Code Duplication    Length = 5-5 lines in 2 locations

application/modules/callbacks/admin.php 2 locations

@@ 50-54 (lines=5) @@
47
            $model = $model->filterById((int) $this->input->get('filterID'));
48
        }
49
50
        if ($user_name = $this->input->get('user_name')) {
51
            $user_name = (false !== strpos($user_name, '%')) ? $user_name : '%' . $user_name . '%';
52
            $model->condition('name', 'SCallbacks.Name LIKE ?', $user_name);
53
            $model->where(['name'], Criteria::LOGICAL_OR);
54
        }
55
56
        if ($phone = $this->input->get('phone')) {
57
            $phone = (false !== strpos($phone, '%')) ? $phone : '%' . $phone . '%';
@@ 56-60 (lines=5) @@
53
            $model->where(['name'], Criteria::LOGICAL_OR);
54
        }
55
56
        if ($phone = $this->input->get('phone')) {
57
            $phone = (false !== strpos($phone, '%')) ? $phone : '%' . $phone . '%';
58
            $model->condition('phone', 'SCallbacks.Phone LIKE ?', $phone);
59
            $model->where(['phone'], Criteria::LOGICAL_OR);
60
        }
61
62
        if ($this->input->get('ThemeId')) {
63
            if ($this->input->get('ThemeId') > 0) {