This repository was archived by the owner on Dec 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 55use HelloFresh \Stats \HTTPMetricAlterCallback ;
66use HelloFresh \Stats \Incrementer ;
77use HelloFresh \Stats \State ;
8- use HelloFresh \Stats \Timer ;
98use HelloFresh \Stats \StatsD \CachingClient as StatsDClient ;
9+ use HelloFresh \Stats \Timer ;
10+ use League \StatsD \Exception \ConfigurationException ;
1011
1112class StatsD extends AbstractClient implements Client
1213{
@@ -25,8 +26,8 @@ class StatsD extends AbstractClient implements Client
2526 /**
2627 * StatsD constructor.
2728 *
28- * @param string $dsn statsd connection dsn
29- * @throws \League\StatsD\Exception\ ConfigurationException
29+ * @param string $dsn statsd connection dsn
30+ * @throws ConfigurationException
3031 */
3132 public function __construct ($ dsn )
3233 {
Original file line number Diff line number Diff line change 11<?php
2-
32namespace HelloFresh \Stats \StatsD ;
43
5-
64use League \StatsD \Client ;
75use League \StatsD \Exception \ConnectionException ;
86
@@ -12,8 +10,8 @@ class CachingClient extends Client
1210 protected $ socket ;
1311
1412 /**
15- * @return resource
1613 * @throws ConnectionException
14+ * @return resource
1715 */
1816 protected function getSocket ()
1917 {
@@ -29,9 +27,9 @@ protected function getSocket()
2927
3028 /**
3129 * Send Data to StatsD Server
32- * @param array $data A list of messages to send to the server
33- * @return $this
30+ * @param array $data A list of messages to send to the server
3431 * @throws ConnectionException If there is a connection problem with the host
32+ * @return $this
3533 */
3634 protected function send (array $ data )
3735 {
You can’t perform that action at this time.
0 commit comments