Skip to content

Commit

Permalink
Don't use empty on collection object, use count instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed May 23, 2016
1 parent a23c01c commit 05c3e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/licensing/class-license-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function get_object_property( $object, $property, $default = '' ) {
public function hook() {

// do nothing if no extensions are registered at this point
if( empty( $this->extensions ) ) {
if( count( $this->extensions ) === 0 ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/licensing/class-update-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function get_plugin_info( $result, $action = '', $args = null ) {
public function add_updates( $updates ) {

// do nothing if no plugins registered
if( empty( $this->extensions ) ) {
if( count( $this->extensions ) === 0 ) {
return $updates;
}

Expand Down

0 comments on commit 05c3e93

Please sign in to comment.