Skip to content

Commit 3a2761d

Browse files
authored
Fix: Heredoc syntax
Closes GH-564.
1 parent 83ef234 commit 3a2761d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

include/layout.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
453453
continue;
454454
}
455455

456-
echo <<< EOT
456+
echo <<<EOT
457457
<article class="newsItem">
458458
<header>
459459
<div class="newsImage">{$image}</div>

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
$announcements = '';
197197
}
198198

199-
$SIDEBAR = <<< SIDEBAR_DATA
199+
$SIDEBAR = <<<SIDEBAR_DATA
200200
201201
$announcements
202202
<p class='panel'><a href='/cal.php'>User Group Events</a></p>

releases/feed.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
include __DIR__ . "/../include/version.inc";
55

6-
echo <<< XML
6+
echo <<<XML
77
<?xml version="1.0" encoding="UTF-8"?>
88
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:php="http://php.net/ns/releases">
99
<title>PHP.net releases</title>
@@ -32,7 +32,7 @@
3232
$id = "http://qa.php.net/#$version";
3333
}
3434

35-
echo <<< XML
35+
echo <<<XML
3636
<entry>
3737
<title>PHP {$version} released!</title>
3838
<id>{$id}</id>
@@ -56,7 +56,7 @@
5656
}
5757
}
5858

59-
echo <<< XML
59+
echo <<<XML
6060
<php:releaseDate>{$released}</php:releaseDate>
6161
</link>
6262
@@ -72,7 +72,7 @@
7272
}
7373
}
7474

75-
echo <<< XML
75+
echo <<<XML
7676
<updated>{$updated}</updated>
7777
<content src="{$id}" type="application/xhtml+xml"/>
7878
</entry>
@@ -84,7 +84,7 @@
8484

8585
$FEED_UPDATED = date(DATE_ATOM, max($FEED_UPDATED));
8686

87-
echo <<< XML
87+
echo <<<XML
8888
<updated>{$FEED_UPDATED}</updated>
8989
</feed>
9090
XML;

security/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
exit;
88
}
99

10-
$SIDEBAR_DATA = <<< EOT
10+
$SIDEBAR_DATA = <<<EOT
1111
<br>
1212
<div id="securitySidebar">
1313
<h3><a href="/security/">Security Center?</a></h3>
@@ -134,7 +134,7 @@ function cmp_records($a, $b) {
134134
'<a href="\1" target="_blank">\1</a>\4',
135135
$data
136136
);
137-
echo <<< EOT
137+
echo <<<EOT
138138
<div class="row $field">
139139
<div class="title">$title</div>
140140
<div class="data">$data</div>

sites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ interface to it. There you can browse the history (and latest versions) of the
201201

202202
<?php
203203

204-
$SIDEBAR = <<< SIDEBAR_DATA
204+
$SIDEBAR = <<<SIDEBAR_DATA
205205
206206
<p class='panel'><a href="#www">Main Website</a></p>
207207
<p class='panel'><a href="#talks">Conference Materials</a></p>

0 commit comments

Comments
 (0)