Skip to content

Commit 37f8176

Browse files
committed
remove blank lines after class opening (open-telemetry#1468)
add the php-cs-fixer no_blank_lines_after_class_opening rule and apply to codebase
1 parent 0af0b54 commit 37f8176

File tree

117 files changed

+1
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1
-116
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
'include' => true,
3030
'lowercase_cast' => true,
3131
'new_with_parentheses' => true,
32+
'no_blank_lines_after_class_opening' => true,
3233
'no_extra_blank_lines' => true,
3334
'no_leading_import_slash' => true,
3435
'no_trailing_whitespace' => true,

examples/src/ExampleConfig.php

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

99
final class ExampleConfig implements InstrumentationConfiguration
1010
{
11-
1211
public function __construct(
1312
public readonly string $spanName,
1413
public readonly bool $enabled = true,

examples/src/ExampleConfigProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
final class ExampleConfigProvider implements ComponentProvider
1818
{
19-
2019
/**
2120
* @psalm-suppress MoreSpecificImplementedParamType
2221
* @param array{

examples/src/ExampleInstrumentation.php

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

1414
final class ExampleInstrumentation implements Instrumentation
1515
{
16-
1716
public function register(HookManagerInterface $hookManager, ConfigProperties $configuration, InstrumentationContext $context): void
1817
{
1918
$config = $configuration->get(ExampleConfig::class) ?? ExampleConfig::default();

src/API/Instrumentation/AutoInstrumentation/ConfigurationRegistry.php

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

99
final class ConfigurationRegistry implements ConfigProperties
1010
{
11-
1211
private array $configurations = [];
1312

1413
public function add(InstrumentationConfiguration $configuration): self

src/API/Instrumentation/AutoInstrumentation/InstrumentationConfiguration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
interface InstrumentationConfiguration
88
{
9-
109
}

src/API/Metrics/CounterInterface.php

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

99
interface CounterInterface extends SynchronousInstrument
1010
{
11-
1211
/**
1312
* @param float|int $amount non-negative amount to increment by
1413
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes

src/API/Metrics/GaugeInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
interface GaugeInterface extends SynchronousInstrument
1717
{
18-
1918
/**
2019
* @param float|int $amount current absolute value
2120
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes

src/API/Metrics/HistogramInterface.php

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

99
interface HistogramInterface extends SynchronousInstrument
1010
{
11-
1211
/**
1312
* @param float|int $amount non-negative amount to record
1413
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes

src/API/Metrics/MeterInterface.php

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

77
interface MeterInterface
88
{
9-
109
/**
1110
* Reports measurements for multiple asynchronous instrument from a single callback.
1211
*

0 commit comments

Comments
 (0)