X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fcrypto%2Fclass_EncryptInvalidLengthException.php;h=ed92aaf713cb9d6fc55da5b2bf37b49f969f1369;hp=43d5a2cec2ed17005367aeff731b944e05d96e3c;hb=66e68715d3d5a5e7fd5a3046471914ef3f9dd4b4;hpb=49f84a522f0ccac3b70728cd41011a0be0eed8cf diff --git a/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php b/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php index 43d5a2ce..ed92aaf7 100644 --- a/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php +++ b/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php @@ -2,11 +2,11 @@ /** * An exception thrown when the decrypted "encrypt" string has an invalid length * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,19 +29,19 @@ class EncryptInvalidLengthException extends FrameworkException { * @param $code Error code * @return void */ - public function __construct(Filterable $filterInstance, $code) { + public function __construct (Filterable $filterInstance, $code) { // Get length - $length = $filterInstance->getConfigInstance()->readConfig('captcha_string_length'); + $length = $filterInstance->getConfigInstance()->getConfigEntry('captcha_string_length'); // Construct message - $message = sprintf("[%s:%d] Encrypt string has an invalid length. Valid: %d", + $message = sprintf('[%s:%d] Encrypt string has an invalid length. Valid: %d', $filterInstance->__toString(), $this->getLine(), $length ); // Set extra data - $this->setExtraData($filterInstance->__toString().':'.$length); + $this->setExtraData($filterInstance->__toString() . ':' . $length); // Call parent exception constructor parent::__construct($message, $code);