Skip to content

Commit 475fc1b

Browse files
authored
Fix whitespace errors, reassing the whole data field on reset
1 parent 048449f commit 475fc1b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/DataCollector/StatsdDataCollector.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ public function __construct()
2727
*/
2828
public function reset()
2929
{
30-
$this->statsdClients = [];
31-
$this->data['clients'] = [];
32-
$this->data['operations'] = 0;
30+
$this->statsdClients = [];
31+
$this->data = [
32+
'clients' => [],
33+
'operations' => 0,
34+
];
3335
}
34-
36+
3537
/**
3638
* Kernel event
3739
*

0 commit comments

Comments
 (0)