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

General improvements #1

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

General improvements #1

wants to merge 107 commits into from

Conversation

EVODelavega
Copy link

I've taken the liberty of forking this repo, and tweak it a bit. I've changed the coding style to be more compliant to the PHP-FIG coding standards.

Return values are, in my opinion, more consistent (methods that return an object, return null instead of false on error).

Exceptions are now thrown when the arguments are malformed/invalid, and debugging is no longer done by simple print-statements. Instead an array is used, which can return or (for now) echo the info.

Constants and classes are qualified in such a way that using this class can't cause issues in a namespaced project.

More complete doc-blocks (in terms of types)

access modifiers have been changed from private to protected to make it easier to extend from this class.

Elias Van Ootegem added 30 commits July 2, 2014 09:23
    - Add "\" to curl-constants (to avoid conflicts in namespaced code)
    - Add "\" in doc-blocks
Constructor improvement:
    - Enable passing url as only argument, using parse_url to extract the data

Add exceptions in case bad/invalid/incomplete arguments were passed.
Change properties from private to protected
Fix bug in constructor (by adding a return statement)
…Edited example, to demonstrate usage of generator
* feature/composer-notes:
  Add Note model + addNote call to API wrapper
EVODelavega and others added 30 commits December 9, 2014 19:44
To support tags, the toJsonData() function was restructured to allow for other data.
This allows individual tags to be set using the addTag() method.
Add support for tags in the Ticket model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant