improved code styles #158 (#172)

* use php-cs-fixer instead of phpcodesniffer
* updated scrutinizer config
* adjusted code yules to all files
* updated CONTRIBUTING guidelines
This commit is contained in:
Kevin Papst
2018-06-22 21:09:10 +02:00
committed by GitHub
parent 773d27bb0e
commit cd7cbeae88
142 changed files with 775 additions and 467 deletions

View File

@@ -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;
}