function InitCommand::formatAuthors
Return value
array<int, array{name: string, email?: string}>
1 call to InitCommand::formatAuthors()
- InitCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ InitCommand.php
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ InitCommand.php, line 496
Class
- InitCommand
- @author Justin Rainbow <justin.rainbow@gmail.com> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CommandCode
protected function formatAuthors(string $author) : array {
$author = $this->parseAuthorString($author);
if (null === $author['email']) {
unset($author['email']);
}
return [
$author,
];
}