Skip to content

Commit 79ddcba

Browse files
committed
Fix CS in tests
1 parent bcd4c4a commit 79ddcba

File tree

9 files changed

+7
-14
lines changed

9 files changed

+7
-14
lines changed

tests/integration/instrumentation/Symfony/OtelSdkBundle/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace OpenTelemetry\Test\Integration\Symfony\OtelSdkBundle\DependencyInjection;
66

7-
use PHPUnit\Framework\TestCase;
87
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\DependencyInjection\Configuration;
98
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\DependencyInjection\ConfigurationException;
9+
use PHPUnit\Framework\TestCase;
1010
use Symfony\Component\Config\Definition\NodeInterface;
1111
use Symfony\Component\Yaml\Parser;
1212

@@ -123,4 +123,3 @@ private static function getParser(): Parser
123123
return self::$parser ?? self::$parser = new Parser();
124124
}
125125
}
126-

tests/integration/instrumentation/Symfony/OtelSdkBundle/DependencyInjection/OtelSdkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace OpenTelemetry\Test\Integration\Symfony\OtelSdkBundle\DependencyInjection;
66

7+
use Exception;
78
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\DependencyInjection\OtelSdkExtension;
89
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\DependencyInjection\Parameters;
910
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\DependencyInjection\Samplers;
@@ -20,7 +21,6 @@
2021
use Symfony\Component\DependencyInjection\Definition;
2122
use Symfony\Component\DependencyInjection\Reference;
2223
use Symfony\Component\Yaml\Parser;
23-
use Exception;
2424

2525
class OtelSdkExtensionTest extends TestCase
2626
{

tests/integration/instrumentation/Symfony/OtelSdkBundle/Mock/SpanExporter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public function __construct(?string $logFile = null)
1515
$this->logFile = $logFile;
1616
}
1717

18-
1918
public static function fromConnectionString(string $endpointUrl, string $name, string $args): self
2019
{
2120
return new self();

tests/integration/instrumentation/Symfony/OtelSdkBundle/Mock/SpanProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ public function getFoo(): ?string
2626
{
2727
return $this->foo;
2828
}
29-
}
29+
}

tests/unit/instrumentation/Symfony/OtelSdkBundle/Trace/ExporterFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace OpenTelemetry\Test\Unit\Symfony\OtelSdkBundle\Trace;
66

7+
use OpenTelemetry\Contrib;
78
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\Trace\ExporterFactory;
89
use OpenTelemetry\SDK\Trace\SpanExporterInterface;
9-
use OpenTelemetry\Contrib;
1010
use PHPUnit\Framework\TestCase;
1111
use Psr\Http\Client\ClientInterface;
1212
use Psr\Http\Message\RequestFactoryInterface;

tests/unit/instrumentation/Symfony/OtelSdkBundle/Util/ConfigHelperTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
namespace OpenTelemetry\Test\Unit\Symfony\OtelSdkBundle\Util;
66

77
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\Util\ConfigHelper;
8-
use Symfony\Component\DependencyInjection\Reference;
98
use PHPUnit\Framework\TestCase;
9+
use Symfony\Component\DependencyInjection\Reference;
1010

1111
class ConfigHelperTest extends TestCase
1212
{
13-
1413
public function testCreateReference()
1514
{
1615
$this->assertInstanceOf(

tests/unit/instrumentation/Symfony/OtelSdkBundle/Util/ContainerConfiguratorHelperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,3 @@ private function createContainerConfiguratorMock(): ContainerConfigurator
7676
return $mock;
7777
}
7878
}
79-

tests/unit/instrumentation/Symfony/OtelSdkBundle/Util/ServiceHelperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
class ServiceHelperTest extends TestCase
1111
{
12-
1312
public function testClassToId()
1413
{
1514
$this->assertSame(

tests/unit/instrumentation/Symfony/OtelSdkBundle/Util/ServicesConfiguratorHelperTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
namespace OpenTelemetry\Test\Unit\Symfony\OtelSdkBundle\Util;
66

77
use OpenTelemetry\Instrumentation\Symfony\OtelSdkBundle\Util\ServicesConfiguratorHelper;
8-
use Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator;
9-
use Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator;
108
use PHPUnit\Framework\MockObject\MockObject;
119
use PHPUnit\Framework\TestCase;
1210
use stdClass;
11+
use Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator;
12+
use Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator;
1313

1414
class ServicesConfiguratorHelperTest extends TestCase
1515
{
@@ -22,7 +22,6 @@ class ServicesConfiguratorHelperTest extends TestCase
2222
*/
2323
private ServicesConfigurator $configurator;
2424

25-
2625
public function setup(): void
2726
{
2827
$this->configurator = $this->createServicesConfiguratorMock();
@@ -96,7 +95,6 @@ public function _testSetAlias()
9695
->with($class, $id);
9796

9897
$this->helper->setAlias($class, $id);
99-
10098
}
10199

102100
private function createServicesConfiguratorMock(): ServicesConfigurator

0 commit comments

Comments
 (0)