Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added delete route #2

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Added delete route #2

wants to merge 18 commits into from

Conversation

someshrf
Copy link
Collaborator

@someshrf someshrf commented Dec 5, 2017

delete route and delete functions have been added

}

}

Copy link
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
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
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
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
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