@@ -141,7 +141,8 @@ discard block |
||
141 | 141 | * @since {VERSION} |
142 | 142 | * |
143 | 143 | */ |
144 | - public function verify( $notifications ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh |
|
144 | + public function verify( $notifications ) { |
|
145 | +// phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh |
|
145 | 146 | |
146 | 147 | $data = array(); |
147 | 148 | |
@@ -462,7 +463,8 @@ discard block |
||
462 | 463 | // Remove notification and add in dismissed array. |
463 | 464 | if ( is_array( $option[ $type ] ) && ! empty( $option[ $type ] ) ) { |
464 | 465 | foreach ( $option[ $type ] as $key => $notification ) { |
465 | - if ( $notification['id'] == $id ) { // phpcs:ignore WordPress.PHP.StrictComparisons |
|
466 | + if ( $notification['id'] == $id ) { |
|
467 | +// phpcs:ignore WordPress.PHP.StrictComparisons |
|
466 | 468 | // Add notification to dismissed array. |
467 | 469 | array_unshift( $option['dismissed'], $notification ); |
468 | 470 | // Remove notification from feed or events. |