Browse Source

fix: typo

merge-requests/10/merge
JamesRezo 2 years ago
parent
commit
3fb6aad2cd
  1. 19
      supportedversions_fonctions.php

19
supportedversions_fonctions.php

@ -51,7 +51,12 @@ function balise_SUPPORTED_VERSIONS_dist($p) {
*/
class SupportedVersions
{
private $defaultConfig = [
/**
* Configuration par défaut.
*
* @var array<mixed>
*/
private static $defaultConfig = [
'calendar' =>[
'min_year' => 'P3Y',
'max_year' => 'P5Y',
@ -143,7 +148,7 @@ class SupportedVersions
// Calendar initialization
$calendar = isset(self::$config['calendar']) ?
self::$config['calendar'] :
self::defaultConfig['calendar']
self::$defaultConfig['calendar']
;
$nowYear = self::$now->format('Y');
@ -299,7 +304,7 @@ class SupportedVersions
protected static function dateHorizCoord(DateTime $date) {
$svg = isset(self::$config['svg']) ?
self::$config['svg'] :
self::defaultConfig['svg']
self::$defaultConfig['svg']
;
$diff = $date->diff(self::$minDate);
@ -384,7 +389,7 @@ class SupportedVersions
$svg = isset(self::$config['svg']) ?
self::$config['svg'] :
self::defaultConfig['svg']
self::$defaultConfig['svg']
;
$branches = array_map(
@ -414,7 +419,7 @@ class SupportedVersions
$svg = isset(self::$config['svg']) ?
self::$config['svg'] :
self::defaultConfig['svg']
self::$defaultConfig['svg']
;
$top = self::top($branch) + (0.5 * $svg['branch_height']);
@ -438,7 +443,7 @@ class SupportedVersions
$svg = isset(self::$config['svg']) ?
self::$config['svg'] :
self::defaultConfig['svg']
self::$defaultConfig['svg']
;
return $margin_left +
@ -462,7 +467,7 @@ class SupportedVersions
$svg = isset(self::$config['svg']) ?
self::$config['svg'] :
self::defaultConfig['svg']
self::$defaultConfig['svg']
;
return intval(

Loading…
Cancel
Save