From: Roland Haeder Date: Tue, 21 Feb 2017 20:39:36 +0000 (+0100) Subject: Finished first cleanup (still a lot is broken): X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11f39762c7e20fe4655db3f92ef3c89e648fdb68;p=core.git Finished first cleanup (still a lot is broken): - added more namespaces - made more exceptions deprecated as there are better exceptions or names for it - removed own [EOF] (old coding style) - removed discouraged ?> from all files Signed-off-by: Roland Häder --- diff --git a/inc/main/exceptions/database/class_DatabaseException.php b/inc/main/exceptions/database/class_DatabaseException.php index b46532b5..b5d37acc 100644 --- a/inc/main/exceptions/database/class_DatabaseException.php +++ b/inc/main/exceptions/database/class_DatabaseException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_FileIoException.php b/inc/main/exceptions/file_directory/class_FileIoException.php index 5843c40f..e769092c 100644 --- a/inc/main/exceptions/file_directory/class_FileIoException.php +++ b/inc/main/exceptions/file_directory/class_FileIoException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_FileNotFoundException.php b/inc/main/exceptions/file_directory/class_FileNotFoundException.php index 4641ce1e..2e13bdcf 100644 --- a/inc/main/exceptions/file_directory/class_FileNotFoundException.php +++ b/inc/main/exceptions/file_directory/class_FileNotFoundException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_FileReadProtectedException.php b/inc/main/exceptions/file_directory/class_FileReadProtectedException.php index 641e420c..fdd13ecf 100644 --- a/inc/main/exceptions/file_directory/class_FileReadProtectedException.php +++ b/inc/main/exceptions/file_directory/class_FileReadProtectedException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_InvalidMD5ChecksumException.php b/inc/main/exceptions/file_directory/class_InvalidMD5ChecksumException.php index 174d9746..ce688d17 100644 --- a/inc/main/exceptions/file_directory/class_InvalidMD5ChecksumException.php +++ b/inc/main/exceptions/file_directory/class_InvalidMD5ChecksumException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_PathIsNoDirectoryException.php b/inc/main/exceptions/file_directory/class_PathIsNoDirectoryException.php index 13322dd3..4a33ea8a 100644 --- a/inc/main/exceptions/file_directory/class_PathIsNoDirectoryException.php +++ b/inc/main/exceptions/file_directory/class_PathIsNoDirectoryException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_PathReadProtectedException.php b/inc/main/exceptions/file_directory/class_PathReadProtectedException.php index 399a25ef..c64568bf 100644 --- a/inc/main/exceptions/file_directory/class_PathReadProtectedException.php +++ b/inc/main/exceptions/file_directory/class_PathReadProtectedException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/file_directory/class_PathWriteProtectedException.php b/inc/main/exceptions/file_directory/class_PathWriteProtectedException.php index 3fa5b9d7..9dec65d2 100644 --- a/inc/main/exceptions/file_directory/class_PathWriteProtectedException.php +++ b/inc/main/exceptions/file_directory/class_PathWriteProtectedException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_AssertionException.php b/inc/main/exceptions/main/class_AssertionException.php index f2e19fe3..3217e530 100644 --- a/inc/main/exceptions/main/class_AssertionException.php +++ b/inc/main/exceptions/main/class_AssertionException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_ClassMismatchException.php b/inc/main/exceptions/main/class_ClassMismatchException.php index a81a3807..5c3052aa 100644 --- a/inc/main/exceptions/main/class_ClassMismatchException.php +++ b/inc/main/exceptions/main/class_ClassMismatchException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_EmptyVariableException.php b/inc/main/exceptions/main/class_EmptyVariableException.php index 9928af9b..b6ecad00 100644 --- a/inc/main/exceptions/main/class_EmptyVariableException.php +++ b/inc/main/exceptions/main/class_EmptyVariableException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_FatalErrorException.php b/inc/main/exceptions/main/class_FatalErrorException.php index 088b8703..43b72b38 100644 --- a/inc/main/exceptions/main/class_FatalErrorException.php +++ b/inc/main/exceptions/main/class_FatalErrorException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_IndexOutOfBoundsException.php b/inc/main/exceptions/main/class_IndexOutOfBoundsException.php index 53d77ad3..45d7a3e8 100644 --- a/inc/main/exceptions/main/class_IndexOutOfBoundsException.php +++ b/inc/main/exceptions/main/class_IndexOutOfBoundsException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_InvalidArrayCountException.php b/inc/main/exceptions/main/class_InvalidArrayCountException.php index 0bf606a8..3aab2aee 100644 --- a/inc/main/exceptions/main/class_InvalidArrayCountException.php +++ b/inc/main/exceptions/main/class_InvalidArrayCountException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_InvalidCommandException.php b/inc/main/exceptions/main/class_InvalidCommandException.php index 8ba24107..9c1476f2 100644 --- a/inc/main/exceptions/main/class_InvalidCommandException.php +++ b/inc/main/exceptions/main/class_InvalidCommandException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_InvalidCommandInstanceException.php b/inc/main/exceptions/main/class_InvalidCommandInstanceException.php index 5786206d..f4d171b1 100644 --- a/inc/main/exceptions/main/class_InvalidCommandInstanceException.php +++ b/inc/main/exceptions/main/class_InvalidCommandInstanceException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_InvalidInterfaceException.php b/inc/main/exceptions/main/class_InvalidInterfaceException.php index 822afad6..1458a3cb 100644 --- a/inc/main/exceptions/main/class_InvalidInterfaceException.php +++ b/inc/main/exceptions/main/class_InvalidInterfaceException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_MissingArrayElementsException.php b/inc/main/exceptions/main/class_MissingArrayElementsException.php index 3e67a674..6d843534 100644 --- a/inc/main/exceptions/main/class_MissingArrayElementsException.php +++ b/inc/main/exceptions/main/class_MissingArrayElementsException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php b/inc/main/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php index 5e1c9ff0..5ee19edf 100644 --- a/inc/main/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php +++ b/inc/main/exceptions/main/class_MissingDecimalsThousandsSeparatorException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_MissingMethodException.php b/inc/main/exceptions/main/class_MissingMethodException.php index cebe42a9..b033837c 100644 --- a/inc/main/exceptions/main/class_MissingMethodException.php +++ b/inc/main/exceptions/main/class_MissingMethodException.php @@ -1,4 +1,7 @@ %s().', + $message = sprintf('[%s:%d] This class has no method %s().', $classArray[0]->__toString(), $this->getLine(), $classArray[1] @@ -45,7 +48,5 @@ class MissingMethodException extends FrameworkException { // Call parent constructor parent::__construct($message, $code); } -} -// [EOF] -?> +} diff --git a/inc/main/exceptions/main/class_NoClassException.php b/inc/main/exceptions/main/class_NoClassException.php index 1d666c4d..eb5341c4 100644 --- a/inc/main/exceptions/main/class_NoClassException.php +++ b/inc/main/exceptions/main/class_NoClassException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/main/class_VariableIsNotSetException.php b/inc/main/exceptions/main/class_VariableIsNotSetException.php index 680be29d..7e6efb04 100644 --- a/inc/main/exceptions/main/class_VariableIsNotSetException.php +++ b/inc/main/exceptions/main/class_VariableIsNotSetException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/user/class_AccountPasswordMismatchException.php b/inc/main/exceptions/user/class_AccountPasswordMismatchException.php index 3bfa5b2c..1b186242 100644 --- a/inc/main/exceptions/user/class_AccountPasswordMismatchException.php +++ b/inc/main/exceptions/user/class_AccountPasswordMismatchException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/user/class_UnexpectedGuestAccountException.php b/inc/main/exceptions/user/class_UnexpectedGuestAccountException.php index c7eb157c..9ad167b0 100644 --- a/inc/main/exceptions/user/class_UnexpectedGuestAccountException.php +++ b/inc/main/exceptions/user/class_UnexpectedGuestAccountException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/user/class_UserEmailMissingException.php b/inc/main/exceptions/user/class_UserEmailMissingException.php index 7eee4b13..df122190 100644 --- a/inc/main/exceptions/user/class_UserEmailMissingException.php +++ b/inc/main/exceptions/user/class_UserEmailMissingException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/user/class_UserNoGuestException.php b/inc/main/exceptions/user/class_UserNoGuestException.php index f1703232..22d623a7 100644 --- a/inc/main/exceptions/user/class_UserNoGuestException.php +++ b/inc/main/exceptions/user/class_UserNoGuestException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/user/class_UserPasswordMismatchException.php b/inc/main/exceptions/user/class_UserPasswordMismatchException.php index 366dd10d..a209ce40 100644 --- a/inc/main/exceptions/user/class_UserPasswordMismatchException.php +++ b/inc/main/exceptions/user/class_UserPasswordMismatchException.php @@ -1,4 +1,7 @@ +} diff --git a/inc/main/exceptions/user/class_UsernameMissingException.php b/inc/main/exceptions/user/class_UsernameMissingException.php index 2e321ec2..0f45d3c3 100644 --- a/inc/main/exceptions/user/class_UsernameMissingException.php +++ b/inc/main/exceptions/user/class_UsernameMissingException.php @@ -1,4 +1,7 @@ +}