Skip to content

Commit

Permalink
Small code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Oct 8, 2022
1 parent acbf298 commit c3dca87
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/):
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@

"autoload-dev" : {
"psr-4" : {
"Tests\\Cases\\" : "tests/cases",
"Tests\\Fixtures\\" : "tests/fixtures"
"Tests\\Cases\\Unit\\" : "tests/cases/unit"
}
},

Expand Down
1 change: 0 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<property name="rootNamespaces" type="array">
<element key="src" value="FastyBird\DateTimeFactory"/>
<element key="tests/cases/unit" value="Tests\Cases\Unit"/>
<element key="tests/tools" value="Tests\Tools"/>
</property>
</properties>
</rule>
Expand Down
4 changes: 2 additions & 2 deletions src/DI/DateTimeFactoryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license More in LICENSE.md
* @copyright https://www.fastybird.com
* @author Adam Kadlec <[email protected]>
* @package FastyBird:Factory!
* @package FastyBird:DateTimeFactory!
* @subpackage DI
* @since 0.1.0
*
Expand All @@ -28,7 +28,7 @@
/**
* Date&Time factory extension container
*
* @package FastyBird:Factory!
* @package FastyBird:DateTimeFactory!
* @subpackage DI
*
* @author Adam Kadlec <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license More in LICENSE.md
* @copyright https://www.fastybird.com
* @author Adam Kadlec <[email protected]>
* @package FastyBird:Factory!
* @package FastyBird:DateTimeFactory!
* @subpackage Exceptions
* @since 0.1.0
*
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license More in LICENSE.md
* @copyright https://www.fastybird.com
* @author Adam Kadlec <[email protected]>
* @package FastyBird:Factory!
* @package FastyBird:DateTimeFactory!
* @subpackage Exceptions
* @since 0.1.0
*
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license More in LICENSE.md
* @copyright https://www.fastybird.com
* @author Adam Kadlec <[email protected]>
* @package FastyBird:Factory!
* @package FastyBird:DateTimeFactory!
* @subpackage common
* @since 0.1.0
*
Expand Down
2 changes: 2 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php declare(strict_types = 1);

// phpcs:ignoreFile

use Ninjify\Nunjuck\Environment;

if (@!include __DIR__ . '/../vendor/autoload.php') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Tests\Cases;
namespace Tests\Cases\Unit;

use DateTimeImmutable;
use FastyBird\DateTimeFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Tests\Cases;
namespace Tests\Cases\Unit;

use FastyBird\DateTimeFactory;
use Nette;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# @license More in LICENSE.md
# @copyright https://www.fastybird.com
# @author Adam Kadlec <[email protected]>
# @package FastyBird:Factory!
# @package FastyBird:DateTimeFactory!
# @subpackage config
# @since 0.1.0
#
# @date 19.07.20

dateTimeFactory:
timezone: 'Europe/Amsterdam'
timezone: 'Europe/Amsterdam'

0 comments on commit c3dca87

Please sign in to comment.