Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Improved demos
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmaron committed Feb 25, 2019
1 parent 5157999 commit 4cf6b19
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions bin/build-cultures.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@

ArrayUtils::varExportToFile($filename, $values, $generator);

echo PHP_EOL;
ConsoleUtils::writeLn();
ConsoleUtils::writeLn('The available cultures (%d) are %s.', count($values), implode(', ', $values));
echo PHP_EOL;
ConsoleUtils::writeLn();
ConsoleUtils::writeLn('Written data file to "%s".', $filename);
echo PHP_EOL;
ConsoleUtils::writeLn();

// ---------------------------------------------------------------------------------------------------------------------
6 changes: 3 additions & 3 deletions bin/build-dictionaries.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

ArrayUtils::varExportToFile($filename, $values, $generator);

echo PHP_EOL;
ConsoleUtils::writeLn();
ConsoleUtils::writeLn('The available dictionaries (%d) are %s.', count($values), implode(', ', $values));
echo PHP_EOL;
ConsoleUtils::writeLn();
ConsoleUtils::writeLn('Written data file to "%s".', $filename);
echo PHP_EOL;
ConsoleUtils::writeLn();

// ---------------------------------------------------------------------------------------------------------------------
6 changes: 3 additions & 3 deletions demo/run-all.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@
$fileInfos->count(),
$fileInfo->getFilename()
);
echo PHP_EOL;
ConsoleUtils::writeLn();
$command = sprintf(
'%s %s',
escapeshellarg(PHP_BINARY),
escapeshellarg($fileInfo->getPathname())
);
passthru($command);
echo PHP_EOL;
ConsoleUtils::writeLn();
ConsoleUtils::writeLn('...DONE.');
echo PHP_EOL. PHP_EOL;
ConsoleUtils::writeLn();

$counter++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Stdlib/ConsoleUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static function dump($array): void
* @param string $format
* @param mixed ...$args
*/
public static function writeLn(string $format, ...$args): void
public static function writeLn(string $format = '', ...$args): void
{
$args = (array) $args;

Expand Down

0 comments on commit 4cf6b19

Please sign in to comment.