Passed
Push — master ( 1c7b90...582cac )
by Petr
02:42
created
php-src/form_nette/Controls/DateRange.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
 
132 132
     public static function register(?string $inputFormat = null, ?string $searchFormat = null)
133 133
     {
134
-        Container::extensionMethod('addTbDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
134
+        Container::extensionMethod('addTbDateRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
135 135
             $picker = $container[$name] = new DateRange($name, $label, $maxLength);
136 136
 
137 137
             if (null !== $inputFormat)
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,10 +134,12 @@
 block discarded – undo
134 134
         Container::extensionMethod('addTbDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
135 135
             $picker = $container[$name] = new DateRange($name, $label, $maxLength);
136 136
 
137
-            if (null !== $inputFormat)
138
-                $picker->setInputFormat($inputFormat);
139
-            if (null !== $searchFormat)
140
-                $picker->setSearchFormat($searchFormat);
137
+            if (null !== $inputFormat) {
138
+                            $picker->setInputFormat($inputFormat);
139
+            }
140
+            if (null !== $searchFormat) {
141
+                            $picker->setSearchFormat($searchFormat);
142
+            }
141 143
 
142 144
             return $picker;
143 145
         });
Please login to merge, or discard this patch.
php-src/form_nette_lte/Controls/DateTimeRange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
     public static function register(?string $searchFormat = null, ?\DateTime $startTime = null, ?\DateTime $endTime = null)
98 98
     {
99
-        Container::extensionMethod('addAdminLteDateTimeRange', function ($container, $name, $label = null, $maxLength = null) use ($searchFormat, $startTime, $endTime) {
99
+        Container::extensionMethod('addAdminLteDateTimeRange', function($container, $name, $label = null, $maxLength = null) use ($searchFormat, $startTime, $endTime) {
100 100
             $picker = $container[$name] = new DateTimeRange($name, $label, $maxLength, $searchFormat, $startTime, $endTime);
101 101
             return $picker;
102 102
         });
Please login to merge, or discard this patch.
php-src/form_nette_lte/Controls/DateTimeRangeButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
 
196 196
     public static function register(?string $searchFormat = null, ?\DateTime $startTime = null, ?\DateTime $endTime = null)
197 197
     {
198
-        Container::extensionMethod('addDateTimeRangeButton', function ($container, $name, $label = null, $maxLength = null, $searchFormat = null, \DateTime $startTime = null, \DateTime $endTime = null) {
198
+        Container::extensionMethod('addDateTimeRangeButton', function($container, $name, $label = null, $maxLength = null, $searchFormat = null, \DateTime $startTime = null, \DateTime $endTime = null) {
199 199
             $picker = $container[$name] = new DateTimeRangeButton($name, $label, $maxLength, $searchFormat, $startTime, $endTime);
200 200
             return $picker;
201 201
         });
Please login to merge, or discard this patch.
php-src/form_nette_bootstrap/Controls/BootstrapDateRange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public static function register(?string $inputFormat = null, ?string $searchFormat = null)
66 66
     {
67
-        Container::extensionMethod('addBootstrapDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
67
+        Container::extensionMethod('addBootstrapDateRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
68 68
             $picker = $container[$name] = new BootstrapDateRange($name, $label, $maxLength);
69 69
 
70 70
             if (null !== $inputFormat) {
Please login to merge, or discard this patch.
php-src/form_nette_bootstrap/Controls/BootstrapRange.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     public static function register(?string $inputFormat = null, ?string $searchFormat = null)
63 63
     {
64
-        Container::extensionMethod('addBootstrapRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
64
+        Container::extensionMethod('addBootstrapRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
65 65
             $picker = $container[$name] = new BootstrapRange($name, $label, $maxLength);
66 66
 
67 67
             if (null !== $inputFormat)
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,10 +64,12 @@
 block discarded – undo
64 64
         Container::extensionMethod('addBootstrapRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) {
65 65
             $picker = $container[$name] = new BootstrapRange($name, $label, $maxLength);
66 66
 
67
-            if (null !== $inputFormat)
68
-                $picker->setInputFormat($inputFormat);
69
-            if (null !== $searchFormat)
70
-                $picker->setSearchFormat($searchFormat);
67
+            if (null !== $inputFormat) {
68
+                            $picker->setInputFormat($inputFormat);
69
+            }
70
+            if (null !== $searchFormat) {
71
+                            $picker->setSearchFormat($searchFormat);
72
+            }
71 73
 
72 74
             return $picker;
73 75
         });
Please login to merge, or discard this patch.