Reformat PHP to respect PSR1
This commit is contained in:
parent
ef51834f90
commit
dacbee3b50
2 changed files with 10 additions and 16 deletions
21
index.php
21
index.php
|
@ -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>
|
||||
|
|
|
@ -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}";
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue