@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function getRoles() |
| 32 | 32 | { |
| 33 | - return [ 'ROLE_USER' ]; |
|
| 33 | + return ['ROLE_USER']; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @param string $username |
| 26 | 26 | * @param string $password |
| 27 | 27 | * @param string $displayName |
| 28 | - * @param $email |
|
| 28 | + * @param string $email |
|
| 29 | 29 | * @param PasswordResetToken $token |
| 30 | 30 | */ |
| 31 | 31 | public function __construct($username, $password, $displayName, $email, PasswordResetToken $token = null) |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | - * @return string |
|
| 120 | + * @return PasswordResetToken |
|
| 121 | 121 | */ |
| 122 | 122 | public function getPasswordResetToken() |
| 123 | 123 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function load(array $configs, ContainerBuilder $container) |
| 21 | 21 | { |
| 22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 23 | 23 | $loader->load('services.yml'); |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -44,6 +44,6 @@ |
||
| 44 | 44 | |
| 45 | 45 | $handler->handle($command); |
| 46 | 46 | |
| 47 | - $output->writeln($username . ' has been deleted'); |
|
| 47 | + $output->writeln($username.' has been deleted'); |
|
| 48 | 48 | } |
| 49 | 49 | } |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | |
| 53 | 53 | $handler->handle($command); |
| 54 | 54 | |
| 55 | - $output->writeln($username . ' has been created'); |
|
| 55 | + $output->writeln($username.' has been created'); |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | ]) |
| 21 | 21 | ->useAttributeAsKey('class') |
| 22 | 22 | ->prototype('array') |
| 23 | - ->beforeNormalization()->ifString()->then(function ($v) { |
|
| 23 | + ->beforeNormalization()->ifString()->then(function($v) { |
|
| 24 | 24 | return ['route' => $v]; |
| 25 | 25 | })->end() |
| 26 | 26 | ->children() |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use SumoCoders\FrameworkMultiUserBundle\Security\ObjectUserProvider; |
| 9 | 9 | use SumoCoders\FrameworkMultiUserBundle\User\InMemoryUserRepository; |
| 10 | 10 | use SumoCoders\FrameworkMultiUserBundle\User\User; |
| 11 | -use Symfony\Bundle\FrameworkBundle\Routing\Router; |
|
| 12 | 11 | use Symfony\Component\HttpFoundation\Request; |
| 13 | 12 | use Symfony\Component\HttpFoundation\Session\Session; |
| 14 | 13 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | protected function getAllValidUserClasses(UserRepositoryCollection $userRepositoryCollection) |
| 20 | 20 | { |
| 21 | 21 | return array_map( |
| 22 | - function (UserRepository $repository) { |
|
| 22 | + function(UserRepository $repository) { |
|
| 23 | 23 | return $repository->getSupportedClass(); |
| 24 | 24 | }, |
| 25 | 25 | $userRepositoryCollection->all() |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public static function generate() |
| 56 | 56 | { |
| 57 | - $token = time() . base64_encode(random_bytes(10)); |
|
| 57 | + $token = time().base64_encode(random_bytes(10)); |
|
| 58 | 58 | |
| 59 | 59 | return new self($token); |
| 60 | 60 | } |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use SumoCoders\FrameworkMultiUserBundle\Event\PasswordResetTokenCreated; |
| 6 | 6 | use SumoCoders\FrameworkMultiUserBundle\User\PasswordReset as UserPasswordReset; |
| 7 | 7 | use SumoCoders\FrameworkMultiUserBundle\User\UserRepositoryCollection; |
| 8 | -use Swift_Mailer; |
|
| 9 | 8 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 10 | 9 | |
| 11 | 10 | class PasswordResetRequestHandler |