Skip to content

Commit 05c3e93

Browse files
Don't use empty on collection object, use count instead.
1 parent a23c01c commit 05c3e93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/licensing/class-license-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function get_object_property( $object, $property, $default = '' ) {
5858
public function hook() {
5959

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

src/licensing/class-update-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function get_plugin_info( $result, $action = '', $args = null ) {
103103
public function add_updates( $updates ) {
104104

105105
// do nothing if no plugins registered
106-
if( empty( $this->extensions ) ) {
106+
if( count( $this->extensions ) === 0 ) {
107107
return $updates;
108108
}
109109

0 commit comments

Comments
 (0)