Remove unused variable assignments
This commit is contained in:
@ -14,8 +14,7 @@ final class MDDuplicateLinkException extends Exception {
|
||||
public function errorMessage() {
|
||||
|
||||
//error message
|
||||
$errorMsg = 'Duplicate link exception: ' . $this->getMessage() . '.';
|
||||
return $errorMsg;
|
||||
return 'Duplicate link exception: ' . $this->getMessage() . '.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,7 @@ final class MDFileIsNotWritable extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'This file or directory cannot be written: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'This file or directory cannot be written: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDFileUploadNotAcceptedException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = $this->getMessage();
|
||||
return $errorMsg;
|
||||
return $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ final class MDInvalidCurrency extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'The following currency is not available: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'The following currency is not available: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ final class MDInvalidInputDate extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'The following currency is not available: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'The following currency is not available: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ final class MDInvalidLengthUnit extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'The following length unit is not available: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'The following length unit is not available: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ final class MDInvalidLicense extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'The following license is not available: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'The following license is not available: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ final class MDInvalidObjectPublicationBackground extends MDgenericInvalidInputsE
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'The following object publication type is not available: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'The following object publication type is not available: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,7 @@ final class MDInvalidWeightUnit extends MDgenericInvalidInputsException {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'The following weight unit is not available: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'The following weight unit is not available: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDNoUpdateVarSetException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'No update variable has been set.';
|
||||
return $errorMsg;
|
||||
return 'No update variable has been set.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -19,8 +19,7 @@ final class MDTooManyFilesUploadException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'This file\'s extension or mimetype is incorrect: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'This file\'s extension or mimetype is incorrect: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -19,8 +19,7 @@ final class MDWrongFileType extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'This file\'s extension or mimetype is incorrect: ' . $this->getMessage();
|
||||
return $errorMsg;
|
||||
return 'This file\'s extension or mimetype is incorrect: ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,7 @@
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
|
||||
* are not set public.
|
||||
* Exception thrown in case an update failed.
|
||||
*/
|
||||
final class MDcouldNotSaveException extends Exception {
|
||||
/**
|
||||
@ -13,8 +12,7 @@ final class MDcouldNotSaveException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Could not save.';
|
||||
return $errorMsg;
|
||||
return 'Could not save.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
|
||||
* are not set public.
|
||||
* could not be set public.
|
||||
*/
|
||||
final class MDcouldNotSetPublic extends Exception {
|
||||
/**
|
||||
@ -13,8 +13,7 @@ final class MDcouldNotSetPublic extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Could not set this to public.';
|
||||
return $errorMsg;
|
||||
return 'Could not set this to public.';
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ final class MDwriteAccessDeniedException extends Exception {
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'You have no permission to write this.';
|
||||
return $errorMsg;
|
||||
return 'You have no permission to write this.';
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user