Skip to content

Commit 587bd9d

Browse files
juampi92github-actions[bot]
authored andcommitted
Fix styling
1 parent 6646554 commit 587bd9d

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

src/SEOData.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class SEOData
1818

1919
public function __construct(
2020
private HTMLParser $html
21-
) {
22-
}
21+
) {}
2322

2423
public function title(): ?string
2524
{

src/Support/ArrayPluck.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ class ArrayPluck
77
/**
88
* @param array<array<string, string>> $items
99
*/
10-
public function __construct(private array $items)
11-
{
12-
}
10+
public function __construct(private array $items) {}
1311

1412
/**
1513
* @return array<string, string|array<string>>

src/Tags/Robots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use JsonSerializable;
66
use Stringable;
77

8-
class Robots implements Stringable, JsonSerializable
8+
class Robots implements JsonSerializable, Stringable
99
{
1010
public const INDEX = 'index';
1111

src/Tags/TagCollection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ public function __construct(
88
private string $prefix,
99
/** @var array<string, string|array<string>> */
1010
private array $metadata,
11-
) {
12-
}
11+
) {}
1312

1413
/**
1514
* @return string|array<string>|null

src/TestSEO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(string $content, ?SnapshotSerializer $snapshotSerial
1818
{
1919
$html = new HTMLParser($content);
2020
$this->data = new SEOData($html);
21-
$this->snapshotSerializer = $snapshotSerializer ?? new SimpleSerializer();
21+
$this->snapshotSerializer = $snapshotSerializer ?? new SimpleSerializer;
2222
}
2323

2424
/*

tests/SEODataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public function test_it_parses_html_into_instance(): void
6969
$this->assertEquals(['Header example'], $seo->h1s());
7070
$this->assertEquals(['Header 2 example', 'Header 2 example 2'], $seo->h2s());
7171
$this->assertEquals('utf-8', $seo->charset());
72-
// $this->assertEquals('', $seo->ampHtmlLink());
72+
// $this->assertEquals('', $seo->ampHtmlLink());
7373
}
7474
}

0 commit comments

Comments
 (0)