Skip to content

Commit daccd29

Browse files
committed
Cleanup.
1 parent c2396c5 commit daccd29

10 files changed

Lines changed: 134 additions & 115 deletions

‎src/Docs/DiffTrait.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace MediaEmbed\Docs;
46

57
use SebastianBergmann\Diff\Differ;

‎src/Docs/Generator.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace MediaEmbed\Docs;
46

57
use MediaEmbed\MediaEmbed;

‎src/MediaEmbed.php‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace MediaEmbed;
46

57
use MediaEmbed\Exception\FetchException;
@@ -204,11 +206,11 @@ public function parseUrl(string $url, array $config = []): ?MediaObject {
204206
/**
205207
* Parse given URL or throw exception on failure.
206208
*
207-
* @param string $url Href to check for embedded video
208-
* @param array<string, mixed> $config
209-
* @throws \MediaEmbed\Exception\InvalidUrlException When URL is not supported.
210-
* @throws \MediaEmbed\Exception\FetchException When fetch-match fails.
211-
* @return \MediaEmbed\Object\MediaObject
209+
* @param string $url Href to check for embedded video
210+
* @param array<string, mixed> $config
211+
* @throws \MediaEmbed\Exception\InvalidUrlException When URL is not supported.
212+
* @throws \MediaEmbed\Exception\FetchException When fetch-match fails.
213+
* @return \MediaEmbed\Object\MediaObject
212214
*/
213215
public function parseUrlOrFail(string $url, array $config = []): MediaObject {
214216
$result = $this->getUrlMatcher()->match($url);

0 commit comments

Comments
 (0)