mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-06-16 01:31:30 +02:00
Reduce line length for PSR-2 compatibility
This commit is contained in:
parent
a54400681f
commit
922d810a3a
|
@ -115,7 +115,10 @@ class EnvironmentChecker extends RequestHandler
|
||||||
}
|
}
|
||||||
} elseif (!$this->canAccess(null, $permission)) {
|
} elseif (!$this->canAccess(null, $permission)) {
|
||||||
// Fail check with silverstripe login challenge
|
// Fail check with silverstripe login challenge
|
||||||
$result = Security::permissionFailure($this, "You must have the {$permission} permission to access this check");
|
$result = Security::permissionFailure(
|
||||||
|
$this,
|
||||||
|
"You must have the {$permission} permission to access this check"
|
||||||
|
);
|
||||||
throw new HTTPResponse_Exception($result);
|
throw new HTTPResponse_Exception($result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user