1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Enhancement: Enable single_space_after_construct fixer

Closes GH-640.
This commit is contained in:
Andreas Möller
2022-07-12 11:44:23 +02:00
committed by GitHub
parent f3585d9bdf
commit c68e5a9e4a
19 changed files with 53 additions and 52 deletions

View File

@@ -13,8 +13,8 @@ site_header("PHP Conferences around the world", array(
$content = "<div class='home-content'>";
$frontpage = array();
foreach($NEWS_ENTRIES as $entry) {
foreach($entry["category"] as $category) {
foreach ($NEWS_ENTRIES as $entry) {
foreach ($entry["category"] as $category) {
if ($category["term"] == "cfp") {
$frontpage[] = $entry;
break;
@@ -28,7 +28,7 @@ foreach($NEWS_ENTRIES as $entry) {
$panels = '<p class="prepend"><a href="https://wiki.php.net/conferences">Want to see your conference appear here?</a></p>';
foreach($frontpage as $entry) {
foreach ($frontpage as $entry) {
$link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]);
$id = parse_url($entry["id"], PHP_URL_FRAGMENT);
$date = date_format(date_create($entry["updated"]), 'Y-m-d');