diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2015-05-28 12:10:30 +0200 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2015-05-28 12:10:30 +0200 |
commit | 0fce3078006928700d7e65660d49f693dc4293d2 (patch) | |
tree | 03636cd45b0422fc7558ef9d8c380c30e13b9069 /Exception | |
parent | f7801604c0631304547eee00b68ce3174d40ccdc (diff) | |
download | Praspel-0fce3078006928700d7e65660d49f693dc4293d2.zip Praspel-0fce3078006928700d7e65660d49f693dc4293d2.tar.gz Praspel-0fce3078006928700d7e65660d49f693dc4293d2.tar.bz2 |
Move to PSR-1-2 & drop PHP5.3 & `from`/`import`.
Diffstat (limited to 'Exception')
-rw-r--r-- | Exception/AssertionChecker.php | 23 | ||||
-rw-r--r-- | Exception/Compiler.php | 23 | ||||
-rw-r--r-- | Exception/Exception.php | 20 | ||||
-rw-r--r-- | Exception/Failure/Exceptional.php | 23 | ||||
-rw-r--r-- | Exception/Failure/Failure.php | 30 | ||||
-rw-r--r-- | Exception/Failure/InternalPrecondition.php | 23 | ||||
-rw-r--r-- | Exception/Failure/Invariant.php | 23 | ||||
-rw-r--r-- | Exception/Failure/Postcondition.php | 23 | ||||
-rw-r--r-- | Exception/Failure/Precondition.php | 23 | ||||
-rw-r--r-- | Exception/Generic.php | 23 | ||||
-rw-r--r-- | Exception/Group.php | 23 | ||||
-rw-r--r-- | Exception/Interpreter.php | 23 | ||||
-rw-r--r-- | Exception/Model.php | 23 | ||||
-rw-r--r-- | Exception/Preambler.php | 23 |
14 files changed, 78 insertions, 248 deletions
diff --git a/Exception/AssertionChecker.php b/Exception/AssertionChecker.php index 29c4346..0842efe 100644 --- a/Exception/AssertionChecker.php +++ b/Exception/AssertionChecker.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Generic - */ --> import('Praspel.Exception.Generic'); - -} - -namespace Hoa\Praspel\Exception { +namespace Hoa\Praspel\Exception; /** * Class \Hoa\Praspel\Exception\AssertionChecker. * * Extending the \Hoa\Praspel\Exception\Generic class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class AssertionChecker extends Generic { } - +class AssertionChecker extends Generic +{ } diff --git a/Exception/Compiler.php b/Exception/Compiler.php index 14382ad..e49e4d0 100644 --- a/Exception/Compiler.php +++ b/Exception/Compiler.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Generic - */ --> import('Praspel.Exception.Generic'); - -} - -namespace Hoa\Praspel\Exception { +namespace Hoa\Praspel\Exception; /** * Class \Hoa\Praspel\Exception\Compiler. * * Extending the \Hoa\Praspel\Exception\Generic class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Compiler extends Generic { } - +class Compiler extends Generic +{ } diff --git a/Exception/Exception.php b/Exception/Exception.php index dcece9c..ee837d8 100644 --- a/Exception/Exception.php +++ b/Exception/Exception.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,27 +34,23 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace Hoa\Praspel\Exception { +namespace Hoa\Praspel\Exception; + +use Hoa\Core; /** * Interface \Hoa\Praspel\Exception. * * Interface representing Hoa\Praspel exceptions. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -interface Exception { } - +interface Exception +{ } -namespace { - /** * Flex entity. */ -Hoa\Core\Consistency::flexEntity('Hoa\Praspel\Exception\Exception'); - -} +Core\Consistency::flexEntity('Hoa\Praspel\Exception\Exception'); diff --git a/Exception/Failure/Exceptional.php b/Exception/Failure/Exceptional.php index 7debe44..586b111 100644 --- a/Exception/Failure/Exceptional.php +++ b/Exception/Failure/Exceptional.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Failure - */ --> import('Praspel.Exception.Failure.~'); - -} - -namespace Hoa\Praspel\Exception\Failure { +namespace Hoa\Praspel\Exception\Failure; /** * Class \Hoa\Praspel\Exception\Failure\Exceptional. * * Extending the \Hoa\Praspel\Exception\Failure class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Exceptional extends Failure { } - +class Exceptional extends Failure +{ } diff --git a/Exception/Failure/Failure.php b/Exception/Failure/Failure.php index f77c057..d26815e 100644 --- a/Exception/Failure/Failure.php +++ b/Exception/Failure/Failure.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,38 +34,24 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { +namespace Hoa\Praspel\Exception\Failure; -from('Hoa') - -/** - * \Hoa\Praspel\Exception\AssertionChecker - */ --> import('Praspel.Exception.AssertionChecker'); - -} - -namespace Hoa\Praspel\Exception\Failure { +use Hoa\Core; +use Hoa\Praspel; /** * Class \Hoa\Praspel\Exception\Failure. * * Extending the \Hoa\Praspel\Exception\AssertionChecker class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Failure extends \Hoa\Praspel\Exception\AssertionChecker { } - +class Failure extends Praspel\Exception\AssertionChecker +{ } -namespace { - /** * Flex entity. */ -Hoa\Core\Consistency::flexEntity('Hoa\Praspel\Exception\Failure\Failure'); - -} +Core\Consistency::flexEntity('Hoa\Praspel\Exception\Failure\Failure'); diff --git a/Exception/Failure/InternalPrecondition.php b/Exception/Failure/InternalPrecondition.php index 9c9665b..786b3d8 100644 --- a/Exception/Failure/InternalPrecondition.php +++ b/Exception/Failure/InternalPrecondition.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Failure - */ --> import('Praspel.Exception.Failure.~'); - -} - -namespace Hoa\Praspel\Exception\Failure { +namespace Hoa\Praspel\Exception\Failure; /** * Class \Hoa\Praspel\Exception\Failure\InternalPrecondition. * * Extending the \Hoa\Praspel\Exception\Failure class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class InternalPrecondition extends Failure { } - +class InternalPrecondition extends Failure +{ } diff --git a/Exception/Failure/Invariant.php b/Exception/Failure/Invariant.php index 02c0776..b383727 100644 --- a/Exception/Failure/Invariant.php +++ b/Exception/Failure/Invariant.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Failure - */ --> import('Praspel.Exception.Failure.~'); - -} - -namespace Hoa\Praspel\Exception\Failure { +namespace Hoa\Praspel\Exception\Failure; /** * Class \Hoa\Praspel\Exception\Failure\Invariant. * * Extending the \Hoa\Praspel\Exception\Failure class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Invariant extends Failure { } - +class Invariant extends Failure +{ } diff --git a/Exception/Failure/Postcondition.php b/Exception/Failure/Postcondition.php index d9c4032..10e55a6 100644 --- a/Exception/Failure/Postcondition.php +++ b/Exception/Failure/Postcondition.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Failure - */ --> import('Praspel.Exception.Failure.~'); - -} - -namespace Hoa\Praspel\Exception\Failure { +namespace Hoa\Praspel\Exception\Failure; /** * Class \Hoa\Praspel\Exception\Failure\Postcondition. * * Extending the \Hoa\Praspel\Exception\Failure class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Postcondition extends Failure { } - +class Postcondition extends Failure +{ } diff --git a/Exception/Failure/Precondition.php b/Exception/Failure/Precondition.php index e9ea825..8b70421 100644 --- a/Exception/Failure/Precondition.php +++ b/Exception/Failure/Precondition.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Failure - */ --> import('Praspel.Exception.Failure.~'); - -} - -namespace Hoa\Praspel\Exception\Failure { +namespace Hoa\Praspel\Exception\Failure; /** * Class \Hoa\Praspel\Exception\Failure\Precondition. * * Extending the \Hoa\Praspel\Exception\Failure class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Precondition extends Failure { } - +class Precondition extends Failure +{ } diff --git a/Exception/Generic.php b/Exception/Generic.php index dbc3b58..803888e 100644 --- a/Exception/Generic.php +++ b/Exception/Generic.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,18 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { +namespace Hoa\Praspel\Exception; -from('Hoa') - -/** - * \Hoa\Praspel\Exception - */ --> import('Praspel.Exception.~'); - -} - -namespace Hoa\Praspel\Exception { +use Hoa\Core; /** * Class \Hoa\Praspel\Exception\Generic. * * Extending the \Hoa\Core\Exception class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Generic extends \Hoa\Core\Exception implements Exception { } - +class Generic extends Core\Exception implements Exception +{ } diff --git a/Exception/Group.php b/Exception/Group.php index c8208fc..4ce8de3 100644 --- a/Exception/Group.php +++ b/Exception/Group.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,18 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { +namespace Hoa\Praspel\Exception; -from('Hoa') - -/** - * \Hoa\Praspel\Exception - */ --> import('Praspel.Exception.~'); - -} - -namespace Hoa\Praspel\Exception { +use Hoa\Core; /** * Class \Hoa\Praspel\Exception\Generic. * * Extending the \Hoa\Core\Exception\Group class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Group extends \Hoa\Core\Exception\Group implements Exception { } - +class Group extends Core\Exception\Group implements Exception +{ } diff --git a/Exception/Interpreter.php b/Exception/Interpreter.php index 48c71fe..02f031a 100644 --- a/Exception/Interpreter.php +++ b/Exception/Interpreter.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Generic - */ --> import('Praspel.Exception.Generic'); - -} - -namespace Hoa\Praspel\Exception { +namespace Hoa\Praspel\Exception; /** * Class \Hoa\Praspel\Exception\Interpreter. * * Extending the \Hoa\Praspel\Exception\Generic class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Interpreter extends Generic { } - +class Interpreter extends Generic +{ } diff --git a/Exception/Model.php b/Exception/Model.php index 8c5c793..3c7e838 100644 --- a/Exception/Model.php +++ b/Exception/Model.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Generic - */ --> import('Praspel.Exception.Generic'); - -} - -namespace Hoa\Praspel\Exception { +namespace Hoa\Praspel\Exception; /** * Class \Hoa\Praspel\Exception\Model. * * Extending the \Hoa\Praspel\Exception\Generic class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Model extends Generic { } - +class Model extends Generic +{ } diff --git a/Exception/Preambler.php b/Exception/Preambler.php index b8b442e..7b65cd8 100644 --- a/Exception/Preambler.php +++ b/Exception/Preambler.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Ivan Enderlin. All rights reserved. + * Copyright © 2007-2015, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -34,29 +34,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace { - -from('Hoa') - -/** - * \Hoa\Praspel\Exception\Generic - */ --> import('Praspel.Exception.Generic'); - -} - -namespace Hoa\Praspel\Exception { +namespace Hoa\Praspel\Exception; /** * Class \Hoa\Praspel\Exception\Preambler. * * Extending the \Hoa\Praspel\Exception\Generic class. * - * @author Ivan Enderlin <ivan.enderlin@hoa-project.net> - * @copyright Copyright © 2007-2015 Ivan Enderlin. + * @copyright Copyright © 2007-2015 Hoa community * @license New BSD License */ - -class Preambler extends Generic { } - +class Preambler extends Generic +{ } |