Passed
Push — master ( 6f0a6d...90a9ca )
by
unknown
09:41
created
includes/admin/notifications.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,8 @@  discard block
 block discarded – undo
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
 
@@ -350,7 +351,8 @@  discard block
 block discarded – undo
350 351
 
351 352
 		$option = $this->get_option();
352 353
 
353
-		if ( in_array( $notification['id'], $option['dismissed'] ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict
354
+		if ( in_array( $notification['id'], $option['dismissed'] ) ) {
355
+// phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict
354 356
 			return;
355 357
 		}
356 358
 
@@ -432,7 +434,8 @@  discard block
 block discarded – undo
432 434
 		// Remove notification and add in dismissed array.
433 435
 		if ( is_array( $option[ $type ] ) && ! empty( $option[ $type ] ) ) {
434 436
 			foreach ( $option[ $type ] as $key => $notification ) {
435
-				if ( $notification['id'] == $id ) { // phpcs:ignore WordPress.PHP.StrictComparisons
437
+				if ( $notification['id'] == $id ) {
438
+// phpcs:ignore WordPress.PHP.StrictComparisons
436 439
 					// add notification to dismissed array
437 440
 					array_unshift($option['dismissed'], $notification);
438 441
 					// remove notification from feed or events
Please login to merge, or discard this patch.