@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Xgc\CarbonBundle\Form\Extension; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Xgc\CarbonBundle\Form\DataTransformer; |
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 Xgc\CarbonBundle\Type; |
5 | 5 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $value->format($platform->getDateTimeFormatString()); |
58 | 58 | } |
59 | 59 | |
60 | - throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['null', 'Carbon']); |
|
60 | + throw ConversionException::conversionFailedInvalidType($value, $this->getName(), [ 'null', 'Carbon' ]); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Xgc\CarbonBundle\Request\ParamConverter; |
5 | 5 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | private function loadFormat(array $options, string $value): ?string |
89 | 89 | { |
90 | - $format = $options['format'] ?? null; |
|
90 | + $format = $options[ 'format' ] ?? null; |
|
91 | 91 | |
92 | 92 | if (!$format && \filter_var($value, \FILTER_VALIDATE_INT) !== false) { |
93 | 93 | $format = 'U'; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @throws NotFoundHttpException |
107 | 107 | */ |
108 | - private function getCarbon(?string $format, string $value, string $param): Carbon |
|
108 | + private function getCarbon(?string $format, string $value, string $param) : Carbon |
|
109 | 109 | { |
110 | 110 | try { |
111 | 111 | if ($format !== null) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Xgc\CarbonBundle\Test; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Xgc\CarbonBundle; |
5 | 5 |