Skip to content

Commit

Permalink
fix rules
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Sep 21, 2023
1 parent 878a23a commit cc1c9ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions inc/Engine/Admin/Metaboxes/PostEditOptionsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,8 @@ public function save_metabox_options() {
if ( ! isset( $rejected_uris[ $path ] ) ) {
array_push( $new_cache_reject_uri, $path );
}
} else {
if ( isset( $rejected_uris[ $path ] ) ) {
unset( $new_cache_reject_uri[ $rejected_uris[ $path ] ] );
}
} elseif ( isset( $rejected_uris[ $path ] ) ) {
unset( $new_cache_reject_uri[ $rejected_uris[ $path ] ] );
}

if ( $new_cache_reject_uri !== $cache_reject_uri ) {
Expand Down
4 changes: 2 additions & 2 deletions inc/Engine/Optimization/RUCSS/Admin/OptionSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function get_subscribed_events() {
*
* @return array
*/
public function add_options_first_time( $options ) : array {
public function add_options_first_time( $options ): array {
return $this->settings->add_options( $options );
}

Expand All @@ -59,7 +59,7 @@ public function add_options_first_time( $options ) : array {
*
* @return array
*/
public function sanitize_options( $input, AdminSettings $settings ) : array {
public function sanitize_options( $input, AdminSettings $settings ): array {
return $this->settings->sanitize_options( $input, $settings );
}

Expand Down

0 comments on commit cc1c9ba

Please sign in to comment.