Test Setup Failed
Branch master (5bd16c)
by Václav
01:02
created
src/TI/TRestricted.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
         }
39 39
 
40 40
         $resource = $this instanceof \Nette\Application\IPresenter ?
41
-            $this->getName() :
42
-            static::getReflection()->getName();
41
+            $this->getName() : static::getReflection()->getName();
43 42
 
44 43
         return $this->authorizator->isAllowed($userId, $resource, $action);
45 44
     }
Please login to merge, or discard this patch.
src/Component/LoginForm.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@
 block discarded – undo
77 77
         {
78 78
             $this->user->login($values->username, $values->password);
79 79
             $this->user->setExpiration(0, TRUE);
80
-        }
81
-        catch (\Nette\Security\AuthenticationException $e)
80
+        } catch (\Nette\Security\AuthenticationException $e)
82 81
         {
83 82
             $failure = $e->getMessage();
84 83
         }
Please login to merge, or discard this patch.