@@ -23,7 +23,12 @@ private static function assertCurveMatches(array $expected, array $actual, float
2323 self ::assertCount (count ($ expected ), $ actual );
2424
2525 foreach ($ expected as $ index => $ expectedValue ) {
26- self ::assertEqualsWithDelta ($ expectedValue , $ actual [$ index ], $ delta , sprintf ('Curve index %d differs. ' , $ index ));
26+ self ::assertEqualsWithDelta (
27+ $ expectedValue ,
28+ $ actual [$ index ],
29+ $ delta ,
30+ sprintf ('Curve index %d differs. ' , $ index ),
31+ );
2732 }
2833 }
2934
@@ -114,8 +119,11 @@ public function testNormalizeArcRadiiMatchesExpectedScaleForRotatedArc(): void
114119 }
115120
116121 #[DataProvider('provideCalculateArcCenterScenarios ' )]
117- public function testCalculateArcCenterBoundaryScenarios (ArcParams $ params , float $ expectedCenterX , float $ expectedCenterY ): void
118- {
122+ public function testCalculateArcCenterBoundaryScenarios (
123+ ArcParams $ params ,
124+ float $ expectedCenterX ,
125+ float $ expectedCenterY ,
126+ ): void {
119127 $ math = new SvgArcMath ();
120128
121129 [$ centerX , $ centerY ] = $ math ->calculateArcCenter ($ params );
@@ -165,8 +173,11 @@ public static function provideCalculateArcCenterScenarios(): iterable
165173 }
166174
167175 #[DataProvider('provideCalculateArcAnglesScenarios ' )]
168- public function testCalculateArcAnglesBoundaryScenarios (ArcParams $ params , float $ expectedStartAngle , float $ expectedDeltaAngle ): void
169- {
176+ public function testCalculateArcAnglesBoundaryScenarios (
177+ ArcParams $ params ,
178+ float $ expectedStartAngle ,
179+ float $ expectedDeltaAngle ,
180+ ): void {
170181 $ math = new SvgArcMath ();
171182
172183 [$ startAngle , $ deltaAngle ] = $ math ->calculateArcAngles ($ params );
@@ -269,7 +280,9 @@ public static function provideGenerateArcCurvesScenarios(): iterable
269280 $ alphaDeltaAngle = M_PI / 3.0 ;
270281
271282 $ alphaTanHalfAngleStep = tan ($ alphaDeltaAngle / 2.0 );
272- $ alpha = sin ($ alphaDeltaAngle ) * (sqrt (4.0 + 3.0 * $ alphaTanHalfAngleStep * $ alphaTanHalfAngleStep ) - 1.0 ) / 3.0 ;
283+ $ alpha = sin ($ alphaDeltaAngle )
284+ * (sqrt (4.0 + 3.0 * $ alphaTanHalfAngleStep * $ alphaTanHalfAngleStep ) - 1.0 )
285+ / 3.0 ;
273286
274287 yield 'ceil boundary keeps two segments ' => [
275288 'params ' => self ::createCurveGenerationParams (0.0 , 0.0 , 10.0 , 7.0 , 1.0 , 0.0 , 0.0 , $ ceilDeltaAngle ),
@@ -332,4 +345,4 @@ public static function provideGenerateArcCurvesScenarios(): iterable
332345 ],
333346 ];
334347 }
335- }
348+ }
0 commit comments