From: Roland Häder Date: Thu, 25 Jul 2013 01:07:35 +0000 (+0000) Subject: Replaced more double-quotes to single, exposed in exception AlreadyInitializedStacke... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18326a804304728be346a6898b6d489d0359b647;p=core.git Replaced more double-quotes to single, exposed in exception AlreadyInitializedStackerException --- diff --git a/inc/classes/exceptions/actions/class_InvalidActionException.php b/inc/classes/exceptions/actions/class_InvalidActionException.php index 1712b700..07bd146e 100644 --- a/inc/classes/exceptions/actions/class_InvalidActionException.php +++ b/inc/classes/exceptions/actions/class_InvalidActionException.php @@ -31,7 +31,7 @@ class InvalidActionException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Prepare the message - $message = sprintf("[%s:%d] Cannot resolve action %s (%s).", + $message = sprintf('[%s:%d] Cannot resolve action %s (%s).', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/auth/class_UserAuthorizationException.php b/inc/classes/exceptions/auth/class_UserAuthorizationException.php index 7ce27354..5a4dc027 100644 --- a/inc/classes/exceptions/auth/class_UserAuthorizationException.php +++ b/inc/classes/exceptions/auth/class_UserAuthorizationException.php @@ -31,7 +31,7 @@ class UserAuthorizationException extends FrameworkException { */ public function __construct (Filterable $filterInstance, $code) { // Construct the message - $message = sprintf("[%s:%d] Authorization has failed. Error code %s", + $message = sprintf('[%s:%d] Authorization has failed. Error code %s', $filterInstance->__toString(), $this->getLine(), $this->getHexCode($code) diff --git a/inc/classes/exceptions/base64/class_Base64EncodingBadException.php b/inc/classes/exceptions/base64/class_Base64EncodingBadException.php index 239a6c90..7b0bc6b4 100644 --- a/inc/classes/exceptions/base64/class_Base64EncodingBadException.php +++ b/inc/classes/exceptions/base64/class_Base64EncodingBadException.php @@ -32,7 +32,7 @@ class Base64EncodingBadException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Raw data %s contains invalid characters for BASE64-encoding.", + $message = sprintf('[%s:%d] Raw data %s contains invalid characters for BASE64-encoding.', $messageArray[0]->__toString(), $this->getLine(), $messageArray[1] diff --git a/inc/classes/exceptions/base64/class_Base64EncodingModuloException.php b/inc/classes/exceptions/base64/class_Base64EncodingModuloException.php index 6f766aab..246937e7 100644 --- a/inc/classes/exceptions/base64/class_Base64EncodingModuloException.php +++ b/inc/classes/exceptions/base64/class_Base64EncodingModuloException.php @@ -31,7 +31,7 @@ class Base64EncodingModuloException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Data length %s modulo 4 is not zero.", + $message = sprintf('[%s:%d] Data length %s modulo 4 is not zero.', $messageArray[0]->__toString(), $this->getLine(), strlen($messageArray[1]) diff --git a/inc/classes/exceptions/compressor/class_MismatchingCompressorsException.php b/inc/classes/exceptions/compressor/class_MismatchingCompressorsException.php index 65a8f35a..c0462484 100644 --- a/inc/classes/exceptions/compressor/class_MismatchingCompressorsException.php +++ b/inc/classes/exceptions/compressor/class_MismatchingCompressorsException.php @@ -31,11 +31,11 @@ class MismatchingCompressorsException extends FrameworkException { */ public function __construct (array $array, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Der Kompressor %s zu den geladenen Daten aus %s und der aktuell verwendete Kompressor %s stimmen nicht überein!", + $message = sprintf('[%s:%d] Der Kompressor %s zu den geladenen Daten aus %s und der aktuell verwendete Kompressor %s stimmen nicht überein!', $array[0]->__toString(), $this->getLine(), strtoupper($array[1]), - sprintf("%s:%s", + sprintf('%s:%s', basename(dirname($array[2])), basename($array[2]) ), diff --git a/inc/classes/exceptions/connection/class_ConnectionAlreadyRegisteredException.php b/inc/classes/exceptions/connection/class_ConnectionAlreadyRegisteredException.php index 81cdfee6..a7918032 100644 --- a/inc/classes/exceptions/connection/class_ConnectionAlreadyRegisteredException.php +++ b/inc/classes/exceptions/connection/class_ConnectionAlreadyRegisteredException.php @@ -32,7 +32,7 @@ class ConnectionAlreadyRegisteredException extends AbstractConnectionException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Connection with socket %s is already registered.", + $message = sprintf('[%s:] Connection with socket %s is already registered.', $messageData[0]->__toString(), $messageData[1] ); diff --git a/inc/classes/exceptions/controller/class_DefaultControllerException.php b/inc/classes/exceptions/controller/class_DefaultControllerException.php index faefeed0..82ad6794 100644 --- a/inc/classes/exceptions/controller/class_DefaultControllerException.php +++ b/inc/classes/exceptions/controller/class_DefaultControllerException.php @@ -31,7 +31,7 @@ class DefaultControllerException extends FrameworkException { */ public function __construct (ControllerResolver $resolverInstance, $code) { // Prepare the message - $message = sprintf("[%s:%d] Cannot resolve default controller (%s). Maybe missing?", + $message = sprintf('[%s:%d] Cannot resolve default controller (%s). Maybe missing?', $resolverInstance->__toString(), $this->getLine(), $resolverInstance->getClassName() diff --git a/inc/classes/exceptions/controller/class_InvalidControllerException.php b/inc/classes/exceptions/controller/class_InvalidControllerException.php index 7852dee3..8aea245f 100644 --- a/inc/classes/exceptions/controller/class_InvalidControllerException.php +++ b/inc/classes/exceptions/controller/class_InvalidControllerException.php @@ -31,7 +31,7 @@ class InvalidControllerException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Prepare the message - $message = sprintf("[%s:%d] Cannot resolve controller %s (class name: %s).", + $message = sprintf('[%s:%d] Cannot resolve controller %s (class name: %s).', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php b/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php index b6f68baf..cb34afd6 100644 --- a/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php +++ b/inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php @@ -34,7 +34,7 @@ class EncryptInvalidLengthException extends FrameworkException { $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 diff --git a/inc/classes/exceptions/crypto/class_EncryptMissingException.php b/inc/classes/exceptions/crypto/class_EncryptMissingException.php index de6e814a..46baad63 100644 --- a/inc/classes/exceptions/crypto/class_EncryptMissingException.php +++ b/inc/classes/exceptions/crypto/class_EncryptMissingException.php @@ -31,7 +31,7 @@ class EncryptMissingException extends FrameworkException { */ public function __construct (Filterable $filterInstance, $code) { // Construct message - $message = sprintf("[%s:%d] Encrypt string is missing.", + $message = sprintf('[%s:%d] Encrypt string is missing.', $filterInstance->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/database/general/class_SqlException.php b/inc/classes/exceptions/database/general/class_SqlException.php index fdbeb8bf..82689e72 100644 --- a/inc/classes/exceptions/database/general/class_SqlException.php +++ b/inc/classes/exceptions/database/general/class_SqlException.php @@ -31,7 +31,7 @@ class SqlException extends DatabaseException { */ public function __construct (array $msgArray, $code) { // Construct the message - $message = sprintf("[%s:%d] SQL error detected. Message from database: %s, code: %s.", + $message = sprintf('[%s:%d] SQL error detected. Message from database: %s, code: %s.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php b/inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php index 435e7c2c..04ffb58b 100644 --- a/inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php +++ b/inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php @@ -31,7 +31,7 @@ class SavePathIsEmptyException extends DatabaseException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Save path is empty.", + $message = sprintf('[%s:%d] Save path is empty.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/database/local_file/class_SavePathIsNoDirectoryException.php b/inc/classes/exceptions/database/local_file/class_SavePathIsNoDirectoryException.php index 82903995..fa041e57 100644 --- a/inc/classes/exceptions/database/local_file/class_SavePathIsNoDirectoryException.php +++ b/inc/classes/exceptions/database/local_file/class_SavePathIsNoDirectoryException.php @@ -31,7 +31,7 @@ class SavePathIsNoDirectoryException extends DatabaseException { */ public function __construct ($path, $code) { // Add a message around the missing class - $message = sprintf("Save path %s is no directory.", $path); + $message = sprintf('Save path %s is no directory.', $path); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/database/local_file/class_SavePathReadProtectedException.php b/inc/classes/exceptions/database/local_file/class_SavePathReadProtectedException.php index 9a294fcc..a28c7fc3 100644 --- a/inc/classes/exceptions/database/local_file/class_SavePathReadProtectedException.php +++ b/inc/classes/exceptions/database/local_file/class_SavePathReadProtectedException.php @@ -31,7 +31,7 @@ class SavePathReadProtectedException extends DatabaseException { */ public function __construct ($path, $code) { // Add a message around the missing class - $message = sprintf("Path %s is not readable. Please fix your file access rights.", $path); + $message = sprintf('Path %s is not readable. Please fix your file access rights.', $path); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/database/local_file/class_SavePathWriteProtectedException.php b/inc/classes/exceptions/database/local_file/class_SavePathWriteProtectedException.php index 599346e0..91fd8e03 100644 --- a/inc/classes/exceptions/database/local_file/class_SavePathWriteProtectedException.php +++ b/inc/classes/exceptions/database/local_file/class_SavePathWriteProtectedException.php @@ -31,7 +31,7 @@ class SavePathWriteProtectedException extends DatabaseException { */ public function __construct ($path, $code) { // Add a message around the missing class - $message = sprintf("Save path %s is write-protected. Please fix your file permissions.", $path); + $message = sprintf('Save path %s is write-protected. Please fix your file permissions.', $path); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/filter/class_FilterChainException.php b/inc/classes/exceptions/filter/class_FilterChainException.php index 6497d1b4..db1c8af2 100644 --- a/inc/classes/exceptions/filter/class_FilterChainException.php +++ b/inc/classes/exceptions/filter/class_FilterChainException.php @@ -31,7 +31,7 @@ class FilterChainException extends FrameworkException { */ public function __construct (Filterable $filterInstance, $code) { // Construct the message - $message = sprintf("[%s:%d] Filter chain interruppted by fatal error in filter.", + $message = sprintf('[%s:%d] Filter chain interruppted by fatal error in filter.', $filterInstance->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/filter/class_InvalidFilterChainException.php b/inc/classes/exceptions/filter/class_InvalidFilterChainException.php index e45d1bf6..86a342d1 100644 --- a/inc/classes/exceptions/filter/class_InvalidFilterChainException.php +++ b/inc/classes/exceptions/filter/class_InvalidFilterChainException.php @@ -31,7 +31,7 @@ class InvalidFilterChainException extends FrameworkException { */ public function __construct (array $filterArray, $code) { // Construct the message - $message = sprintf("[%s:%d] Filter chain %s is not initialized.", + $message = sprintf('[%s:%d] Filter chain %s is not initialized.', $filterArray[0]->__toString(), $this->getLine(), $filterArray[1] diff --git a/inc/classes/exceptions/helper/class_FormClosedException.php b/inc/classes/exceptions/helper/class_FormClosedException.php index 56eb7d9c..8af44ee9 100644 --- a/inc/classes/exceptions/helper/class_FormClosedException.php +++ b/inc/classes/exceptions/helper/class_FormClosedException.php @@ -32,7 +32,7 @@ class FormClosedException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Could not add form element %s because form is closed.", + $message = sprintf('[%s:%d] Could not add form element %s because form is closed.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/helper/class_FormGroupClosedException.php b/inc/classes/exceptions/helper/class_FormGroupClosedException.php index 188f7d65..a8d5c5c4 100644 --- a/inc/classes/exceptions/helper/class_FormGroupClosedException.php +++ b/inc/classes/exceptions/helper/class_FormGroupClosedException.php @@ -31,7 +31,7 @@ class FormGroupClosedException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Could not add sub group %s because no form group has been opened before.", + $message = sprintf('[%s:%d] Could not add sub group %s because no form group has been opened before.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/helper/class_FormOpenedException.php b/inc/classes/exceptions/helper/class_FormOpenedException.php index a31a0a01..d5fcc63f 100644 --- a/inc/classes/exceptions/helper/class_FormOpenedException.php +++ b/inc/classes/exceptions/helper/class_FormOpenedException.php @@ -32,7 +32,7 @@ class FormOpenedException extends FrameworkException { */ public function __construct (BaseHelper $helperInstance, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Form is not yet closed. Close it with method %s::addFormTag() and add no parameters.", + $message = sprintf('[%s:%d] Form is not yet closed. Close it with method %s::addFormTag() and add no parameters.', $helperInstance->__toString(), $this->getLine(), $helperInstance->__toString() diff --git a/inc/classes/exceptions/helper/class_HelperGroupAlreadyCreatedException.php b/inc/classes/exceptions/helper/class_HelperGroupAlreadyCreatedException.php index fb9d2f17..9aa5bc7c 100644 --- a/inc/classes/exceptions/helper/class_HelperGroupAlreadyCreatedException.php +++ b/inc/classes/exceptions/helper/class_HelperGroupAlreadyCreatedException.php @@ -31,7 +31,7 @@ class HelperGroupAlreadyCreatedException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Group %s already opened before.", + $message = sprintf('[%s:%d] Group %s already opened before.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/helper/class_HelperNoPreviousOpenedSubGroupException.php b/inc/classes/exceptions/helper/class_HelperNoPreviousOpenedSubGroupException.php index 44c16db5..a5ce3e9a 100644 --- a/inc/classes/exceptions/helper/class_HelperNoPreviousOpenedSubGroupException.php +++ b/inc/classes/exceptions/helper/class_HelperNoPreviousOpenedSubGroupException.php @@ -31,7 +31,7 @@ class HelperNoPreviousOpenedSubGroupException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Sub group not opened before. Raw text follows: %s", + $message = sprintf('[%s:%d] Sub group not opened before. Raw text follows: %s', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/helper/class_HelperSubGroupAlreadyCreatedException.php b/inc/classes/exceptions/helper/class_HelperSubGroupAlreadyCreatedException.php index e8df6ecf..2c637642 100644 --- a/inc/classes/exceptions/helper/class_HelperSubGroupAlreadyCreatedException.php +++ b/inc/classes/exceptions/helper/class_HelperSubGroupAlreadyCreatedException.php @@ -31,7 +31,7 @@ class HelperSubGroupAlreadyCreatedException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Sub group %s already opened before.", + $message = sprintf('[%s:%d] Sub group %s already opened before.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/helper/class_NoGroupOpenedException.php b/inc/classes/exceptions/helper/class_NoGroupOpenedException.php index 64618f97..919bb9e5 100644 --- a/inc/classes/exceptions/helper/class_NoGroupOpenedException.php +++ b/inc/classes/exceptions/helper/class_NoGroupOpenedException.php @@ -31,7 +31,7 @@ class NoGroupOpenedException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Group not opened before. Raw text follows: %s", + $message = sprintf('[%s:%d] Group not opened before. Raw text follows: %s', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/helper/class_UserInstanceMissingException.php b/inc/classes/exceptions/helper/class_UserInstanceMissingException.php index a07a0a84..0cfe03c1 100644 --- a/inc/classes/exceptions/helper/class_UserInstanceMissingException.php +++ b/inc/classes/exceptions/helper/class_UserInstanceMissingException.php @@ -31,7 +31,7 @@ class UserInstanceMissingException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Registry key %s does not include a class with implemented interface Manageable(User|Guest).", + $message = sprintf('[%s:%d] Registry key %s does not include a class with implemented interface Manageable(User|Guest).', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php b/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php index adebc607..1fcbed4f 100644 --- a/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php +++ b/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php @@ -31,7 +31,7 @@ class DirPointerNotOpenedException extends FrameworkException { */ public function __construct ($path, $code) { // Add a message around the missing class - $message = sprintf("Für den Pfad %s konnte kein Pointer initialisiert werden.", $path); + $message = sprintf('Für den Pfad %s konnte kein Pointer initialisiert werden.', $path); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/io/class_FileIoException.php b/inc/classes/exceptions/io/class_FileIoException.php index 990147f5..2eadbfc5 100644 --- a/inc/classes/exceptions/io/class_FileIoException.php +++ b/inc/classes/exceptions/io/class_FileIoException.php @@ -31,7 +31,7 @@ class FileIoException extends FrameworkException { */ public function __construct ($fqfn, $code) { // Add a message around the missing class - $message = sprintf("A problem has been detected reading or writing to/from %s.", $fqfn); + $message = sprintf('A problem has been detected reading or writing to/from %s.', $fqfn); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/io/class_FileReadProtectedException.php b/inc/classes/exceptions/io/class_FileReadProtectedException.php index 353a4ed8..68e997f7 100644 --- a/inc/classes/exceptions/io/class_FileReadProtectedException.php +++ b/inc/classes/exceptions/io/class_FileReadProtectedException.php @@ -31,7 +31,7 @@ class FileReadProtectedException extends FrameworkException { */ public function __construct ($fileName, $code) { // Add a message around the missing class - $message = sprintf("File %s is read-protected. Please set read access rights (CHMOD).", $fileName); + $message = sprintf('File %s is read-protected. Please set read access rights (CHMOD).', $fileName); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/io/class_InvalidDataLengthException.php b/inc/classes/exceptions/io/class_InvalidDataLengthException.php index e5363cdb..d413ff34 100644 --- a/inc/classes/exceptions/io/class_InvalidDataLengthException.php +++ b/inc/classes/exceptions/io/class_InvalidDataLengthException.php @@ -31,7 +31,7 @@ class InvalidDataLengthException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Eine unerwartete Datenlänge von %s Byte ist aufgetreten. %s wurden erwartet!", + $message = sprintf('[%s:%d] Unexpected data length of %s bytes has been detected, %s bytes were expected.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php b/inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php index a85a4832..f84099d0 100644 --- a/inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php +++ b/inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php @@ -31,7 +31,7 @@ class InvalidMD5ChecksumException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Die MD5-Prüfsummen %s und %s stimmen nicht überein!", + $message = sprintf('[%s:%d] MD5 hashes %s and %s doesnt match.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/io/class_InvalidResourceException.php b/inc/classes/exceptions/io/class_InvalidResourceException.php index 10df4e7c..b40d71b2 100644 --- a/inc/classes/exceptions/io/class_InvalidResourceException.php +++ b/inc/classes/exceptions/io/class_InvalidResourceException.php @@ -31,7 +31,7 @@ class InvalidResourceException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Has an invalid resource.", + $message = sprintf('[%s:%d] Has an invalid resource.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/io/class_PathIsEmptyException.php b/inc/classes/exceptions/io/class_PathIsEmptyException.php index 8c54a6b9..32162415 100644 --- a/inc/classes/exceptions/io/class_PathIsEmptyException.php +++ b/inc/classes/exceptions/io/class_PathIsEmptyException.php @@ -31,7 +31,7 @@ class PathIsEmptyException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Directory path is empty.", + $message = sprintf('[%s:%d] Directory path is empty.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/io/class_PathReadProtectedException.php b/inc/classes/exceptions/io/class_PathReadProtectedException.php index c9afc048..88da5d26 100644 --- a/inc/classes/exceptions/io/class_PathReadProtectedException.php +++ b/inc/classes/exceptions/io/class_PathReadProtectedException.php @@ -31,7 +31,7 @@ class PathReadProtectedException extends FrameworkException { */ public function __construct ($path, $code) { // Add a message around the missing class - $message = sprintf("Der Pfad %s ist lese-geschützt. Bitte Zugriffsrechte (CHMOD) zum Lesen setzen.", $path); + $message = sprintf('The path %s appears to be read-protected. Please fix your CHMOD rights.', $path); // Call parent constructor parent::__construct($message, $code); diff --git a/inc/classes/exceptions/language/class_InvalidLanguagePathStringException.php b/inc/classes/exceptions/language/class_InvalidLanguagePathStringException.php index 988d20c8..e6680189 100644 --- a/inc/classes/exceptions/language/class_InvalidLanguagePathStringException.php +++ b/inc/classes/exceptions/language/class_InvalidLanguagePathStringException.php @@ -31,7 +31,7 @@ class InvalidLanguagePathStringException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] %s is not a string with path!", + $message = sprintf('[%s:%d] %s is not a string with path.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/language/class_LanguagePathIsEmptyException.php b/inc/classes/exceptions/language/class_LanguagePathIsEmptyException.php index d539baa2..536081d1 100644 --- a/inc/classes/exceptions/language/class_LanguagePathIsEmptyException.php +++ b/inc/classes/exceptions/language/class_LanguagePathIsEmptyException.php @@ -31,7 +31,7 @@ class LanguagePathIsEmptyException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Language base path is empty.", + $message = sprintf('[%s:%d] Language base path is empty.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/language/class_LanguagePathIsNoDirectoryException.php b/inc/classes/exceptions/language/class_LanguagePathIsNoDirectoryException.php index 1a3b2f64..eba0ae49 100644 --- a/inc/classes/exceptions/language/class_LanguagePathIsNoDirectoryException.php +++ b/inc/classes/exceptions/language/class_LanguagePathIsNoDirectoryException.php @@ -31,7 +31,7 @@ class LanguagePathIsNoDirectoryException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Language base path %s does not exist or is not a directory.", + $message = sprintf('[%s:%d] Language base path %s does not exist or is not a directory.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/language/class_LanguagePathReadProtectedException.php b/inc/classes/exceptions/language/class_LanguagePathReadProtectedException.php index 888cb7d9..8bfbc3d8 100644 --- a/inc/classes/exceptions/language/class_LanguagePathReadProtectedException.php +++ b/inc/classes/exceptions/language/class_LanguagePathReadProtectedException.php @@ -31,7 +31,7 @@ class LanguagePathReadProtectedException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Base language path %s is read-protected. Please change access rights (CHMOD).", + $message = sprintf('[%s:%d] Base language path %s is read-protected. Please change access rights (CHMOD).', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/main/class_ClassMismatchException.php b/inc/classes/exceptions/main/class_ClassMismatchException.php index 7d6e9c6b..965166ce 100644 --- a/inc/classes/exceptions/main/class_ClassMismatchException.php +++ b/inc/classes/exceptions/main/class_ClassMismatchException.php @@ -31,7 +31,7 @@ class ClassMismatchException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("The class %s does not match class %s.", + $message = sprintf('The class %s does not match class %s.', $classArray[0], $classArray[1] ); diff --git a/inc/classes/exceptions/main/class_ConfigEntryIsEmptyException.php b/inc/classes/exceptions/main/class_ConfigEntryIsEmptyException.php index 7ff37aa9..a81d8894 100644 --- a/inc/classes/exceptions/main/class_ConfigEntryIsEmptyException.php +++ b/inc/classes/exceptions/main/class_ConfigEntryIsEmptyException.php @@ -31,7 +31,7 @@ class ConfigEntryIsEmptyException extends FrameworkException { */ public function __construct (FrameworkConfiguration $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Empty configuration entry provided!", + $message = sprintf('[%s:%d] Empty configuration entry provided.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/main/class_DimNotFoundInArrayException.php b/inc/classes/exceptions/main/class_DimNotFoundInArrayException.php index 25833a86..f4a9d2d2 100644 --- a/inc/classes/exceptions/main/class_DimNotFoundInArrayException.php +++ b/inc/classes/exceptions/main/class_DimNotFoundInArrayException.php @@ -32,13 +32,13 @@ class DimNotFoundInArrayException extends FrameworkException { public function __construct (FrameworkInterface $class, $code) { if (is_object($class)) { // Add a message around the missing class - $message = sprintf("[%s:%d] Dimensions not found in array, array is invalid!", + $message = sprintf('[%s:%d] Dimensions not found in array, array is invalid!', $class->__toString(), $this->getLine() ); } else { // No class given - $message = sprintf("Please provide a class for %s", __CLASS__); + $message = sprintf('Please provide a class for %s', __CLASS__); } // Call parent constructor diff --git a/inc/classes/exceptions/main/class_EmptyVariableException.php b/inc/classes/exceptions/main/class_EmptyVariableException.php index 7d35e4ac..f8513a5d 100644 --- a/inc/classes/exceptions/main/class_EmptyVariableException.php +++ b/inc/classes/exceptions/main/class_EmptyVariableException.php @@ -31,7 +31,7 @@ class EmptyVariableException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Variable %s is not set.", + $message = sprintf('[%s:%d] Variable %s is not set.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/main/class_IndexOutOfBoundsException.php b/inc/classes/exceptions/main/class_IndexOutOfBoundsException.php index 5e0fb531..fc07070a 100644 --- a/inc/classes/exceptions/main/class_IndexOutOfBoundsException.php +++ b/inc/classes/exceptions/main/class_IndexOutOfBoundsException.php @@ -31,7 +31,7 @@ class IndexOutOfBoundsException extends FrameworkException { */ public function __construct ($message, $code) { // Add a message around the missing class - $message = sprintf("%s is out of bounds.", + $message = sprintf('%s is out of bounds.', $message ); diff --git a/inc/classes/exceptions/main/class_InvalidArrayCountException.php b/inc/classes/exceptions/main/class_InvalidArrayCountException.php index d3697a7b..396907b8 100644 --- a/inc/classes/exceptions/main/class_InvalidArrayCountException.php +++ b/inc/classes/exceptions/main/class_InvalidArrayCountException.php @@ -31,7 +31,7 @@ class InvalidArrayCountException extends FrameworkException { */ public function __construct (array $array, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] %s has %d elements, expected arre %d.", + $message = sprintf('[%s:%d] %s has %d elements, expected arre %d.', $array[0]->__toString(), $this->getLine(), $array[1], diff --git a/inc/classes/exceptions/main/class_InvalidCommandException.php b/inc/classes/exceptions/main/class_InvalidCommandException.php index 6e2c6575..b4be84bd 100644 --- a/inc/classes/exceptions/main/class_InvalidCommandException.php +++ b/inc/classes/exceptions/main/class_InvalidCommandException.php @@ -31,7 +31,7 @@ class InvalidCommandException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Invalid command %s (class %s) detected.", + $message = sprintf('[%s:%d] Invalid command %s (class %s) detected.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/main/class_InvalidCommandInstanceException.php b/inc/classes/exceptions/main/class_InvalidCommandInstanceException.php index 8b1aa451..8c28baeb 100644 --- a/inc/classes/exceptions/main/class_InvalidCommandInstanceException.php +++ b/inc/classes/exceptions/main/class_InvalidCommandInstanceException.php @@ -31,7 +31,7 @@ class InvalidCommandInstanceException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Invalid command %s detected.", + $message = sprintf('[%s:%d] Invalid command %s detected.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/main/class_InvalidInterfaceException.php b/inc/classes/exceptions/main/class_InvalidInterfaceException.php index c2a63282..3ac08c42 100644 --- a/inc/classes/exceptions/main/class_InvalidInterfaceException.php +++ b/inc/classes/exceptions/main/class_InvalidInterfaceException.php @@ -31,7 +31,7 @@ class InvalidInterfaceException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Object does not implement expected interface %s.", + $message = sprintf('[%s:%d] Object does not implement expected interface %s.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/main/class_InvalidObjectException.php b/inc/classes/exceptions/main/class_InvalidObjectException.php index 87f71c41..978489bc 100644 --- a/inc/classes/exceptions/main/class_InvalidObjectException.php +++ b/inc/classes/exceptions/main/class_InvalidObjectException.php @@ -31,7 +31,7 @@ class InvalidObjectException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Object is not allowed here.", + $message = sprintf('[%s:%d] Object is not allowed here.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/main/class_MissingArrayElementsException.php b/inc/classes/exceptions/main/class_MissingArrayElementsException.php index 634ac13d..cb0b9092 100644 --- a/inc/classes/exceptions/main/class_MissingArrayElementsException.php +++ b/inc/classes/exceptions/main/class_MissingArrayElementsException.php @@ -41,7 +41,7 @@ class MissingArrayElementsException extends FrameworkException { } // Add a message around the missing class - $message = sprintf("[%s:%d] Array %s() Does not have these elements: %s", + $message = sprintf('[%s:%d] Array %s() Does not have these elements: %s', $classArray[0]->__toString(), $this->getLine(), $classArray[1], diff --git a/inc/classes/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php b/inc/classes/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php index 06778632..96c8c058 100644 --- a/inc/classes/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php +++ b/inc/classes/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php @@ -31,7 +31,7 @@ class MissingDecimalsThousandsSeparatorException extends FrameworkException { */ public function __construct ($instance, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Die Dezimal- und Tausendertrenner fehlen!", + $message = sprintf('[%s:%d] Decimal and thousand seperators are missing.', $instance->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/main/class_MissingMethodException.php b/inc/classes/exceptions/main/class_MissingMethodException.php index 82646c33..1c59be5a 100644 --- a/inc/classes/exceptions/main/class_MissingMethodException.php +++ b/inc/classes/exceptions/main/class_MissingMethodException.php @@ -36,7 +36,7 @@ class MissingMethodException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] This class has no method %s()!", + $message = sprintf('[%s:%d] This class has no method %s().', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/main/class_NoClassException.php b/inc/classes/exceptions/main/class_NoClassException.php index fcb791b2..2e8a962d 100644 --- a/inc/classes/exceptions/main/class_NoClassException.php +++ b/inc/classes/exceptions/main/class_NoClassException.php @@ -31,7 +31,7 @@ class NoClassException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Class %s not found.", + $message = sprintf('[%s:%d] Class %s not found.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/main/class_NoConfigEntryException.php b/inc/classes/exceptions/main/class_NoConfigEntryException.php index 16e2b956..764fb6f4 100644 --- a/inc/classes/exceptions/main/class_NoConfigEntryException.php +++ b/inc/classes/exceptions/main/class_NoConfigEntryException.php @@ -32,7 +32,7 @@ class NoConfigEntryException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Configuration entry %s not found.", + $message = sprintf('[%s:%d] Configuration entry %s not found.', $classArray[0], $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/main/class_NullPointerException.php b/inc/classes/exceptions/main/class_NullPointerException.php index 4a6db040..48bbe471 100644 --- a/inc/classes/exceptions/main/class_NullPointerException.php +++ b/inc/classes/exceptions/main/class_NullPointerException.php @@ -31,7 +31,7 @@ class NullPointerException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] An object instance is set to null.", + $message = sprintf('[%s:%d] An object instance is set to null.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/main/class_ResponseHeadersAlreadySentException.php b/inc/classes/exceptions/main/class_ResponseHeadersAlreadySentException.php index ae730dcc..b4fb9891 100644 --- a/inc/classes/exceptions/main/class_ResponseHeadersAlreadySentException.php +++ b/inc/classes/exceptions/main/class_ResponseHeadersAlreadySentException.php @@ -31,7 +31,7 @@ class ResponseHeadersAlreadySentException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Headers are already sent!", + $message = sprintf('[%s:%d] Headers are already sent.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/main/class_UnsupportedOperationException.php b/inc/classes/exceptions/main/class_UnsupportedOperationException.php index a971ee82..0519dfde 100644 --- a/inc/classes/exceptions/main/class_UnsupportedOperationException.php +++ b/inc/classes/exceptions/main/class_UnsupportedOperationException.php @@ -41,7 +41,7 @@ class UnsupportedOperationException extends FrameworkException { } // END - if // Add a message around the missing class - $message = sprintf("[%s:%d] Method %s() is unsupported or should not be called. extraInstance=%s", + $message = sprintf('[%s:%d] Method %s() is unsupported or should not be called. extraInstance=%s', $classArray[0]->__toString(), $this->getLine(), $classArray[1], diff --git a/inc/classes/exceptions/main/class_VariableIsNotSetException.php b/inc/classes/exceptions/main/class_VariableIsNotSetException.php index 9ebf5cdc..a306dc28 100644 --- a/inc/classes/exceptions/main/class_VariableIsNotSetException.php +++ b/inc/classes/exceptions/main/class_VariableIsNotSetException.php @@ -31,7 +31,7 @@ class VariableIsNotSetException extends FrameworkException { */ public function __construct (array $array, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Bei der Initialisierung der Applikation %s wurde keine Variable %s erzeugt.", + $message = sprintf('[%s:%d] While the application %s was initialized, a variable %s was not created.', $array[0]->__toString(), $this->getLine(), $array[1], diff --git a/inc/classes/exceptions/result/class_InvalidDatabaseResultException.php b/inc/classes/exceptions/result/class_InvalidDatabaseResultException.php index 5c3d3374..ce628134 100644 --- a/inc/classes/exceptions/result/class_InvalidDatabaseResultException.php +++ b/inc/classes/exceptions/result/class_InvalidDatabaseResultException.php @@ -31,7 +31,7 @@ class InvalidDatabaseResultException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Construct the message - $message = sprintf("[%s:%d] Database instance %s contains invalid entries.", + $message = sprintf('[%s:%d] Database instance %s contains invalid entries.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1]->__toString() diff --git a/inc/classes/exceptions/result/class_ResultUpdateException.php b/inc/classes/exceptions/result/class_ResultUpdateException.php index dd49517c..c9c8a8f5 100644 --- a/inc/classes/exceptions/result/class_ResultUpdateException.php +++ b/inc/classes/exceptions/result/class_ResultUpdateException.php @@ -31,7 +31,7 @@ class ResultUpdateException extends FrameworkException { */ public function __construct (UpdateableResult $resultInstance, $code) { // Construct the message - $message = sprintf("[%s:%d] Update of result instance has nothing changed.", + $message = sprintf('[%s:%d] Update of result instance has nothing changed.', $resultInstance->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/socket/class_InvalidServerSocketException.php b/inc/classes/exceptions/socket/class_InvalidServerSocketException.php index 81139558..cc59309d 100644 --- a/inc/classes/exceptions/socket/class_InvalidServerSocketException.php +++ b/inc/classes/exceptions/socket/class_InvalidServerSocketException.php @@ -31,7 +31,7 @@ class InvalidServerSocketException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Socket resource %s is not a server socket!", + $message = sprintf('[%s:] Socket resource %s is not a server socket.', $messageData[0]->__toString(), $messageData[1] ); diff --git a/inc/classes/exceptions/socket/class_InvalidSocketException.php b/inc/classes/exceptions/socket/class_InvalidSocketException.php index 8c93878c..120083b4 100644 --- a/inc/classes/exceptions/socket/class_InvalidSocketException.php +++ b/inc/classes/exceptions/socket/class_InvalidSocketException.php @@ -37,7 +37,7 @@ class InvalidSocketException extends AbstractSocketException { $lastError = socket_last_error($messageData[1]); // Construct the message - $message = sprintf("[%s:] Invalid socket, type=%s, errno=%s, errstr=%s", + $message = sprintf('[%s:] Invalid socket, type=%s, errno=%s, errstr=%s', $messageData[0]->__toString(), gettype($messageData[1]), $lastError, @@ -45,7 +45,7 @@ class InvalidSocketException extends AbstractSocketException { ); } else { // Construct the message - $message = sprintf("[%s:] Invalid socket, type=%s(%s), errno=%s, errstr=%s", + $message = sprintf('[%s:] Invalid socket, type=%s(%s), errno=%s, errstr=%s', $messageData[0]->__toString(), $messageData[1], gettype($messageData[1]), diff --git a/inc/classes/exceptions/socket/class_NoSocketErrorDetectedException.php b/inc/classes/exceptions/socket/class_NoSocketErrorDetectedException.php index b7a0028e..548502ec 100644 --- a/inc/classes/exceptions/socket/class_NoSocketErrorDetectedException.php +++ b/inc/classes/exceptions/socket/class_NoSocketErrorDetectedException.php @@ -33,7 +33,7 @@ class NoSocketErrorDetectedException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Socket %s has no error reported.", + $message = sprintf('[%s:] Socket %s has no error reported.', $messageData[0]->__toString(), $messageData[1] ); diff --git a/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php b/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php index 06c3cbfe..d65ba712 100644 --- a/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php +++ b/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php @@ -31,7 +31,7 @@ class NoSocketRegisteredException extends AbstractSocketException { */ public function __construct (ProtocolHandler $protocolInstance, $code) { // Construct the message - $message = sprintf("[%s:] Requested socket is not yet registered.", + $message = sprintf('[%s:] Requested socket is not yet registered.', $protocolInstance->__toString() ); diff --git a/inc/classes/exceptions/socket/class_SocketAlreadyRegisteredException.php b/inc/classes/exceptions/socket/class_SocketAlreadyRegisteredException.php index 8cb9de76..163d5ce5 100644 --- a/inc/classes/exceptions/socket/class_SocketAlreadyRegisteredException.php +++ b/inc/classes/exceptions/socket/class_SocketAlreadyRegisteredException.php @@ -32,7 +32,7 @@ class SocketAlreadyRegisteredException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Socket %s is already registered.", + $message = sprintf('[%s:] Socket %s is already registered.', $messageData[0]->__toString(), $messageData[1] ); diff --git a/inc/classes/exceptions/socket/class_SocketConnectionException.php b/inc/classes/exceptions/socket/class_SocketConnectionException.php index 0b43efe8..42adb0cd 100644 --- a/inc/classes/exceptions/socket/class_SocketConnectionException.php +++ b/inc/classes/exceptions/socket/class_SocketConnectionException.php @@ -33,7 +33,7 @@ class SocketConnectionException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Could not make a connection, type=%s, errno=%s, errstr=%s", + $message = sprintf('[%s:] Could not make a connection, type=%s, errno=%s, errstr=%s', $messageData[0]->__toString(), gettype($messageData[1]), $messageData[2], diff --git a/inc/classes/exceptions/socket/class_SocketCreationException.php b/inc/classes/exceptions/socket/class_SocketCreationException.php index b30cdead..1aeda27c 100644 --- a/inc/classes/exceptions/socket/class_SocketCreationException.php +++ b/inc/classes/exceptions/socket/class_SocketCreationException.php @@ -33,7 +33,7 @@ class SocketCreationException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Cannot create socket, type=%s, errno=%s, errstr=%s", + $message = sprintf('[%s:] Cannot create socket, type=%s, errno=%s, errstr=%s', $messageData[0]->__toString(), $messageData[1], $messageData[2], diff --git a/inc/classes/exceptions/socket/class_SocketOptionException.php b/inc/classes/exceptions/socket/class_SocketOptionException.php index a5101176..4d1a0884 100644 --- a/inc/classes/exceptions/socket/class_SocketOptionException.php +++ b/inc/classes/exceptions/socket/class_SocketOptionException.php @@ -33,7 +33,7 @@ class SocketOptionException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Changing option on socket failed, type=%s, errno=%s, errstr=%s", + $message = sprintf('[%s:] Changing option on socket failed, type=%s, errno=%s, errstr=%s', $messageData[0]->__toString(), gettype($messageData[1]), $messageData[2], diff --git a/inc/classes/exceptions/socket/class_SocketShutdownException.php b/inc/classes/exceptions/socket/class_SocketShutdownException.php index 25cf41f6..1da3f348 100644 --- a/inc/classes/exceptions/socket/class_SocketShutdownException.php +++ b/inc/classes/exceptions/socket/class_SocketShutdownException.php @@ -35,7 +35,7 @@ class SocketShutdownException extends AbstractSocketException { $socketResource = $helperInstance->getSocketResource(); // Construct the message - $message = sprintf("[%s:] Socket %s cannot be shutdown down. errNo=%s, errStr=%s", + $message = sprintf('[%s:] Socket %s cannot be shutdown down. errNo=%s, errStr=%s', $helperInstance->__toString(), $socketResource, socket_last_error($socketResource), diff --git a/inc/classes/exceptions/socket/class_UnsupportedSocketErrorHandlerException.php b/inc/classes/exceptions/socket/class_UnsupportedSocketErrorHandlerException.php index c8f67809..9f8544c0 100644 --- a/inc/classes/exceptions/socket/class_UnsupportedSocketErrorHandlerException.php +++ b/inc/classes/exceptions/socket/class_UnsupportedSocketErrorHandlerException.php @@ -32,7 +32,7 @@ class UnsupportedSocketErrorHandlerException extends AbstractSocketException { */ public function __construct (array $messageData, $code) { // Construct the message - $message = sprintf("[%s:] Socket error handler %s is not yet implemented, errorCode=%s, message=%s", + $message = sprintf('[%s:] Socket error handler %s is not yet implemented, errorCode=%s, message=%s', $messageData[0]->__toString(), $messageData[1], $messageData[2], diff --git a/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php b/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php index 2c8d3ca0..24c06eff 100644 --- a/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php +++ b/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php @@ -25,16 +25,17 @@ class AlreadyInitializedStackerException extends FrameworkException { /** * The super constructor for all exceptions * - * @param $messageArray Error message array - * @param $code Error code + * @param $messageArray Error message array + * @param $code Error code * @return void */ public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Stacker %s already initialized.", + $message = sprintf('[%s:%d] Stacker %s already initialized, forceReInit=%d.', $messageArray[0]->__toString(), $this->getLine(), - $messageArray[1] + $messageArray[1], + intval($forceReInit) ); // Call parent exception constructor diff --git a/inc/classes/exceptions/stacker/class_EmptyStackerException.php b/inc/classes/exceptions/stacker/class_EmptyStackerException.php index 63218e1d..ba7f1545 100644 --- a/inc/classes/exceptions/stacker/class_EmptyStackerException.php +++ b/inc/classes/exceptions/stacker/class_EmptyStackerException.php @@ -31,7 +31,7 @@ class EmptyStackerException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Stacker %s is empty.", + $message = sprintf('[%s:%d] Stacker %s is empty.', $messageArray[0]->__toString(), $this->getLine(), $messageArray[1] diff --git a/inc/classes/exceptions/stacker/class_FullStackerException.php b/inc/classes/exceptions/stacker/class_FullStackerException.php index c08926f2..d5f30e0e 100644 --- a/inc/classes/exceptions/stacker/class_FullStackerException.php +++ b/inc/classes/exceptions/stacker/class_FullStackerException.php @@ -31,7 +31,7 @@ class FullStackerException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Stacker %s is full.", + $message = sprintf('[%s:%d] Stacker %s is full.', $messageArray[0]->__toString(), $this->getLine(), $messageArray[1] diff --git a/inc/classes/exceptions/stacker/class_NoStackerException.php b/inc/classes/exceptions/stacker/class_NoStackerException.php index d6b5b072..8d6989e9 100644 --- a/inc/classes/exceptions/stacker/class_NoStackerException.php +++ b/inc/classes/exceptions/stacker/class_NoStackerException.php @@ -31,7 +31,7 @@ class NoStackerException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Stacker %s is not initialized.", + $message = sprintf('[%s:%d] Stacker %s is not initialized.', $messageArray[0]->__toString(), $this->getLine(), $messageArray[1] diff --git a/inc/classes/exceptions/state/class_InvalidStateInstanceException.php b/inc/classes/exceptions/state/class_InvalidStateInstanceException.php index 664b98c9..901109fb 100644 --- a/inc/classes/exceptions/state/class_InvalidStateInstanceException.php +++ b/inc/classes/exceptions/state/class_InvalidStateInstanceException.php @@ -31,7 +31,7 @@ class InvalidStateInstanceException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Invalid state %s of type %s detected.", + $message = sprintf('[%s:%d] Invalid state %s of type %s detected.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/state/class_UnresolveableStateException.php b/inc/classes/exceptions/state/class_UnresolveableStateException.php index 7d45683e..410589db 100644 --- a/inc/classes/exceptions/state/class_UnresolveableStateException.php +++ b/inc/classes/exceptions/state/class_UnresolveableStateException.php @@ -31,7 +31,7 @@ class UnresolveableStateException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Prepare the message - $message = sprintf("[%s:%d] Cannot resolve state %s (class name: %s).", + $message = sprintf('[%s:%d] Cannot resolve state %s (class name: %s).', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/template/class_BasePathIsEmptyException.php b/inc/classes/exceptions/template/class_BasePathIsEmptyException.php index d6477bd7..52bc5d85 100644 --- a/inc/classes/exceptions/template/class_BasePathIsEmptyException.php +++ b/inc/classes/exceptions/template/class_BasePathIsEmptyException.php @@ -31,7 +31,7 @@ class BasePathIsEmptyException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Template path is empty.", + $message = sprintf('[%s:%d] Template path is empty.', $class->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php b/inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php index 3664cf4a..e5a5113e 100644 --- a/inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php +++ b/inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php @@ -31,7 +31,7 @@ class BasePathIsNoDirectoryException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Der Template-Basispfad %s existiert nicht oder ist eine Datei!", + $message = sprintf('[%s:%d] Template base path %s does not exist.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/template/class_BasePathReadProtectedException.php b/inc/classes/exceptions/template/class_BasePathReadProtectedException.php index b12e8d73..705aa294 100644 --- a/inc/classes/exceptions/template/class_BasePathReadProtectedException.php +++ b/inc/classes/exceptions/template/class_BasePathReadProtectedException.php @@ -31,7 +31,7 @@ class BasePathReadProtectedException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Der Template-Basispfad %s ist lesegeschützt! Bitte Zugriffsrechte (CHMOD) ändern.", + $message = sprintf('[%s:%d] Der Template-Basispfad %s ist lesegeschützt! Bitte Zugriffsrechte (CHMOD) ändern.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/template/class_InvalidBasePathStringException.php b/inc/classes/exceptions/template/class_InvalidBasePathStringException.php index 383e67a5..9556d291 100644 --- a/inc/classes/exceptions/template/class_InvalidBasePathStringException.php +++ b/inc/classes/exceptions/template/class_InvalidBasePathStringException.php @@ -31,7 +31,7 @@ class InvalidBasePathStringException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] %s is not a string with a base path!", + $message = sprintf('[%s:%d] %s is not a string with a base path.', $classArray[0]->__toString(), $this->getLine(), $classArray[1] diff --git a/inc/classes/exceptions/template/class_NoVariableException.php b/inc/classes/exceptions/template/class_NoVariableException.php index 3a9b178e..6eb50f1f 100644 --- a/inc/classes/exceptions/template/class_NoVariableException.php +++ b/inc/classes/exceptions/template/class_NoVariableException.php @@ -31,7 +31,7 @@ class NoVariableException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Variable %s is not set, cannot modify(?) it's value to %s.", + $message = sprintf('[%s:%d] Variable %s is not set, cannot modify(?) its value to %s.', $messageArray[0]->__toString(), $this->getLine(), $messageArray[1], diff --git a/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php b/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php index 20f6a59d..31d1eccd 100644 --- a/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php +++ b/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php @@ -31,7 +31,7 @@ class UnexpectedTemplateTypeException extends FrameworkException { */ public function __construct (array $msgArray, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Der Template-Typ %s entspricht nicht dem erwartetem Template-Typ %s.", + $message = sprintf('[%s:%d] Der Template-Typ %s entspricht nicht dem erwartetem Template-Typ %s.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1], diff --git a/inc/classes/exceptions/template/class_UnsupportedTemplateEngineException.php b/inc/classes/exceptions/template/class_UnsupportedTemplateEngineException.php index e47463b0..053b91dd 100644 --- a/inc/classes/exceptions/template/class_UnsupportedTemplateEngineException.php +++ b/inc/classes/exceptions/template/class_UnsupportedTemplateEngineException.php @@ -31,7 +31,7 @@ class UnsupportedTemplateEngineException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("Template-Engine %s not (yet) supported.", + $message = sprintf('Template-Engine %s not (yet) supported.', $class->__toString() ); diff --git a/inc/classes/exceptions/user/class_AccountPasswordMismatchException.php b/inc/classes/exceptions/user/class_AccountPasswordMismatchException.php index 14ed3eaa..7321357a 100644 --- a/inc/classes/exceptions/user/class_AccountPasswordMismatchException.php +++ b/inc/classes/exceptions/user/class_AccountPasswordMismatchException.php @@ -31,7 +31,7 @@ class AccountPasswordMismatchException extends FrameworkException { */ public function __construct (Filterable $filterInstance, $code) { // Create the message - $message = sprintf("[%s:%d] Supplied account password did not match with stored.", + $message = sprintf('[%s:%d] Supplied account password did not match with stored.', $filterInstance->__toString(), $this->getLine() ); diff --git a/inc/classes/exceptions/user/class_UserEmailMissingException.php b/inc/classes/exceptions/user/class_UserEmailMissingException.php index 55ec8c5f..4daf3413 100644 --- a/inc/classes/exceptions/user/class_UserEmailMissingException.php +++ b/inc/classes/exceptions/user/class_UserEmailMissingException.php @@ -31,7 +31,7 @@ class UserEmailMissingException extends FrameworkException { */ public function __construct (array $msgArray, $code = 0) { // Create the message - $message = sprintf("[%s:%d] User email %s was not found.", + $message = sprintf('[%s:%d] User email %s was not found.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/user/class_UserPasswordMismatchException.php b/inc/classes/exceptions/user/class_UserPasswordMismatchException.php index cd97d820..ce5170ae 100644 --- a/inc/classes/exceptions/user/class_UserPasswordMismatchException.php +++ b/inc/classes/exceptions/user/class_UserPasswordMismatchException.php @@ -31,7 +31,7 @@ class UserPasswordMismatchException extends FrameworkException { */ public function __construct (array $msgArray, $code = 0) { // Create the message - $message = sprintf("[%s:%d] Supplied password for user %s did not match with stored password.", + $message = sprintf('[%s:%d] Supplied password for user %s did not match with stored password.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1]->getUserName() diff --git a/inc/classes/exceptions/user/class_UsernameMissingException.php b/inc/classes/exceptions/user/class_UsernameMissingException.php index 42c5f33c..154e19ea 100644 --- a/inc/classes/exceptions/user/class_UsernameMissingException.php +++ b/inc/classes/exceptions/user/class_UsernameMissingException.php @@ -31,7 +31,7 @@ class UsernameMissingException extends FrameworkException { */ public function __construct (array $msgArray, $code = 0) { // Create the message - $message = sprintf("[%s:%d] Username %s was not found.", + $message = sprintf('[%s:%d] Username %s was not found.', $msgArray[0]->__toString(), $this->getLine(), $msgArray[1] diff --git a/inc/classes/exceptions/xml/class_InvalidXmlNodeException.php b/inc/classes/exceptions/xml/class_InvalidXmlNodeException.php index 8e16f6f4..6773bec4 100644 --- a/inc/classes/exceptions/xml/class_InvalidXmlNodeException.php +++ b/inc/classes/exceptions/xml/class_InvalidXmlNodeException.php @@ -37,7 +37,7 @@ class InvalidXmlNodeException extends FrameworkException { } // END - if // Construct our message - $message = sprintf("[%s:%d] Invalid XML node found: %s, attributes: %s.", + $message = sprintf('[%s:%d] Invalid XML node found: %s, attributes: %s.', $classArray[0]->__toString(), $this->getLine(), $classArray[1], diff --git a/inc/classes/exceptions/xml/class_XmlNodeMismatchException.php b/inc/classes/exceptions/xml/class_XmlNodeMismatchException.php index 02289028..2be7e4e2 100644 --- a/inc/classes/exceptions/xml/class_XmlNodeMismatchException.php +++ b/inc/classes/exceptions/xml/class_XmlNodeMismatchException.php @@ -31,7 +31,7 @@ class XmlNodeMismatchException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Construct our message - $message = sprintf("[%s:%d] XML nodes mismatch. Given: %s, Expected: %s", + $message = sprintf('[%s:%d] XML nodes mismatch. Given: %s, Expected: %s', $classArray[0]->__toString(), $this->getLine(), $classArray[1], diff --git a/inc/classes/exceptions/xml/class_XmlParserException.php b/inc/classes/exceptions/xml/class_XmlParserException.php index dfef18c7..fb629a4a 100644 --- a/inc/classes/exceptions/xml/class_XmlParserException.php +++ b/inc/classes/exceptions/xml/class_XmlParserException.php @@ -31,7 +31,7 @@ class XmlParserException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Construct our message - $message = sprintf("[%s:%d] XML Error: %s at line %d.", + $message = sprintf('[%s:%d] XML Error: %s at line %d.', $classArray[0]->__toString(), $this->getLine(), xml_error_string(xml_get_error_code($classArray[1])), diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index e329f600..55b28a6d 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -51,7 +51,7 @@ class BaseStacker extends BaseFrameworkSystem { // Is the stack already initialized? if (($forceReInit === FALSE) && ($this->isStackInitialized($stackerName))) { // Then throw the exception - throw new AlreadyInitializedStackerException(array($this, $stackerName), self::EXCEPTION_STACKER_ALREADY_INITIALIZED); + throw new AlreadyInitializedStackerException(array($this, $stackerName, $forceReInit), self::EXCEPTION_STACKER_ALREADY_INITIALIZED); } // END - if // Initialize the given stack