| @@ -126,8 +126,9 @@ | ||
| 126 | 126 | $interval = (int) $interval_in_seconds; |
| 127 | 127 | |
| 128 | 128 | // We expect an integer and allow it to be passed using float and string types, but otherwise |
| 129 | 129 | // should reject unexpected values. |
| 130 | + // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison | |
| 130 | 131 | if ( ! is_numeric( $interval_in_seconds ) || $interval_in_seconds != $interval ) { |
| 131 | 132 | _doing_it_wrong( |
| 132 | 133 | __METHOD__, |
| 133 | 134 | sprintf( |
| @@ -455,9 +456,9 @@ | ||
| 455 | 456 | foreach ( $ids as $action_id ) { |
| 456 | 457 | $actions[ $action_id ] = $store->fetch_action( $action_id ); |
| 457 | 458 | } |
| 458 | 459 | |
| 459 | - if ( ARRAY_A == $return_format ) { | |
| 460 | + if ( ARRAY_A === $return_format ) { | |
| 460 | 461 | foreach ( $actions as $action_id => $action_object ) { |
| 461 | 462 | $actions[ $action_id ] = get_object_vars( $action_object ); |
| 462 | 463 | } |
| 463 | 464 | } |