From c3dca87ee3e331213453621c6fee8caa8c391b6d Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Sat, 8 Oct 2022 19:51:08 +0200 Subject: [PATCH] Small code cleaning --- .docs/en/index.md | 2 ++ composer.json | 3 +-- phpcs.xml | 1 - src/DI/DateTimeFactoryExtension.php | 4 ++-- src/Exceptions/Exception.php | 2 +- src/Exceptions/InvalidArgument.php | 2 +- src/Factory.php | 2 +- tests/bootstrap.php | 2 ++ tests/cases/{Unit => unit}/DateTimeFactoryTest.phpt | 2 +- tests/cases/{Unit => unit}/ExtensionTest.phpt | 2 +- tests/cases/{Unit => unit}/timezone.neon | 4 ++-- 11 files changed, 14 insertions(+), 12 deletions(-) rename tests/cases/{Unit => unit}/DateTimeFactoryTest.phpt (98%) rename tests/cases/{Unit => unit}/ExtensionTest.phpt (97%) rename tests/cases/{Unit => unit}/timezone.neon (76%) diff --git a/.docs/en/index.md b/.docs/en/index.md index 966a313..6f2b03f 100644 --- a/.docs/en/index.md +++ b/.docs/en/index.md @@ -2,6 +2,8 @@ This extension adds support for creating date&time immutable objects. +*** + ## Installation The best way to install **fastybird/datetime-factory** is using [Composer](http://getcomposer.org/): diff --git a/composer.json b/composer.json index ac14bb9..e4acb51 100644 --- a/composer.json +++ b/composer.json @@ -66,8 +66,7 @@ "autoload-dev" : { "psr-4" : { - "Tests\\Cases\\" : "tests/cases", - "Tests\\Fixtures\\" : "tests/fixtures" + "Tests\\Cases\\Unit\\" : "tests/cases/unit" } }, diff --git a/phpcs.xml b/phpcs.xml index 6215a52..46d1134 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -16,7 +16,6 @@ - diff --git a/src/DI/DateTimeFactoryExtension.php b/src/DI/DateTimeFactoryExtension.php index 6e3a92c..921011c 100644 --- a/src/DI/DateTimeFactoryExtension.php +++ b/src/DI/DateTimeFactoryExtension.php @@ -6,7 +6,7 @@ * @license More in LICENSE.md * @copyright https://www.fastybird.com * @author Adam Kadlec - * @package FastyBird:Factory! + * @package FastyBird:DateTimeFactory! * @subpackage DI * @since 0.1.0 * @@ -28,7 +28,7 @@ /** * Date&Time factory extension container * - * @package FastyBird:Factory! + * @package FastyBird:DateTimeFactory! * @subpackage DI * * @author Adam Kadlec diff --git a/src/Exceptions/Exception.php b/src/Exceptions/Exception.php index 4f5b393..bbe2a86 100644 --- a/src/Exceptions/Exception.php +++ b/src/Exceptions/Exception.php @@ -6,7 +6,7 @@ * @license More in LICENSE.md * @copyright https://www.fastybird.com * @author Adam Kadlec - * @package FastyBird:Factory! + * @package FastyBird:DateTimeFactory! * @subpackage Exceptions * @since 0.1.0 * diff --git a/src/Exceptions/InvalidArgument.php b/src/Exceptions/InvalidArgument.php index 441b1e2..f56165f 100644 --- a/src/Exceptions/InvalidArgument.php +++ b/src/Exceptions/InvalidArgument.php @@ -6,7 +6,7 @@ * @license More in LICENSE.md * @copyright https://www.fastybird.com * @author Adam Kadlec - * @package FastyBird:Factory! + * @package FastyBird:DateTimeFactory! * @subpackage Exceptions * @since 0.1.0 * diff --git a/src/Factory.php b/src/Factory.php index a846617..2c45086 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -6,7 +6,7 @@ * @license More in LICENSE.md * @copyright https://www.fastybird.com * @author Adam Kadlec - * @package FastyBird:Factory! + * @package FastyBird:DateTimeFactory! * @subpackage common * @since 0.1.0 * diff --git a/tests/bootstrap.php b/tests/bootstrap.php index f4ee849..2172a77 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,5 +1,7 @@ -# @package FastyBird:Factory! +# @package FastyBird:DateTimeFactory! # @subpackage config # @since 0.1.0 # # @date 19.07.20 dateTimeFactory: - timezone: 'Europe/Amsterdam' + timezone: 'Europe/Amsterdam'