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

@ -45,26 +45,17 @@ Bonne lecture ! -->
<body class="is-preload">
<?php
class Version
{
public static function get()
{
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'));
}
}