aboutsummaryrefslogtreecommitdiffstats
path: root/Exception
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-17 18:50:49 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-17 18:50:49 +0200
commit6775f986a757b29e598925846cb862c59cffdc62 (patch)
treed2c10725d4e1b0b71a36b4529452b8a003454739 /Exception
parent3aee0f2a4385ed99e3270262e0e0f9dfb84828e0 (diff)
downloadMime-6775f986a757b29e598925846cb862c59cffdc62.zip
Mime-6775f986a757b29e598925846cb862c59cffdc62.tar.gz
Mime-6775f986a757b29e598925846cb862c59cffdc62.tar.bz2
Remove from/import.
Diffstat (limited to 'Exception')
-rw-r--r--Exception/Exception.php14
-rw-r--r--Exception/MimeIsNotFound.php15
2 files changed, 6 insertions, 23 deletions
diff --git a/Exception/Exception.php b/Exception/Exception.php
index 7e286d7..4d3fe1a 100644
--- a/Exception/Exception.php
+++ b/Exception/Exception.php
@@ -34,7 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Mime\Exception {
+namespace Hoa\Mime\Exception;
+
+use Hoa\Core;
/**
* Class \Hoa\Mime\Exception.
@@ -46,15 +48,9 @@ namespace Hoa\Mime\Exception {
* @license New BSD License
*/
-class Exception extends \Hoa\Core\Exception { }
-
-}
-
-namespace {
+class Exception extends Core\Exception { }
/**
* Flex entity.
*/
-Hoa\Core\Consistency::flexEntity('Hoa\Mime\Exception\Exception');
-
-}
+Core\Consistency::flexEntity('Hoa\Mime\Exception\Exception');
diff --git a/Exception/MimeIsNotFound.php b/Exception/MimeIsNotFound.php
index ef3e948..d5c9c62 100644
--- a/Exception/MimeIsNotFound.php
+++ b/Exception/MimeIsNotFound.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Mime\Exception
- */
--> import('Mime.Exception.~');
-
-}
-
-namespace Hoa\Mime\Exception {
+namespace Hoa\Mime\Exception;
/**
* Class \Hoa\Mime\MimeIsNotFound.
@@ -58,5 +47,3 @@ namespace Hoa\Mime\Exception {
*/
class MimeIsNotFound extends Exception { }
-
-}