Skip to content

Commit 5bfd8a2

Browse files
committed
src: formatting
Change-Id: I5224bce230afeb6211ba4731d072bb90f4a0ec08
1 parent b778bf0 commit 5bfd8a2

22 files changed

+210
-70
lines changed

src/Configuration/Section/CollageConfiguration.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public static function getNode(): NodeDefinition
3939
->max(10)
4040
->beforeNormalization()
4141
->ifString()
42-
->then(function (string $value): int { return intval($value); })
42+
->then(function (string $value): int {
43+
return intval($value);
44+
})
4345
->end()
4446
->end()
4547
->booleanNode('continuous')->defaultValue(true)->end()
@@ -49,7 +51,9 @@ public static function getNode(): NodeDefinition
4951
->max(20)
5052
->beforeNormalization()
5153
->ifString()
52-
->then(function (string $value): int { return intval($value); })
54+
->then(function (string $value): int {
55+
return intval($value);
56+
})
5357
->end()
5458
->end()
5559
->enumNode('orientation')
@@ -88,7 +92,9 @@ public static function getNode(): NodeDefinition
8892
->max(999)
8993
->beforeNormalization()
9094
->ifString()
91-
->then(function (string $value): int { return intval($value); })
95+
->then(function (string $value): int {
96+
return intval($value);
97+
})
9298
->end()
9399
->end()
94100
->scalarNode('dashedline_color')->defaultValue('#000000')->end()
@@ -110,15 +116,19 @@ public static function getNode(): NodeDefinition
110116
->max(359)
111117
->beforeNormalization()
112118
->ifString()
113-
->then(function (string $value): int { return intval($value); })
119+
->then(function (string $value): int {
120+
return intval($value);
121+
})
114122
->end()
115123
->end()
116124
->booleanNode('placeholder')->defaultValue(false)->end()
117125
->integerNode('placeholderposition')
118126
->defaultValue(1)
119127
->beforeNormalization()
120128
->ifString()
121-
->then(function (string $value): int { return intval($value); })
129+
->then(function (string $value): int {
130+
return intval($value);
131+
})
122132
->end()
123133
->end()
124134
->scalarNode('placeholderpath')->defaultValue('')->end()
@@ -127,7 +137,9 @@ public static function getNode(): NodeDefinition
127137
->defaultValue(4)
128138
->beforeNormalization()
129139
->ifString()
130-
->then(function (string $value): int { return intval($value); })
140+
->then(function (string $value): int {
141+
return intval($value);
142+
})
131143
->end()
132144
->end()
133145
->end();

src/Configuration/Section/CustomConfiguration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public static function getNode(): NodeDefinition
2121
->max(10)
2222
->beforeNormalization()
2323
->ifString()
24-
->then(function (string $value): int { return intval($value); })
24+
->then(function (string $value): int {
25+
return intval($value);
26+
})
2527
->end()
2628
->end()
2729
->scalarNode('key')

src/Configuration/Section/DevConfiguration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public static function getNode(): NodeDefinition
1818
->max(2)
1919
->beforeNormalization()
2020
->ifString()
21-
->then(function (string $value): int { return intval($value); })
21+
->then(function (string $value): int {
22+
return intval($value);
23+
})
2224
->end()
2325
->end()
2426
->booleanNode('demo_images')

src/Configuration/Section/FilterConfiguration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public static function getNode(): NodeDefinition
3535
->max(5000)
3636
->beforeNormalization()
3737
->ifString()
38-
->then(function (string $value): int { return intval($value); })
38+
->then(function (string $value): int {
39+
return intval($value);
40+
})
3941
->end()
4042
->end()
4143
->arrayNode('disabled')

src/Configuration/Section/FtpConfiguration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public static function getNode(): NodeDefinition
3131
->defaultValue(21)
3232
->beforeNormalization()
3333
->ifString()
34-
->then(function (string $value): int { return intval($value); })
34+
->then(function (string $value): int {
35+
return intval($value);
36+
})
3537
->end()
3638
->end()
3739
->scalarNode('username')->defaultValue('')->end()

src/Configuration/Section/GalleryConfiguration.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public static function getNode(): NodeDefinition
3838
->max(10000)
3939
->beforeNormalization()
4040
->ifString()
41-
->then(function (string $value): int { return intval($value); })
41+
->then(function (string $value): int {
42+
return intval($value);
43+
})
4244
->end()
4345
->end()
4446
->booleanNode('show_date')->defaultValue(true)->end()
@@ -48,7 +50,9 @@ public static function getNode(): NodeDefinition
4850
->defaultValue(10)
4951
->beforeNormalization()
5052
->ifString()
51-
->then(function (string $value): int { return intval($value); })
53+
->then(function (string $value): int {
54+
return intval($value);
55+
})
5256
->end()
5357
->end()
5458
->booleanNode('allow_delete')->defaultValue(true)->end()

src/Configuration/Section/LoginConfiguration.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,29 @@ public static function getNode(): NodeDefinition
1818
->defaultNull()
1919
->beforeNormalization()
2020
->ifString()
21-
->then(function (string $value): ?string { return strlen(trim($value)) === 0 ? null : $value; })
21+
->then(function (string $value): ?string {
22+
return strlen(trim($value)) === 0 ? null : $value;
23+
})
2224
->end()
2325
->end()
2426
->booleanNode('keypad')->defaultValue(false)->end()
2527
->scalarNode('pin')
2628
->defaultNull()
2729
->beforeNormalization()
2830
->ifString()
29-
->then(function (string $value): ?string { return strlen(trim($value)) === 0 ? null : $value; })
31+
->then(function (string $value): ?string {
32+
return strlen(trim($value)) === 0 ? null : $value;
33+
})
3034
->end()
3135
->end()
3236
->booleanNode('rental_keypad')->defaultValue(false)->end()
3337
->scalarNode('rental_pin')
3438
->defaultNull()
3539
->beforeNormalization()
3640
->ifString()
37-
->then(function (string $value): ?string { return strlen(trim($value)) === 0 ? null : $value; })
41+
->then(function (string $value): ?string {
42+
return strlen(trim($value)) === 0 ? null : $value;
43+
})
3844
->end()
3945
->end()
4046
->end();

src/Configuration/Section/MailConfiguration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public static function getNode(): NodeDefinition
4646
->defaultValue(587)
4747
->beforeNormalization()
4848
->ifString()
49-
->then(function (string $value): int { return intval($value); })
49+
->then(function (string $value): int {
50+
return intval($value);
51+
})
5052
->end()
5153
->end()
5254
->end();

src/Configuration/Section/PhotoSwipeConfiguration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public static function getNode(): NodeDefinition
2525
->min(0)
2626
->beforeNormalization()
2727
->ifString()
28-
->then(function (string $value): float { return floatval($value); })
28+
->then(function (string $value): float {
29+
return floatval($value);
30+
})
2931
->end()
3032
->end()
3133
->scalarNode('imageClickAction')->defaultValue('toggle-controls')->end()

src/Configuration/Section/PictureConfiguration.php

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public static function getNode(): NodeDefinition
2424
->defaultValue(90)
2525
->beforeNormalization()
2626
->ifString()
27-
->then(function (string $value): int { return intval($value); })
27+
->then(function (string $value): int {
28+
return intval($value);
29+
})
2830
->end()
2931
->end()
3032
->booleanNode('preview_before_processing')->defaultValue(false)->end()
@@ -34,7 +36,9 @@ public static function getNode(): NodeDefinition
3436
->max(10)
3537
->beforeNormalization()
3638
->ifString()
37-
->then(function (string $value): int { return intval($value); })
39+
->then(function (string $value): int {
40+
return intval($value);
41+
})
3842
->end()
3943
->end()
4044
->integerNode('retry_timeout')
@@ -43,7 +47,9 @@ public static function getNode(): NodeDefinition
4347
->max(10)
4448
->beforeNormalization()
4549
->ifString()
46-
->then(function (string $value): int { return intval($value); })
50+
->then(function (string $value): int {
51+
return intval($value);
52+
})
4753
->end()
4854
->end()
4955
->booleanNode('enabled')->defaultValue(true)->end()
@@ -53,7 +59,9 @@ public static function getNode(): NodeDefinition
5359
->max(10)
5460
->beforeNormalization()
5561
->ifString()
56-
->then(function (string $value): int { return intval($value); })
62+
->then(function (string $value): int {
63+
return intval($value);
64+
})
5765
->end()
5866
->end()
5967
->integerNode('cheese_time')
@@ -62,7 +70,9 @@ public static function getNode(): NodeDefinition
6270
->max(10000)
6371
->beforeNormalization()
6472
->ifString()
65-
->then(function (string $value): int { return intval($value); })
73+
->then(function (string $value): int {
74+
return intval($value);
75+
})
6676
->end()
6777
->end()
6878
->enumNode('flip')
@@ -75,7 +85,9 @@ public static function getNode(): NodeDefinition
7585
->max(359)
7686
->beforeNormalization()
7787
->ifString()
78-
->then(function (string $value): int { return intval($value); })
88+
->then(function (string $value): int {
89+
return intval($value);
90+
})
7991
->end()
8092
->end()
8193
->booleanNode('polaroid_effect')->defaultValue(false)->end()
@@ -85,7 +97,9 @@ public static function getNode(): NodeDefinition
8597
->max(359)
8698
->beforeNormalization()
8799
->ifString()
88-
->then(function (string $value): int { return intval($value); })
100+
->then(function (string $value): int {
101+
return intval($value);
102+
})
89103
->end()
90104
->end()
91105
->booleanNode('take_frame')->defaultValue(true)->end()
@@ -97,7 +111,9 @@ public static function getNode(): NodeDefinition
97111
->max(100)
98112
->beforeNormalization()
99113
->ifString()
100-
->then(function (string $value): int { return intval($value); })
114+
->then(function (string $value): int {
115+
return intval($value);
116+
})
101117
->end()
102118
->end()
103119
->integerNode('frame_right_percentage')
@@ -106,7 +122,9 @@ public static function getNode(): NodeDefinition
106122
->max(100)
107123
->beforeNormalization()
108124
->ifString()
109-
->then(function (string $value): int { return intval($value); })
125+
->then(function (string $value): int {
126+
return intval($value);
127+
})
110128
->end()
111129
->end()
112130
->integerNode('frame_top_percentage')
@@ -115,7 +133,9 @@ public static function getNode(): NodeDefinition
115133
->max(100)
116134
->beforeNormalization()
117135
->ifString()
118-
->then(function (string $value): int { return intval($value); })
136+
->then(function (string $value): int {
137+
return intval($value);
138+
})
119139
->end()
120140
->end()
121141
->integerNode('frame_bottom_percentage')
@@ -124,7 +144,9 @@ public static function getNode(): NodeDefinition
124144
->max(100)
125145
->beforeNormalization()
126146
->ifString()
127-
->then(function (string $value): int { return intval($value); })
147+
->then(function (string $value): int {
148+
return intval($value);
149+
})
128150
->end()
129151
->end()
130152
->enumNode('naming')

0 commit comments

Comments
 (0)