-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Throwable instead of XxxExceptions classes (#319)
* Use Throwable instead of XxxExceptions classes Use Throwable instead of handling multiple types of Exception classes repeatedly * Update PayPalHttpClient.php * Update PayPalHttpClient.php * General code tidy up across the board - Catch Throwable where possible - Convert all thrown Exceptions to RuntimeExceptions - Convert anonymous functions to static anonymous functions (speed improvement in some cases) - Split some complex workflows into separate chunks to return early - Use 'use' statements where possible to avoid having \Unnecessary\Qualifiers\Everywhere - Use strict type checking where possible - Remove some unnecessary brackets from some clauses - No longer use !is_null() function just use !== null instead
- Loading branch information
1 parent
b71b1e4
commit 403f2ca
Showing
7 changed files
with
234 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.