Skip to content

Commit 7aa3e02

Browse files
authored
remove blank lines after class opening (#1468)
add the php-cs-fixer no_blank_lines_after_class_opening rule and apply to codebase
1 parent b515b6b commit 7aa3e02

File tree

118 files changed

+1
-117
lines changed

Some content is hidden

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

118 files changed

+1
-117
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/Example.php

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

77
final class Example
88
{
9-
109
public function test(): int
1110
{
1211
return 42;

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
@@ -14,7 +14,6 @@
1414

1515
final class ExampleInstrumentation implements Instrumentation
1616
{
17-
1817
public function register(HookManagerInterface $hookManager, ConfigProperties $configuration, InstrumentationContext $context): void
1918
{
2019
$config = $configuration->get(ExampleConfig::class) ?? throw new Exception('example instrumentation must be configured');

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

0 commit comments

Comments
 (0)