summaryrefslogtreecommitdiff
path: root/src/Metrics.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-10-12 12:40:25 +0300
committerWolfy-J <[email protected]>2019-10-12 12:40:25 +0300
commit622fb02507ca41b700d4d54f93f9bfa54020d933 (patch)
tree955bd429bea778252403ab7a4cb16fd06e6c631c /src/Metrics.php
parent5d4a699daa0a3696a5bac04cf5568310ff2b7a5c (diff)
- polishing health service tests
- adding auto-CS tools
Diffstat (limited to 'src/Metrics.php')
-rw-r--r--src/Metrics.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Metrics.php b/src/Metrics.php
index d204a585..6fe4c4f5 100644
--- a/src/Metrics.php
+++ b/src/Metrics.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Spiral Framework.
*
@@ -38,7 +39,7 @@ final class Metrics implements MetricsInterface
*
* @throws MetricException
*/
- public function add(string $name, float $value, array $labels = [])
+ public function add(string $name, float $value, array $labels = []): void
{
try {
$this->rpc->call('metrics.Add', compact('name', 'value', 'labels'));
@@ -56,7 +57,7 @@ final class Metrics implements MetricsInterface
*
* @throws MetricException
*/
- public function sub(string $name, float $value, array $labels = [])
+ public function sub(string $name, float $value, array $labels = []): void
{
try {
$this->rpc->call('metrics.Sub', compact('name', 'value', 'labels'));
@@ -74,7 +75,7 @@ final class Metrics implements MetricsInterface
*
* @throws MetricException
*/
- public function observe(string $name, float $value, array $labels = [])
+ public function observe(string $name, float $value, array $labels = []): void
{
try {
$this->rpc->call('metrics.Observe', compact('name', 'value', 'labels'));
@@ -92,7 +93,7 @@ final class Metrics implements MetricsInterface
*
* @throws MetricException
*/
- public function set(string $name, float $value, array $labels = [])
+ public function set(string $name, float $value, array $labels = []): void
{
try {
$this->rpc->call('metrics.Set', compact('name', 'value', 'labels'));