Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit bfe23a0

Browse files
committed
PHPCS
1 parent 338f29d commit bfe23a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redux-templates/classes/class-api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,10 @@ public function check_template_response( $parameters ) {
630630
$count = ReduxTemplates\Init::left( $parameters['uid'] );
631631

632632
$count = intval( $count ) - 1;
633-
if ( $count === 0 ) {
633+
if ( 0 === $count ) {
634634
$response['left'] = $count;
635635
update_user_meta( $parameters['uid'], '_redux_templates_counts', -1 );
636-
} else if ( $count < 0 ) {
636+
} elseif ( $count < 0 ) {
637637
wp_send_json_error(
638638
array(
639639
'message' => 'Please activate Redux',

0 commit comments

Comments
 (0)