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"> <body class="is-preload">
<?php <?php
class Version {
class Version public static function get() {
{
public static function get()
{
$tag = trim(exec('git describe --tags --abbrev=0')); $tag = trim(exec('git describe --tags --abbrev=0'));
return sprintf('%s', $tag); return sprintf('%s', $tag);
} }
} }
class DateVersion class DateVersion {
{ public static function get() {
public static function get()
{
$commitDate = new \DateTime(trim(exec('git log -n1 --pretty=%ci index.php'))); $commitDate = new \DateTime(trim(exec('git log -n1 --pretty=%ci index.php')));
$commitDate->setTimezone(new \DateTimeZone('Europe/Paris')); $commitDate->setTimezone(new \DateTimeZone('Europe/Paris'));
return sprintf('%s', $commitDate->format('d/m/Y à H:i:s')); return sprintf('%s', $commitDate->format('d/m/Y à H:i:s'));
} }
} }