mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-08 14:29:42 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -26,6 +26,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
|
||||
use function array_key_exists;
|
||||
use function array_merge;
|
||||
use function in_array;
|
||||
@@ -141,8 +142,10 @@ class ChillUserSendRenewPasswordCodeCommand extends Command
|
||||
|
||||
$headers = $reader->getHeader();
|
||||
|
||||
if (false === in_array('username', $headers, true)
|
||||
&& false === in_array('email', $headers, true)) {
|
||||
if (
|
||||
false === in_array('username', $headers, true)
|
||||
&& false === in_array('email', $headers, true)
|
||||
) {
|
||||
throw new InvalidArgumentException('The csv file does not have an '
|
||||
. 'username or email header');
|
||||
}
|
||||
|
Reference in New Issue
Block a user