Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-07-08T23:29:25+02:00

Commit: 
https://github.com/php/web-php/commit/3a2761d9a40b360990a721d60bd9fb845fb7d87e
Raw diff: 
https://github.com/php/web-php/commit/3a2761d9a40b360990a721d60bd9fb845fb7d87e.diff

Fix: Heredoc syntax

Closes GH-564.

Changed paths:
  M  include/layout.inc
  M  index.php
  M  releases/feed.php
  M  security/index.php
  M  sites.php


Diff:

diff --git a/include/layout.inc b/include/layout.inc
index 6d5d8db1f1..6e5742cb24 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -453,7 +453,7 @@ function print_news($news, $dog, $max = 5, $onlyyear = 
null, $return = false) {
             continue;
         }
 
-        echo <<< EOT
+        echo <<<EOT
 <article class="newsItem">
   <header>
     <div class="newsImage">{$image}</div>
diff --git a/index.php b/index.php
index 7c6199945c..fdc460c86a 100644
--- a/index.php
+++ b/index.php
@@ -196,7 +196,7 @@
     $announcements = '';
 }
 
-$SIDEBAR = <<< SIDEBAR_DATA
+$SIDEBAR = <<<SIDEBAR_DATA
 
 $announcements
     <p class='panel'><a href='/cal.php'>User Group Events</a></p>
diff --git a/releases/feed.php b/releases/feed.php
index a6116b922f..3967c7c8d5 100644
--- a/releases/feed.php
+++ b/releases/feed.php
@@ -3,7 +3,7 @@
 
 include __DIR__ . "/../include/version.inc";
 
-echo <<< XML
+echo <<<XML
 <?xml version="1.0" encoding="UTF-8"?>
 <feed xmlns="http://www.w3.org/2005/Atom"; 
xmlns:php="http://php.net/ns/releases";>
     <title>PHP.net releases</title>
@@ -32,7 +32,7 @@
         $id = "http://qa.php.net/#$version";;
     }
 
-    echo <<< XML
+    echo <<<XML
     <entry>
         <title>PHP {$version} released!</title>
         <id>{$id}</id>
@@ -56,7 +56,7 @@
             }
         }
 
-        echo <<< XML
+        echo <<<XML
             <php:releaseDate>{$released}</php:releaseDate>
         </link>
 
@@ -72,7 +72,7 @@
         }
     }
 
-    echo <<< XML
+    echo <<<XML
         <updated>{$updated}</updated>
         <content src="{$id}" type="application/xhtml+xml"/>
     </entry>
@@ -84,7 +84,7 @@
 
 $FEED_UPDATED = date(DATE_ATOM, max($FEED_UPDATED));
 
-echo <<< XML
+echo <<<XML
     <updated>{$FEED_UPDATED}</updated>
 </feed>
 XML;
diff --git a/security/index.php b/security/index.php
index b6d2bc1737..fb31a7ff44 100644
--- a/security/index.php
+++ b/security/index.php
@@ -7,7 +7,7 @@
     exit;
 }
 
-$SIDEBAR_DATA = <<< EOT
+$SIDEBAR_DATA = <<<EOT
 <br>
 <div id="securitySidebar">
  <h3><a href="/security/">Security Center?</a></h3>
@@ -134,7 +134,7 @@ function cmp_records($a, $b) {
             '<a href="\1" target="_blank">\1</a>\4',
             $data
         );
-        echo <<< EOT
+        echo <<<EOT
  <div class="row $field">
   <div class="title">$title</div>
   <div class="data">$data</div>
diff --git a/sites.php b/sites.php
index 22b246c85d..4c2deb8e1e 100644
--- a/sites.php
+++ b/sites.php
@@ -201,7 +201,7 @@ interface to it. There you can browse the history (and 
latest versions) of the
 
 <?php
 
-$SIDEBAR = <<< SIDEBAR_DATA
+$SIDEBAR = <<<SIDEBAR_DATA
 
 <p class='panel'><a href="#www">Main Website</a></p>
 <p class='panel'><a href="#talks">Conference Materials</a></p>

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to