Completed
Pull Request — master (#8)
by Michael
02:53
created
DependencyInjection/Security/UserProvider/InMemoryApiFactory.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 namespace OsLab\SecurityApiBundle\DependencyInjection\Security\UserProvider;
13 13
 
14
-use Symfony\Component\DependencyInjection\ContainerBuilder;
15 14
 use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\UserProvider\UserProviderFactoryInterface;
16 15
 use Symfony\Component\Config\Definition\Builder\NodeDefinition;
16
+use Symfony\Component\DependencyInjection\ContainerBuilder;
17 17
 use Symfony\Component\DependencyInjection\DefinitionDecorator;
18 18
 use Symfony\Component\DependencyInjection\Reference;
19 19
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
                         ->children()
75 75
                             ->scalarNode('password')->defaultValue(uniqid('', true))->end()
76 76
                             ->arrayNode('roles')
77
-                                ->beforeNormalization()->ifString()->then(function ($v) {
77
+                                ->beforeNormalization()->ifString()->then(function($v) {
78 78
                                     return preg_split('/\s*,\s*/', $v);
79 79
                                 })
80 80
                                 ->end()
Please login to merge, or discard this patch.
Tests/Security/Authentication/SimplePreAuthenticatorTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 use OsLab\SecurityApiBundle\Security\Authentication\SimplePreAuthenticator;
13 13
 use OsLab\SecurityApiBundle\Security\User\InMemoryApiUserProvider;
14 14
 use Symfony\Component\HttpFoundation\HeaderBag;
15
-use Symfony\Component\HttpFoundation\Request;
16 15
 use Symfony\Component\HttpFoundation\ParameterBag;
16
+use Symfony\Component\HttpFoundation\Request;
17 17
 use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken;
18
-use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
19 18
 use Symfony\Component\Security\Core\Exception\AccessDeniedException;
19
+use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
20 20
 use Symfony\Component\Security\Core\User\User;
21 21
 use Symfony\Component\Security\Core\User\UserProviderInterface;
22 22
 
Please login to merge, or discard this patch.