Skip to content

Commit

Permalink
nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash30201 committed Dec 19, 2023
1 parent 7c2b605 commit bfe2cfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/UpdateMetadataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getUpdateMetadataFunc()
public function updateMetadata(
$metadata,
$authUri = null,
callable $httpHandler = null,
callable $httpHandler = null
) {
if (isset($metadata[self::AUTH_METADATA_KEY])) {
// Auth metadata has already been set
Expand Down
16 changes: 8 additions & 8 deletions tests/MetricsTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@
* limitations under the License.
*/

namespace Google\Auth\Tests;
namespace Google\Auth\Tests;

use Google\Auth\Credentials\GCECredentials;
use Google\Auth\Credentials\ImpersonatedServiceAccountCredentials;
use Google\Auth\Credentials\ServiceAccountCredentials;
use Google\Auth\Credentials\ServiceAccountJwtAccessCredentials;
use Google\Auth\Credentials\UserRefreshCredentials;
use Google\Auth\MetricsTrait;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\Psr7\Utils;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;

class MetricsTraitTest extends TestCase
Expand All @@ -44,10 +42,12 @@ class MetricsTraitTest extends TestCase

public function setUp(): void
{
$this->impl = new class {use MetricsTrait {
getVersion as public;
applyMetricsHeader as public;
}};
$this->impl = new class() {
use MetricsTrait {
getVersion as public;
applyMetricsHeader as public;
}
};
$this->langAndVersion = sprintf(
'gl-php/%s auth/%s',
PHP_VERSION,
Expand All @@ -59,7 +59,7 @@ public function setUp(): void
public function testGetVersion()
{
$actualVersion = $this->impl::getVersion();
$this->assertStringMatchesFormat("%d.%d.%d", $actualVersion);
$this->assertStringMatchesFormat('%d.%d.%d', $actualVersion);
}

/**
Expand Down

0 comments on commit bfe2cfe

Please sign in to comment.