Skip to content

Commit bfa5268

Browse files
Fix: Run 'make coding-standards'
Co-authored-by: Andreas Möller <[email protected]> Co-authored-by: Mathias Reker <[email protected]>
1 parent 326ec88 commit bfa5268

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

images/supported-versions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function date_horiz_coord(DateTime $date) {
154154
<!-- Today -->
155155
<g class="today">
156156
<?php
157-
$now = new DateTime;
157+
$now = new DateTime();
158158
$x = date_horiz_coord($now);
159159
?>
160160
<line x1="<?php echo $x ?>" y1="<?php echo $header_height ?>" x2="<?php echo $x ?>" y2="<?php echo $header_height + (count($branches) * $branch_height) ?>" />

include/branches.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function get_all_branches() {
130130

131131
function get_active_branches($include_recent_eols = true) {
132132
$branches = [];
133-
$now = new DateTime;
133+
$now = new DateTime();
134134

135135
foreach ($GLOBALS['RELEASES'] as $major => $releases) {
136136
foreach ($releases as $version => $release) {
@@ -164,7 +164,7 @@ function get_active_branches($include_recent_eols = true) {
164164
function get_eol_branches($always_include = null) {
165165
$always_include = $always_include ?: [];
166166
$branches = [];
167-
$now = new DateTime;
167+
$now = new DateTime();
168168

169169
// Gather the last release on each branch into a convenient array.
170170
foreach ($GLOBALS['OLDRELEASES'] as $major => $releases) {
@@ -325,7 +325,7 @@ function get_branch_support_state($branch) {
325325
$security = get_branch_security_eol_date($branch);
326326

327327
if ($initial && $bug && $security) {
328-
$now = new DateTime;
328+
$now = new DateTime();
329329

330330
if ($now >= $security) {
331331
return 'eol';

include/shared-manual.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function manual_notes($notes) {
3535
$filename = substr($filename, 0, -4);
3636
}
3737

38-
$sorter = new Sorter;
38+
$sorter = new Sorter();
3939
$sorter->sort($notes);
4040

4141
// Link target to add a note to the current manual page,
@@ -402,7 +402,7 @@ function manual_footer() {
402402

403403
// This function takes a DateTime object and returns a formated string of the time difference relative to now
404404
function relTime(DateTime $date) {
405-
$current = new DateTime;
405+
$current = new DateTime();
406406
$diff = $current->diff($date);
407407
$units = ["year" => $diff->format("%y"),
408408
"month" => $diff->format("%m"),

0 commit comments

Comments
 (0)