for a var to string => print the gitlab key

This commit is contained in:
Jérémy Munsch 2024-01-26 11:43:38 +01:00
parent 62517c794e
commit 36eda66b83
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -201,6 +201,11 @@ class CdEnvVariable implements \Stringable
// * TOP ROW
$printStr = $printStr->append(\str_pad(" VAR `{$this->key}` ", $rowLength, '_', \STR_PAD_BOTH))->newLine();
$printStr = $printStr->append(\str_pad('key', $titlePad, pad_type: \STR_PAD_LEFT))
->append(' => ')->append('`')
->append($this->getFormatedGitlabKey())
->append('`')->newLine();
$printStr = $printStr->append(\str_pad('value', $titlePad, pad_type: \STR_PAD_LEFT))
->append(' => ');
$value = $this->masked ? '*********' : $this->value;