File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ function date_horiz_coord(DateTime $date) {
154
154
<!-- Today -->
155
155
<g class="today">
156
156
<?php
157
- $ now = new DateTime ;
157
+ $ now = new DateTime () ;
158
158
$ x = date_horiz_coord ($ now );
159
159
?>
160
160
<line x1="<?php echo $ x ?> " y1="<?php echo $ header_height ?> " x2="<?php echo $ x ?> " y2="<?php echo $ header_height + (count ($ branches ) * $ branch_height ) ?> " />
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function get_all_branches() {
130
130
131
131
function get_active_branches ($ include_recent_eols = true ) {
132
132
$ branches = [];
133
- $ now = new DateTime ;
133
+ $ now = new DateTime () ;
134
134
135
135
foreach ($ GLOBALS ['RELEASES ' ] as $ major => $ releases ) {
136
136
foreach ($ releases as $ version => $ release ) {
@@ -164,7 +164,7 @@ function get_active_branches($include_recent_eols = true) {
164
164
function get_eol_branches ($ always_include = null ) {
165
165
$ always_include = $ always_include ?: [];
166
166
$ branches = [];
167
- $ now = new DateTime ;
167
+ $ now = new DateTime () ;
168
168
169
169
// Gather the last release on each branch into a convenient array.
170
170
foreach ($ GLOBALS ['OLDRELEASES ' ] as $ major => $ releases ) {
@@ -325,7 +325,7 @@ function get_branch_support_state($branch) {
325
325
$ security = get_branch_security_eol_date ($ branch );
326
326
327
327
if ($ initial && $ bug && $ security ) {
328
- $ now = new DateTime ;
328
+ $ now = new DateTime () ;
329
329
330
330
if ($ now >= $ security ) {
331
331
return 'eol ' ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function manual_notes($notes) {
35
35
$filename = substr ($filename, 0 , -4 );
36
36
}
37
37
38
- $sorter = new Sorter;
38
+ $sorter = new Sorter () ;
39
39
$sorter->sort ($notes);
40
40
41
41
// Link target to add a note to the current manual page,
@@ -402,7 +402,7 @@ function manual_footer() {
402
402
403
403
// This function takes a DateTime object and returns a formated string of the time difference relative to now
404
404
function relTime (DateTime $date) {
405
- $current = new DateTime;
405
+ $current = new DateTime () ;
406
406
$diff = $current->diff ($date);
407
407
$units = [" year" => $diff->format (" %y" ),
408
408
" month" => $diff->format (" %m" ),
You can’t perform that action at this time.
0 commit comments