Skip to content

Added delete route#2

Open
someshrf wants to merge 18 commits intonittapp:masterfrom
someshrf:master
Open

Added delete route#2
someshrf wants to merge 18 commits intonittapp:masterfrom
someshrf:master

Conversation

@someshrf
Copy link
Copy Markdown
Collaborator

@someshrf someshrf commented Dec 5, 2017

delete route and delete functions have been added

Comment thread app/Complaint.php
}

}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why so many empty lines? Have at max of one extra lines.

/**
* By using the ID of complaint given by user, the function deletes the complaint, complaintComment
* and complaintStatus from the Complaint, ComplaintComment and ComplaintStatus tables respectively
*@param $id
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a space before @param

*/

public function deleteComplaint(Request $request){

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentations...



if(! $userID)
return response()->json([
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

], 403);

if(! $isUserAdmin)
return response()->json([
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants