@@ -47,6 +47,9 @@ |
||
47 | 47 | ]); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @return integer |
|
52 | + */ |
|
50 | 53 | private function resolveFormat($format) |
51 | 54 | { |
52 | 55 | if (is_int($format)) { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Psi\Component\ContentType\Standard\Field; |
6 | 6 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'time_format' => null, |
47 | 47 | )); |
48 | 48 | |
49 | - $options->setFormMapper(function (array $options) { |
|
49 | + $options->setFormMapper(function(array $options) { |
|
50 | 50 | return array_intersect_key($options, array_flip([ |
51 | 51 | 'format', 'date_format', 'widget', 'date_widget', |
52 | 52 | 'time_widget', 'with_minutes', 'with_seconds', 'html5', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ])); |
55 | 55 | }); |
56 | 56 | |
57 | - $options->setViewMapper(function (array $options) { |
|
57 | + $options->setViewMapper(function(array $options) { |
|
58 | 58 | return array_intersect_key($options, array_flip([ |
59 | 59 | 'date_format', |
60 | 60 | 'time_format', |