@@ -3,8 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Node; |
| 5 | 5 | |
| 6 | -use Linio\Component\Input\Instantiator\SetInstantiator; |
|
| 7 | - |
|
| 8 | 6 | class ObjectNode extends BaseNode |
| 9 | 7 | { |
| 10 | 8 | public function getValue(string $field, $value) |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -5,5 +5,8 @@ |
||
| 5 | 5 | |
| 6 | 6 | interface TransformerInterface |
| 7 | 7 | { |
| 8 | + /** |
|
| 9 | + * @return null|\DateTime |
|
| 10 | + */ |
|
| 8 | 11 | public function transform($value); |
| 9 | 12 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -3,6 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input; |
| 5 | 5 | |
| 6 | +use Linio\Component\Input\Instantiator\InstantiatorInterface; |
|
| 7 | +use Linio\Component\Input\Instantiator\SetInstantiator; |
|
| 6 | 8 | use Linio\Component\Input\Node\BaseNode; |
| 7 | 9 | use Linio\Component\Input\Node\BoolNode; |
| 8 | 10 | use Linio\Component\Input\Node\CollectionNode; |
@@ -13,8 +15,6 @@ discard block |
||
| 13 | 15 | use Linio\Component\Input\Node\ObjectNode; |
| 14 | 16 | use Linio\Component\Input\Node\ScalarCollectionNode; |
| 15 | 17 | use Linio\Component\Input\Node\StringNode; |
| 16 | -use Linio\Component\Input\Instantiator\InstantiatorInterface; |
|
| 17 | -use Linio\Component\Input\Instantiator\SetInstantiator; |
|
| 18 | 18 | |
| 19 | 19 | class TypeHandler |
| 20 | 20 | { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input; |
| 5 | 5 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function __construct(TypeHandler $typeHandler = null) |
| 31 | 31 | { |
| 32 | 32 | $this->root = new BaseNode(); |
| 33 | - $this->typeHandler = $typeHandler ?? new TypeHandler(); |
|
| 33 | + $this->typeHandler = $typeHandler ? ? new TypeHandler(); |
|
| 34 | 34 | $this->root->setTypeHandler($this->typeHandler); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Linio\Component\Input\Exception; |
| 5 | 5 | |