Skip to content

Commit

Permalink
chore: add missing blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yenfryherrerafeliz committed Nov 21, 2024
1 parent b8ab573 commit eb1aa90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MetricsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ final class MetricsBuilder

/** @var int */
private static $MAX_METRICS_SIZE = 1024; // 1KB or 1024 B

/** @var string */
private static $METRIC_SEPARATOR = ",";

/** @var array $metrics */
private $metrics;

/** @var int $metricsSize */
private $metricsSize;

Expand Down
5 changes: 5 additions & 0 deletions src/UserAgentMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
class UserAgentMiddleware
{
const AGENT_VERSION = 2.1;

static $userAgentFnList = [
'getSdkVersion',
'getUserAgentVersion',
Expand All @@ -26,6 +27,7 @@ class UserAgentMiddleware
'getAppId',
'getMetrics'
];

static $metricsFnList = [
'appendEndpointMetric',
'appendAccountIdModeMetric',
Expand All @@ -34,8 +36,10 @@ class UserAgentMiddleware

/** @var callable */
private $nextHandler;

/** @var array */
private $args;

/** @var MetricsBuilder */
private $metricsBuilder;

Expand Down Expand Up @@ -68,6 +72,7 @@ public function __construct(callable $nextHandler, array $args=[])
/**
* When invoked, its injects the user agent header into the
* request headers.
*
* @param CommandInterface $command
* @param RequestInterface $request
*
Expand Down

0 comments on commit eb1aa90

Please sign in to comment.