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();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -12,8 +12,7 @@ final class MDConfigCannotBeLoadedException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Could not connect to databse. Please try again later.';
|
||||
return $errorMsg;
|
||||
return 'Could not connect to databse. Please try again later.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -12,8 +12,7 @@ class MDExpectedException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Parameter: <b>' . $this->getMessage() . '</b> is not a valid, numeric values.';
|
||||
return $errorMsg;
|
||||
return 'Parameter: <b>' . $this->getMessage() . '</b> is not a valid, numeric values.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,7 @@ final class MDFileDoesNotExist extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'This file does not exist: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'This file does not exist: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,7 @@ final class MDFileIsNotReadable extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'This file does not exist: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'This file does not exist: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -12,8 +12,7 @@ final class MDInaccessiblePropertyException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Property is inaccessible';
|
||||
return $errorMsg;
|
||||
return 'Property is inaccessible';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDInputTooLongException extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Input string is too long';
|
||||
return $errorMsg;
|
||||
return 'Input string is too long';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -12,8 +12,7 @@ final class MDInvalidColorCode extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Input color code is invalid';
|
||||
return $errorMsg;
|
||||
return 'Input color code is invalid';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDInvalidEmail extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Input URL is invalid';
|
||||
return $errorMsg;
|
||||
return 'Input URL is invalid';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -19,8 +19,7 @@ final class MDInvalidEmptyInputException extends MDgenericInvalidInputsException
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'A value needs to be provided: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'A value needs to be provided: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDInvalidUrl extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Input URL is invalid';
|
||||
return $errorMsg;
|
||||
return 'Input URL is invalid';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,7 @@ final class MDOutputBufferNotStarted extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Output buffer has not yet been started, is to be used: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'Output buffer has not yet been started, is to be used: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -12,8 +12,7 @@ final class MDRequiredConfigNotSet extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Could not connect to databse. Please try again later.';
|
||||
return $errorMsg;
|
||||
return 'Could not connect to databse. Please try again later.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDWrongCsrfTokenException extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Input URL is invalid';
|
||||
return $errorMsg;
|
||||
return 'Input URL is invalid';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ class MDgenericInvalidInputsException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Inputs are not valid.';
|
||||
return $errorMsg;
|
||||
return 'Inputs are not valid.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDhttpFailedException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Inputs are not valid.';
|
||||
return $errorMsg;
|
||||
return 'Inputs are not valid.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDmainEntityNotExistentException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Could not connect to databse. Please try again later.';
|
||||
return $errorMsg;
|
||||
return 'Could not connect to databse. Please try again later.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDpageParameterNotFromListException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Invalid parameter: <b>' . $this->getMessage() . '</b>.';
|
||||
return $errorMsg;
|
||||
return 'Invalid parameter: <b>' . $this->getMessage() . '</b>.';
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user