Remove superfluous variable assignments

This commit is contained in:
2022-09-15 21:38:41 +02:00
parent c38f0146dc
commit 23232f4e6a
5 changed files with 9 additions and 15 deletions

View File

@ -13,8 +13,7 @@ final class MDCoordinateOutOfRange extends MDExpectedException {
*/
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.';
}
}

View File

@ -12,8 +12,7 @@ final class MDJailSecurityOptionNotSetException extends Exception {
*/
public function errorMessage() {
//error message
$errorMsg = 'A security option of MD_JAIL has not been set: <b>' . $this->getMessage() . '</b>).';
return $errorMsg;
return 'A security option of MD_JAIL has not been set: <b>' . $this->getMessage() . '</b>).';
}
}

View File

@ -12,8 +12,7 @@ final class MDJsonEncodingFailedException extends Exception {
*/
public function errorMessage() {
//error message
$errorMsg = 'Failed to encode JSON data.';
return $errorMsg;
return 'Failed to encode JSON data.';
}
}