Completed
Push — develop ( aa59ae...6f0e36 )
by Javier
02:30
created
src/Form/Extension/CarbonTypeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Xgc\CarbonBundle\Form\Extension;
5 5
 
Please login to merge, or discard this patch.
src/Form/DataTransformer/CarbonToDateTimeTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Xgc\CarbonBundle\Form\DataTransformer;
5 5
 
Please login to merge, or discard this patch.
src/Type/CarbonType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Request/ParamConverter/CarbonParamConverter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Test/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Xgc\CarbonBundle\Test;
5 5
 
Please login to merge, or discard this patch.
src/CarbonBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Xgc\CarbonBundle;
5 5
 
Please login to merge, or discard this patch.