Skip to content

Commit b7ba48c

Browse files
committed
Remove unused method
Signed-off-by: snipe <[email protected]>
1 parent 9a2403b commit b7ba48c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

app/Models/Actionlog.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,5 @@ public function scopeOrderByCreatedBy($query, $order)
439439
{
440440
return $query->leftJoin('users as admin_sort', 'action_logs.created_by', '=', 'admin_sort.id')->select('action_logs.*')->orderBy('admin_sort.first_name', $order)->orderBy('admin_sort.last_name', $order);
441441
}
442-
443-
public function scopeByTargetOrItem($query, $id, $type) {
444-
445-
return $query->where(function($query) use ($id, $type)
446-
{
447-
$query->where('item_id', '=', $id)
448-
->where('item_type', '=', 'App\\Models\\'.ucwords($type));
449-
})
450-
->orWhere(function($query) use ($id, $type)
451-
{
452-
$query->where('target_id', '=', $id)
453-
->where('target_type', '=', 'App\\Models\\'.ucwords($type));
454-
});
455-
456-
}
442+
457443
}

0 commit comments

Comments
 (0)