diff --git a/MD_JAIL.php b/MD_JAIL.php index d1ba860..624e8f2 100644 --- a/MD_JAIL.php +++ b/MD_JAIL.php @@ -178,7 +178,7 @@ final class MD_JAIL { * * @return void */ - private function _apply_basedir_restriction():void { + private function _apply_basedir_restriction():void { if (empty($this->_open_basedir)) { throw new MDJailSecurityOptionNotSetException("It has not been specified, which memory limit the script should hold. Set MD_JAIL->open_basedir = string."); @@ -187,7 +187,7 @@ final class MD_JAIL { throw new Exception('Failed to set open_basedir restrictions'); } - } + } /** * Enforces security options previously set. @@ -233,6 +233,9 @@ final class MD_JAIL { } + /** + * Destructor. Throws an exception if the settings have not been set. + */ public function __destruct() { if ($this->_status !== self::STATUS_SPECIFIED) { @@ -255,6 +258,5 @@ final class MD_JAIL { } } - } diff --git a/MD_STD_IN.php b/MD_STD_IN.php index e1a82c5..e68c575 100644 --- a/MD_STD_IN.php +++ b/MD_STD_IN.php @@ -9,7 +9,6 @@ declare(strict_types = 1); * functions. */ final class MD_STD_IN { - /** * Validates and sanitizes input integers to be in line with MySQL * autoincrement IDs. @@ -231,5 +230,4 @@ final class MD_STD_IN { throw new MDgenericInvalidInputsException("ISBNs must be either 10 or 13 characters long."); } - } diff --git a/exceptions/MDJailSecurityOptionNotSetException.php b/exceptions/MDJailSecurityOptionNotSetException.php index eaa33e8..4b33d37 100644 --- a/exceptions/MDJailSecurityOptionNotSetException.php +++ b/exceptions/MDJailSecurityOptionNotSetException.php @@ -5,7 +5,6 @@ declare(strict_types = 1); * Exception thrown by MDJail if a required security option has not been set. */ final class MDJailSecurityOptionNotSetException extends Exception { - /** * Error message. * @@ -17,5 +16,4 @@ final class MDJailSecurityOptionNotSetException extends Exception { return $errorMsg; } - }