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 charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="scss/styles.css" />
|
<link rel="stylesheet" href="scss/styles.css" />
|
||||||
<!-- bootstrap css -->
|
<?php
|
||||||
<link
|
require_once "podcast.php";
|
||||||
href=
|
use Podcast;
|
||||||
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
|
$podcast = new Podcast(
|
||||||
rel="stylesheet"
|
"https://feeds.acast.com/public/shows/le-plus-beau-des-voyages"
|
||||||
integrity=
|
);
|
||||||
"sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
|
?>
|
||||||
crossorigin="anonymous">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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">
|
<div class="Title">
|
||||||
<h1><?php echo $podcast->title ?></h1>
|
<h1><?php echo $podcast->title ?></h1>
|
||||||
<p>Animé par Pauline</p>
|
<p>Animé par Pauline</p>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
// phpcs:ignoreFile
|
|
||||||
/**
|
/**
|
||||||
* This file parse Podcast RSS Feed
|
* 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
|
* @link https://forgejo.la-taniere-solidaire.gay/Renarde/site-web-le-plus-beau-des-voyages
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace podcast;
|
||||||
|
|
||||||
class Podcast
|
class Podcast
|
||||||
{
|
{
|
||||||
public string $title;
|
public string $title;
|
||||||
|
@ -59,4 +60,4 @@ class Podcast
|
||||||
"length={$rawAudioData->length}";
|
"length={$rawAudioData->length}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue