Completed
Push — master ( bd1769...dc246b )
by Niels
03:23
created
src/DirectAdmin/Objects/Users/Reseller.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function impersonate()
36 36
     {
37 37
         /** @var AdminContext $context */
38
-        if (!($context = $this->getContext()) instanceof AdminContext) {
38
+        if(!($context = $this->getContext()) instanceof AdminContext) {
39 39
             throw new DirectAdminException('You need to be an admin to impersonate another admin');
40 40
         }
41 41
         return $context->impersonateAdmin($this->getUsername());
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,8 @@
 block discarded – undo
35 35
     public function impersonate()
36 36
     {
37 37
         /** @var AdminContext $context */
38
-        if (!($context = $this->getContext()) instanceof AdminContext) {
38
+        if (!($context = $this->getContext()) instanceof AdminContext)
39
+        {
39 40
             throw new DirectAdminException('You need to be an admin to impersonate another admin');
40 41
         }
41 42
         return $context->impersonateAdmin($this->getUsername());
Please login to merge, or discard this patch.