File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ class ReportStreamer {
1414 public function __construct (Stream $ stream , $ report = null )
1515 {
1616 if (!is_null ($ report )) {
17- $ this ->columns = array_merge ($ report ['report ' ]['groups ' ], (isset ($ report ['report ' ]['sums ' ]) ? $ report ['report ' ]['sums ' ] : $ report ['report ' ]['metrics ' ]));
17+ $ sumsOrMetrics = (isset ($ report ['report ' ]['sums ' ]) ? $ report ['report ' ]['sums ' ] : $ report ['report ' ]['metrics ' ]);
18+ $ this ->columns = array_merge ($ report ['report ' ]['groups ' ], $ sumsOrMetrics );
1819 $ this ->count = $ report ['report ' ]['count ' ];
1920 }
2021
@@ -54,4 +55,4 @@ public function readLine()
5455
5556 return $ line ;
5657 }
57- }
58+ }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected function handleResponse(Response $response)
5353 if ($ this ->returnStream == true )
5454 return $ stream ;
5555 else
56- return $ stream -> getContents ( );
56+ return parent :: handleResponse ( $ response );
5757 }
5858
5959 throw new ApiException ('Request failed, received the following status: ' .
You can’t perform that action at this time.
0 commit comments