Remove unused variable assignments
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Custom exception class for invalid page parameters.
|
||||
* Custom exception class to throw when users attempt to access a page without necessary permissions.
|
||||
*/
|
||||
final class MDAccessDeniedException extends MDExpectedException {
|
||||
/**
|
||||
@ -12,8 +12,7 @@ final class MDAccessDeniedException extends MDExpectedException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Parameter: <b>' . $this->getMessage() . '</b> is not a valid, numeric values.';
|
||||
return $errorMsg;
|
||||
return 'Access denied: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user