Failed Conditions
Pull Request — master (#123)
by Zac
17:58
created
src/Overwatch/TestBundle/Entity/TestGroup.php 1 patch
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -232,9 +232,19 @@
 block discarded – undo
232 232
     /**
233 233
      * FOSUserBundle needs groups to have roles. We don't.
234 234
      */
235
-    public function getRoles() { return []; }
236
-    public function setRoles(array $roles) { return $this; }
237
-    public function addRole($role) { return $this; }
238
-    public function removeRole($role) { return $this; }
239
-    public function hasRole($role) { return false; }
235
+    public function getRoles()
236
+    {
237
+return []; }
238
+    public function setRoles(array $roles)
239
+    {
240
+return $this; }
241
+    public function addRole($role)
242
+    {
243
+return $this; }
244
+    public function removeRole($role)
245
+    {
246
+return $this; }
247
+    public function hasRole($role)
248
+    {
249
+return false; }
240 250
 }
Please login to merge, or discard this patch.
src/Overwatch/UserBundle/Entity/User.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use FOS\UserBundle\Entity\User as BaseUser;
7 7
 use Overwatch\ResultBundle\Entity\TestResult;
8 8
 use Overwatch\UserBundle\Enum\AlertSetting;
9
-use Symfony\Component\Security\Core\Util\SecureRandom;
10 9
 
11 10
 /**
12 11
  * User
Please login to merge, or discard this patch.
src/Overwatch/UserBundle/Security/ApiAuthenticator.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 use Doctrine\ORM\EntityManager;
6 6
 use Symfony\Component\HttpFoundation\JsonResponse;
7 7
 use Symfony\Component\HttpFoundation\Request;
8
-use Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface;
9 8
 use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken;
10 9
 use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
11 10
 use Symfony\Component\Security\Core\Exception\AuthenticationException;
12 11
 use Symfony\Component\Security\Core\Exception\BadCredentialsException;
13 12
 use Symfony\Component\Security\Core\User\UserProviderInterface;
14 13
 use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
14
+use Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface;
15 15
 
16 16
 /**
17 17
  * ApiAuthenticator
Please login to merge, or discard this patch.