Skip to content

Commit c366329

Browse files
committed
code styles
1 parent 48e3918 commit c366329

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

demo/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function printCode(?string $code, bool $asHtml = true): void
195195
]);
196196
$info = $embed->get(getUrl());
197197
$info->setSettings([
198-
'twitch:parent' => $_SERVER['SERVER_NAME'] === 'localhost' ? null : $_SERVER['SERVER_NAME']
198+
'twitch:parent' => $_SERVER['SERVER_NAME'] === 'localhost' ? null : $_SERVER['SERVER_NAME'],
199199
]);
200200
} catch (Exception $exception) {
201201
echo '<pre>';

src/Adapters/Facebook/OEmbed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
class OEmbed extends Base
1010
{
11-
const ENDPOINT_PAGE = "https://graph.facebook.com/v8.0/oembed_page";
12-
const ENDPOINT_POST = "https://graph.facebook.com/v8.0/oembed_post";
13-
const ENDPOINT_VIDEO = "https://graph.facebook.com/v8.0/oembed_url";
11+
const ENDPOINT_PAGE = 'https://graph.facebook.com/v8.0/oembed_page';
12+
const ENDPOINT_POST = 'https://graph.facebook.com/v8.0/oembed_post';
13+
const ENDPOINT_VIDEO = 'https://graph.facebook.com/v8.0/oembed_url';
1414

1515
protected function detectEndpoint(): ?UriInterface
1616
{

src/Adapters/Instagram/OEmbed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class OEmbed extends Base
1010
{
11-
const ENDPOINT = "https://graph.facebook.com/v8.0/instagram_oembed";
11+
const ENDPOINT = 'https://graph.facebook.com/v8.0/instagram_oembed';
1212

1313
protected function detectEndpoint(): ?UriInterface
1414
{
@@ -25,5 +25,5 @@ protected function detectEndpoint(): ?UriInterface
2525
return $this->extractor->getCrawler()
2626
->createUri(self::ENDPOINT)
2727
->withQuery($queryParameters);
28-
}
28+
}
2929
}

src/Adapters/Twitch/Detectors/Code.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ private function fallback(): ?EmbedCode
2121
$parent = $this->extractor->getSetting('twitch:parent');
2222

2323
if ($id = self::getVideoId($path)) {
24-
$code = $parent
25-
? self::generateIframeCode(['id' => $id, 'parent' => $parent])
24+
$code = $parent
25+
? self::generateIframeCode(['id' => $id, 'parent' => $parent])
2626
: self::generateJsCode('video', $id);
2727
return new EmbedCode($code, 620, 378);
2828
}
2929

3030
if ($id = self::getChannelId($path)) {
3131
$code = $parent
32-
? self::generateIframeCode(['channel' => $id, 'parent' => $parent])
32+
? self::generateIframeCode(['channel' => $id, 'parent' => $parent])
3333
: self::generateJsCode('channel', $id);
3434
return new EmbedCode($code, 620, 378);
3535
}

0 commit comments

Comments
 (0)