From 2f276d6d151957dd3c5f5097e2b8b2cb599b22f1 Mon Sep 17 00:00:00 2001
From: Joseph Walton <joe@kafsemo.org>
Date: Mon, 15 Apr 2019 21:35:15 +1000
Subject: [PATCH] Use phpcs:ignore to selectively ignore EmbeddedPhpSniff rules

Use phpcs:ignore to disable rules selectively for the
opening and closing php tags.
---
 wp-includes/feed-atom-comments.php | 3 ++-
 wp-includes/feed-atom.php          | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php
index 4acd36330e..4b90f010f7 100644
--- a/wp-includes/feed-atom-comments.php
+++ b/wp-includes/feed-atom-comments.php
@@ -43,9 +43,10 @@ do_action( 'rss_tag_pre', 'atom-comments' );
 	</title>
 	<subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle>
 
-	<updated><?php
+	<updated><?php // phpcs:ignore
 		$date = get_last_build_date();
 		echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
+	// phpcs:ignore
 	?></updated>
 
 <?php if ( is_singular() ) { ?>
diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php
index f801f79860..d84d0cd925 100644
--- a/wp-includes/feed-atom.php
+++ b/wp-includes/feed-atom.php
@@ -30,9 +30,10 @@ do_action( 'rss_tag_pre', 'atom' );
 	<title type="text"><?php wp_title_rss(); ?></title>
 	<subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle>
 
-	<updated><?php
+	<updated><?php // phpcs:ignore
 		$date = get_last_build_date();
 		echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
+	// phpcs:ignore
 	?></updated>
 
 	<link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php bloginfo_rss( 'url' ); ?>" />
-- 
2.19.1

