Completed
Pull Request — master (#12)
by
unknown
06:06 queued 01:12
created
User/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function getRoles()
32 32
     {
33
-        return [ 'ROLE_USER' ];
33
+        return ['ROLE_USER'];
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
DependencyInjection/SumoCodersFrameworkMultiUserExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Command/DeleteUserCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Command/CreateUserCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Tests/Security/FormAuthenticatorTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Command/UserCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Command/UpdateUser.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,10 @@
 block discarded – undo
35 35
      * UpdateUser constructor.
36 36
      *
37 37
      * @param UserInterface $user
38
-     * @param $username
39
-     * @param $password
40
-     * @param $displayName
38
+     * @param string $username
39
+     * @param string $password
40
+     * @param string $displayName
41
+     * @param string $email
41 42
      */
42 43
     public function __construct(UserInterface $user, $username, $password, $displayName, $email)
43 44
     {
Please login to merge, or discard this patch.
Security/PasswordResetToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     private static function generatePasswordResetToken()
11 11
     {
12
-        return time() . base64_encode(random_bytes(10));
12
+        return time().base64_encode(random_bytes(10));
13 13
     }
14 14
 
15 15
     public static function validateToken(UserInterface $user, $token)
Please login to merge, or discard this patch.