X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fcrypto%2Fclass_EncryptInvalidLengthException.php;h=9ecb93fa08787a446a122ba078fb4661ae1f88c7;hp=4b6314d3391009dc12147e85dd7f14d674ad59b5;hb=5203f9bd014ad46fbc7ee54e7223dcd46e14e3b4;hpb=c6d73b0e3246efc824cb98338d4be7ee5bc9f308 diff --git a/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php b/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php index 4b6314d3..9ecb93fa 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, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 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);