code-clean-patch

removed unnecessary echo statements in select_all function
This commit is contained in:
Manish Verma
2016-10-24 11:53:42 +05:30
parent a281556df4
commit 0f267bff48

View File

@@ -1917,7 +1917,7 @@ class TicketController extends Controller
$attachment = Ticket_attachments::where('thread_id', '=', $th_id->id)->get(); $attachment = Ticket_attachments::where('thread_id', '=', $th_id->id)->get();
if (count($attachment)) { if (count($attachment)) {
foreach ($attachment as $a_id) { foreach ($attachment as $a_id) {
echo $a_id->id . ' '; // echo $a_id->id . ' ';
$attachment = Ticket_attachments::find($a_id->id); $attachment = Ticket_attachments::find($a_id->id);
$attachment->delete(); $attachment->delete();
} }
@@ -1930,7 +1930,7 @@ class TicketController extends Controller
$collaborators = Ticket_Collaborator::where('ticket_id', '=', $ticket->id)->get(); $collaborators = Ticket_Collaborator::where('ticket_id', '=', $ticket->id)->get();
if (count($collaborators)) { if (count($collaborators)) {
foreach ($collaborators as $collab_id) { foreach ($collaborators as $collab_id) {
echo $collab_id->id; // echo $collab_id->id;
$collab = Ticket_Collaborator::find($collab_id->id); $collab = Ticket_Collaborator::find($collab_id->id);
$collab->delete(); $collab->delete();
} }