* use php-cs-fixer instead of phpcodesniffer * updated scrutinizer config * adjusted code yules to all files * updated CONTRIBUTING guidelines
This commit is contained in:
@@ -59,7 +59,7 @@ class CreateUserCommand extends Command
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
@@ -74,7 +74,7 @@ class CreateUserCommand extends Command
|
||||
->addArgument(
|
||||
'role',
|
||||
InputArgument::OPTIONAL,
|
||||
'A comma separated list of user roles, e.g. "'.$roles.'"',
|
||||
'A comma separated list of user roles, e.g. "' . $roles . '"',
|
||||
User::DEFAULT_ROLE
|
||||
)
|
||||
->addArgument('password', InputArgument::OPTIONAL, 'Password for the new user (requested if not provided)')
|
||||
@@ -82,7 +82,7 @@ class CreateUserCommand extends Command
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ class CreateUserCommand extends Command
|
||||
$email = $input->getArgument('email');
|
||||
$role = $input->getArgument('role');
|
||||
|
||||
if ($input->getArgument('password') !== null) {
|
||||
if (null !== $input->getArgument('password')) {
|
||||
$password = $input->getArgument('password');
|
||||
} else {
|
||||
$password = $this->askForPassword($input, $output);
|
||||
@@ -122,6 +122,7 @@ class CreateUserCommand extends Command
|
||||
. $error->getMessage()
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user