Skip to content

Commit

Permalink
fixes namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech committed Jul 5, 2024
1 parent 2727bae commit e65b5df
Show file tree
Hide file tree
Showing 37 changed files with 103 additions and 103 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
},
"autoload": {
"psr-4": {
"Cosmastech\\StatsDClient\\": "src"
"Cosmastech\\StatsDClientAdapter\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Cosmastech\\StatsDClient\\Tests\\": "tests"
"Cosmastech\\StatsDClientAdapter\\Tests\\": "tests"
}
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/Adapters/Concerns/TagNormalizerAwareTrait.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\Concerns;
namespace Cosmastech\StatsDClientAdapter\Adapters\Concerns;

use Cosmastech\StatsDClient\TagNormalizers\TagNormalizer;
use Cosmastech\StatsDClientAdapter\TagNormalizers\TagNormalizer;

trait TagNormalizerAwareTrait
{
Expand Down
4 changes: 2 additions & 2 deletions src/Adapters/Contracts/TagNormalizerAware.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\Contracts;
namespace Cosmastech\StatsDClientAdapter\Adapters\Contracts;

use Cosmastech\StatsDClient\TagNormalizers\TagNormalizer;
use Cosmastech\StatsDClientAdapter\TagNormalizers\TagNormalizer;

interface TagNormalizerAware
{
Expand Down
10 changes: 5 additions & 5 deletions src/Adapters/Datadog/DatadogStatsDClientAdapter.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\Datadog;
namespace Cosmastech\StatsDClientAdapter\Adapters\Datadog;

use Cosmastech\StatsDClient\Adapters\Concerns\TagNormalizerAwareTrait;
use Cosmastech\StatsDClient\Adapters\Contracts\TagNormalizerAware;
use Cosmastech\StatsDClient\Adapters\StatsDClientAdapter;
use Cosmastech\StatsDClient\TagNormalizers\NoopTagNormalizer;
use Cosmastech\StatsDClientAdapter\Adapters\Concerns\TagNormalizerAwareTrait;
use Cosmastech\StatsDClientAdapter\Adapters\Contracts\TagNormalizerAware;
use Cosmastech\StatsDClientAdapter\Adapters\StatsDClientAdapter;
use Cosmastech\StatsDClientAdapter\TagNormalizers\NoopTagNormalizer;
use DataDog\DogStatsd;

class DatadogStatsDClientAdapter implements StatsDClientAdapter, TagNormalizerAware
Expand Down
26 changes: 13 additions & 13 deletions src/Adapters/InMemory/InMemoryClientAdapter.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\Concerns\TagNormalizerAwareTrait;
use Cosmastech\StatsDClient\Adapters\Contracts\TagNormalizerAware;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryCountRecord;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryDistributionRecord;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryGaugeRecord;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryHistogramRecord;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemorySetRecord;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryStatsRecord;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryTimingRecord;
use Cosmastech\StatsDClient\Adapters\StatsDClientAdapter;
use Cosmastech\StatsDClient\TagNormalizers\NoopTagNormalizer;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory;

use Cosmastech\StatsDClientAdapter\Adapters\Concerns\TagNormalizerAwareTrait;
use Cosmastech\StatsDClientAdapter\Adapters\Contracts\TagNormalizerAware;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryCountRecord;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryDistributionRecord;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryGaugeRecord;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryHistogramRecord;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemorySetRecord;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryStatsRecord;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryTimingRecord;
use Cosmastech\StatsDClientAdapter\Adapters\StatsDClientAdapter;
use Cosmastech\StatsDClientAdapter\TagNormalizers\NoopTagNormalizer;
use Psr\Clock\ClockInterface;

class InMemoryClientAdapter implements StatsDClientAdapter, TagNormalizerAware
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/InMemory/Models/InMemoryCountRecord.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use DateTimeImmutable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use DateTimeImmutable;

Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/InMemory/Models/InMemoryGaugeRecord.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use DateTimeImmutable;

Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/InMemory/Models/InMemoryHistogramRecord.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use DateTimeImmutable;

Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/InMemory/Models/InMemorySetRecord.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use DateTimeImmutable;

Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/InMemory/Models/InMemoryStatsRecord.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

class InMemoryStatsRecord
{
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/InMemory/Models/InMemoryTimingRecord.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\InMemory\Models;
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use DateTimeImmutable;

Expand Down
12 changes: 6 additions & 6 deletions src/Adapters/League/LeagueStatsDClientAdapter.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Cosmastech\StatsDClient\Adapters\League;
namespace Cosmastech\StatsDClientAdapter\Adapters\League;

use Cosmastech\StatsDClient\Adapters\Concerns\TagNormalizerAwareTrait;
use Cosmastech\StatsDClient\Adapters\Contracts\TagNormalizerAware;
use Cosmastech\StatsDClient\Adapters\StatsDClientAdapter;
use Cosmastech\StatsDClient\Utility\SampleRateDecider\Contracts\SampleRateSendDecider as SampleRateSendDeciderInterface;
use Cosmastech\StatsDClient\Utility\SampleRateDecider\SampleRateSendDecider;
use Cosmastech\StatsDClientAdapter\Adapters\Concerns\TagNormalizerAwareTrait;
use Cosmastech\StatsDClientAdapter\Adapters\Contracts\TagNormalizerAware;
use Cosmastech\StatsDClientAdapter\Adapters\StatsDClientAdapter;
use Cosmastech\StatsDClientAdapter\Utility\SampleRateDecider\Contracts\SampleRateSendDecider as SampleRateSendDeciderInterface;
use Cosmastech\StatsDClientAdapter\Utility\SampleRateDecider\SampleRateSendDecider;
use League\StatsD\Client;
use League\StatsD\Exception\ConfigurationException;
use League\StatsD\Exception\ConnectionException;
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/StatsDClientAdapter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Adapters;
namespace Cosmastech\StatsDClientAdapter\Adapters;

interface StatsDClientAdapter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Clients/Datadog/DatadogLoggingClient.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Clients\Datadog;
namespace Cosmastech\StatsDClientAdapter\Clients\Datadog;

use DataDog\DogStatsd;
use Psr\Log\LoggerInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/TagNormalizers/ConvertEnumNormalizer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\TagNormalizers;
namespace Cosmastech\StatsDClientAdapter\TagNormalizers;

use BackedEnum;
use UnitEnum;
Expand Down
2 changes: 1 addition & 1 deletion src/TagNormalizers/NoopTagNormalizer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\TagNormalizers;
namespace Cosmastech\StatsDClientAdapter\TagNormalizers;

class NoopTagNormalizer implements TagNormalizer
{
Expand Down
2 changes: 1 addition & 1 deletion src/TagNormalizers/TagNormalizer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\TagNormalizers;
namespace Cosmastech\StatsDClientAdapter\TagNormalizers;

interface TagNormalizer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Utility\SampleRateDecider\Contracts;
namespace Cosmastech\StatsDClientAdapter\Utility\SampleRateDecider\Contracts;

interface SampleRateSendDecider
{
Expand Down
4 changes: 2 additions & 2 deletions src/Utility/SampleRateDecider/SampleRateSendDecider.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Cosmastech\StatsDClient\Utility\SampleRateDecider;
namespace Cosmastech\StatsDClientAdapter\Utility\SampleRateDecider;

use Cosmastech\StatsDClient\Utility\SampleRateDecider\Contracts\SampleRateSendDecider as SampleRateSendDeciderInterface;
use Cosmastech\StatsDClientAdapter\Utility\SampleRateDecider\Contracts\SampleRateSendDecider as SampleRateSendDeciderInterface;

class SampleRateSendDecider implements SampleRateSendDeciderInterface
{
Expand Down
10 changes: 5 additions & 5 deletions tests/Adapters/InMemory/InMemoryDecrementTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
10 changes: 5 additions & 5 deletions tests/Adapters/InMemory/InMemoryGaugeTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
10 changes: 5 additions & 5 deletions tests/Adapters/InMemory/InMemoryHistogramTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
12 changes: 6 additions & 6 deletions tests/Adapters/InMemory/InMemoryIncrementTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryCountRecord;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryCountRecord;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
10 changes: 5 additions & 5 deletions tests/Adapters/InMemory/InMemorySetTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
12 changes: 6 additions & 6 deletions tests/Adapters/InMemory/InMemoryTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Adapters\InMemory\Models\InMemoryStatsRecord;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\InMemoryStatsRecord;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
10 changes: 5 additions & 5 deletions tests/Adapters/InMemory/InMemoryTimingTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\InMemory;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\InMemory;

use Cosmastech\StatsDClient\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClient\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClient\Tests\Doubles\TagNormalizerSpy;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\InMemoryClientAdapter;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\ClockStub;
use Cosmastech\StatsDClientAdapter\Tests\Doubles\TagNormalizerSpy;
use DateTimeImmutable;
use PHPUnit\Framework\Attributes\Test;

Expand Down
6 changes: 3 additions & 3 deletions tests/Adapters/League/LeagueStatsDClientTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Adapters\League;
namespace Cosmastech\StatsDClientAdapter\Tests\Adapters\League;

use Cosmastech\StatsDClient\Adapters\League\LeagueStatsDClientAdapter;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Adapters\League\LeagueStatsDClientAdapter;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use League\StatsD\StatsDClient;
use PHPUnit\Framework\Attributes\Test;

Expand Down
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Tests;
namespace Cosmastech\StatsDClientAdapter\Tests;

use PHPUnit\Framework\TestCase;

Expand Down
6 changes: 3 additions & 3 deletions tests/Clients/Datadog/DatadogLoggingClientTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Clients\Datadog;
namespace Cosmastech\StatsDClientAdapter\Tests\Clients\Datadog;

use Cosmastech\PsrLoggerSpy\LogFactory;
use Cosmastech\PsrLoggerSpy\LoggerSpy;
use Cosmastech\StatsDClient\Clients\Datadog\DatadogLoggingClient;
use Cosmastech\StatsDClient\Tests\BaseTestCase;
use Cosmastech\StatsDClientAdapter\Clients\Datadog\DatadogLoggingClient;
use Cosmastech\StatsDClientAdapter\Tests\BaseTestCase;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Psr\Log\LogLevel;
Expand Down
2 changes: 1 addition & 1 deletion tests/Doubles/ClockStub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Doubles;
namespace Cosmastech\StatsDClientAdapter\Tests\Doubles;

use DateTimeImmutable;
use InvalidArgumentException;
Expand Down
4 changes: 2 additions & 2 deletions tests/Doubles/TagNormalizerSpy.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Cosmastech\StatsDClient\Tests\Doubles;
namespace Cosmastech\StatsDClientAdapter\Tests\Doubles;

use Cosmastech\StatsDClient\TagNormalizers\TagNormalizer;
use Cosmastech\StatsDClientAdapter\TagNormalizers\TagNormalizer;

class TagNormalizerSpy implements TagNormalizer
{
Expand Down
Loading

0 comments on commit e65b5df

Please sign in to comment.