Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Added content-type constant to class ApiProblem #39

Closed
wants to merge 9 commits into from

Conversation

Wilt
Copy link
Contributor

@Wilt Wilt commented Nov 17, 2015

Added a content-type constant to the class ApiProblem and used it inside the ApiProblemResponse class. It will make it much easier to refer to the correct content type without having to retype/hardcode the application/problem+json string everywhere we need it.

Wilt added 9 commits November 17, 2015 14:04
I added constant with content-type in the ApiProblem class so it can be used in other classes that need this content_type variable. It will just make referring to the correct content-type much easier.

````
$contentType = ApiProblem::CONTENT_TYPE;
````
Instead of hard coding a string for the content-type we reuse the constant from the ApiProblem class here
Used constant from ApiProblem
Used constant from ApiProblem
Used constant from ApiProblem
Used constant from ApiProblem
Used constant from ApiProblem
Declared ApiProblem in the test class
Removed white space for travis
@weierophinney weierophinney added this to the 1.2.0 milestone Jul 6, 2016
@weierophinney weierophinney self-assigned this Jul 6, 2016
weierophinney added a commit that referenced this pull request Jul 6, 2016
Added content-type constant to class ApiProblem
weierophinney added a commit that referenced this pull request Jul 6, 2016
weierophinney added a commit that referenced this pull request Jul 6, 2016
@weierophinney
Copy link
Member

Merged to develop for release with 1.2.0; thanks, @Wilt !

@Wilt Wilt deleted the patch-1 branch July 7, 2016 07:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants