diff --git a/composer.lock b/composer.lock index 953e627c..1d3b81a4 100644 --- a/composer.lock +++ b/composer.lock @@ -775,16 +775,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.19", + "version": "9.2.22", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559" + "reference": "e4bf60d2220b4baaa0572986b5d69870226b06df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c77b56b63e3d2031bd8997fcec43c1925ae46559", - "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e4bf60d2220b4baaa0572986b5d69870226b06df", + "reference": "e4bf60d2220b4baaa0572986b5d69870226b06df", "shasum": "" }, "require": { @@ -840,7 +840,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.19" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.22" }, "funding": [ { @@ -848,7 +848,7 @@ "type": "github" } ], - "time": "2022-11-18T07:47:47+00:00" + "time": "2022-12-18T16:40:55+00:00" }, { "name": "phpunit/php-file-iterator", diff --git a/scripts/translation-progress.php b/scripts/translation-progress.php index bf962bd2..2c7cc345 100644 --- a/scripts/translation-progress.php +++ b/scripts/translation-progress.php @@ -66,21 +66,28 @@ function getLineNumber(array $translations_file, string $locale): int function progressToBadges(array $progress): string { $per_row = 5; - $badges = str_repeat("| ", $per_row) . "|" . "\n"; - $badges .= str_repeat("| --- ", $per_row) . "|" . "\n"; + $table = "
{$data["locale"]} - {$data["locale_name"]} | ";
$i++;
if ($i % $per_row === 0) {
- $badges .= "|\n";
+ $table .= ""; + $i++; + } + $table .= ""; } - return $badges; + $table .= " |