File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,12 @@ final class ValueTest extends TestCase
28
28
*/
29
29
public static function provideArithmeticOperator (): array
30
30
{
31
- $ units = ['+ ' , '- ' , '* ' , '/ ' ];
32
-
33
- return \array_combine (
34
- $ units ,
35
- \array_map (
36
- static function (string $ unit ): array {
37
- return [$ unit ];
38
- },
39
- $ units
40
- )
41
- );
31
+ return [
32
+ '+ ' => ['+ ' ],
33
+ '- ' => ['- ' ],
34
+ '* ' => ['* ' ],
35
+ '/ ' => ['/ ' ],
36
+ ];
42
37
}
43
38
44
39
/**
@@ -53,7 +48,7 @@ public function parsesArithmeticInFunctions(string $operator): void
53
48
self ::DEFAULT_DELIMITERS
54
49
);
55
50
56
- self ::assertSame ('max(300px,50vh ' . $ operator . ' 10px) ' , (string ) $ subject );
51
+ self ::assertSame ('max(300px,50vh ' . $ operator . ' 10px) ' , (string )$ subject );
57
52
}
58
53
59
54
/**
@@ -95,7 +90,7 @@ public function parsesArithmeticWithMultipleOperatorsInFunctions(
95
90
self ::DEFAULT_DELIMITERS
96
91
);
97
92
98
- self ::assertSame (\sprintf ($ expectedResultTemplate , $ expression ), (string ) $ subject );
93
+ self ::assertSame (\sprintf ($ expectedResultTemplate , $ expression ), (string )$ subject );
99
94
}
100
95
101
96
/**
@@ -123,6 +118,6 @@ public function parsesArithmeticWithMalformedOperandsInFunctions(string $leftOpe
123
118
self ::DEFAULT_DELIMITERS
124
119
);
125
120
126
- self ::assertSame ('max(300px, ' . $ leftOperand . ' + ' . $ rightOperand . ') ' , (string ) $ subject );
121
+ self ::assertSame ('max(300px, ' . $ leftOperand . ' + ' . $ rightOperand . ') ' , (string )$ subject );
127
122
}
128
123
}
You can’t perform that action at this time.
0 commit comments