Reformat PHP to respect PSR1

This commit is contained in:
Renarde dev 2024-05-01 16:42:21 +02:00
parent ef51834f90
commit dacbee3b50
2 changed files with 10 additions and 16 deletions

View file

@ -19,22 +19,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="scss/styles.css" />
<!-- bootstrap css -->
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity=
"sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
<?php
require_once "podcast.php";
use Podcast;
$podcast = new Podcast(
"https://feeds.acast.com/public/shows/le-plus-beau-des-voyages"
);
?>
</head>
<body>
<?php // phpcs:ignoreFile
require_once "podcast.php";
$podcast = new Podcast(
"https://feeds.acast.com/public/shows/le-plus-beau-des-voyages"
);
?>
<div class="Title">
<h1><?php echo $podcast->title ?></h1>
<p>Animé par Pauline</p>

View file

@ -1,5 +1,4 @@
<?php
// phpcs:ignoreFile
/**
* This file parse Podcast RSS Feed
*
@ -12,6 +11,8 @@
* @link https://forgejo.la-taniere-solidaire.gay/Renarde/site-web-le-plus-beau-des-voyages
*/
namespace podcast;
class Podcast
{
public string $title;
@ -59,4 +60,4 @@ class Podcast
"length={$rawAudioData->length}";
}
}
?>
?>