Skip to content

Commit 7c631a2

Browse files
committed
fixed static funcions
1 parent 4248174 commit 7c631a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/OEmbed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ protected function fetchData(): array
4343
$response = $crawler->sendRequest($request);
4444

4545
if (self::isXML($request->getUri())) {
46-
return self::extractXML((string) $response->getBody());
46+
return $this->extractXML((string) $response->getBody());
4747
}
4848

49-
return self::extractJSON((string) $response->getBody());
49+
return $this->extractJSON((string) $response->getBody());
5050
}
5151

5252
private function detectEndpoint(): ?UriInterface
@@ -122,7 +122,7 @@ private static function isXML(UriInterface $uri): bool
122122
return false;
123123
}
124124

125-
private static function extractXML(string $xml): array
125+
private function extractXML(string $xml): array
126126
{
127127
try {
128128
$data = [];
@@ -147,7 +147,7 @@ private static function extractXML(string $xml): array
147147
}
148148
}
149149

150-
private static function extractJSON(string $json): array
150+
private function extractJSON(string $json): array
151151
{
152152
try {
153153
$data = json_decode($json, true);

0 commit comments

Comments
 (0)