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

@ -43,36 +43,27 @@ Bonne lecture ! -->
</head> </head>
<body class="is-preload"> <body class="is-preload">
<?php <?php
class Version {
class Version public static function get() {
{ $tag = trim(exec('git describe --tags --abbrev=0'));
return sprintf('%s', $tag);
public static function get()
{
$tag = trim(exec('git describe --tags --abbrev=0'));
return sprintf('%s', $tag);
}
} }
}
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();
?>
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> <section>
<div class="container"> <div class="container">
<header class="major"> <header class="major">