Correction de l'indentation

This commit is contained in:
Adrien CHARBONNEAU 2023-10-18 19:04:25 +02:00
parent 714bd53440
commit 17836fd225

View File

@ -44,34 +44,25 @@ Bonne lecture ! -->
</head>
<body class="is-preload">
<?php
class Version
{
public static function get()
{
<?php
class Version {
public static function get() {
$tag = trim(exec('git describe --tags --abbrev=0'));
return sprintf('%s', $tag);
}
}
class DateVersion
{
public static function get()
{
class DateVersion {
public static function get() {
$commitDate = new \DateTime(trim(exec('git log -n1 --pretty=%ci index.php')));
$commitDate->setTimezone(new \DateTimeZone('Europe/Paris'));
return sprintf('%s', $commitDate->format('d/m/Y à H:i:s'));
}
}
// echo 'Version du site : ' . Version::get();
?>
?>
<section>
<div class="container">