Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* It is not need to check the same thing twice * One if condition instead of two ifs * Ternary codition instead of checking if variable is null * Returning early to avoid unnecessary conditional levels * It is not needed to put an else as the if before already has returned * Changing ternary conditional to PHP 5.2 * Removing some not needed conditions in the if, also changed to return false (instead of NULL) to follow the code block docs * Changing to check before if the class_exists so we make sure that class was autoloaded before the condition Squash of commits in #1034
- Loading branch information
Showing
3 changed files
with
29 additions
and
40 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