@@ -24,10 +24,12 @@ public function formatResponse(RunReportResponse|RunRealtimeReportResponse $resp
2424
2525 private function setDimensionAndMetricHeaders (RunReportResponse |RunRealtimeReportResponse $ response ): void
2626 {
27+ /** @phpstan-ignore-next-line */
2728 foreach ($ response ->getDimensionHeaders () as $ dimensionHeader ) {
2829 $ this ->dimensionHeaders [] = $ dimensionHeader ->getName ();
2930 }
3031
32+ /** @phpstan-ignore-next-line */
3133 foreach ($ response ->getMetricHeaders () as $ metricHeader ) {
3234 $ this ->metricHeaders [] = $ metricHeader ->getName ();
3335 }
@@ -37,13 +39,16 @@ private function getTable(RunReportResponse|RunRealtimeReportResponse $response)
3739 {
3840 $ table = [];
3941
42+ /** @phpstan-ignore-next-line */
4043 foreach ($ response ->getRows () as $ row ) {
4144 $ arr = [];
4245
46+ /** @phpstan-ignore-next-line */
4347 foreach ($ row ->getDimensionValues () as $ key => $ item ) {
4448 $ arr [$ this ->dimensionHeaders [$ key ]] = $ item ->getValue ();
4549 }
4650
51+ /** @phpstan-ignore-next-line */
4752 foreach ($ row ->getMetricValues () as $ key => $ item ) {
4853 $ arr [$ this ->metricHeaders [$ key ]] = $ item ->getValue ();
4954 }
@@ -63,12 +68,15 @@ private function getMetricAggregationsTable(RunReportResponse|RunRealtimeReportR
6368 ];
6469
6570 foreach ($ aggregationMethods as $ aggregationMethod ) {
71+ /** @phpstan-ignore-next-line */
6672 foreach ($ response ->{$ aggregationMethod }() as $ row ) {
6773 if ($ row ->getMetricValues ()->count ()) {
6874 $ arr = [];
75+ /** @phpstan-ignore-next-line */
6976 foreach ($ row ->getDimensionValues () as $ key => $ item ) {
7077 $ arr [$ key === 0 ? 'aggregation ' : $ this ->dimensionHeaders [$ key ]] = $ item ->getValue ();
7178 }
79+ /** @phpstan-ignore-next-line */
7280 foreach ($ row ->getMetricValues () as $ key => $ item ) {
7381 $ arr [$ this ->metricHeaders [$ key ]] = $ item ->getValue ();
7482 }
0 commit comments