Skip to content

Commit 80eec2e

Browse files
committed
rewriting shorter
1 parent 1a091a9 commit 80eec2e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Providers/OEmbed.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,11 @@ public function getType()
106106
*/
107107
public function getTags()
108108
{
109-
if ($this->bag->has('meta')) {
109+
if ($this->bag->has('meta[keywords]')) {
110110
//it means we are using iframe.ly api
111-
$meta_bag=$this->bag->get('meta');
112-
if (isset($meta_bag['keywords'])) {
113-
return array_map('trim', explode(',',$meta_bag['keywords']));
114-
}
111+
return array_map('trim', explode(',',$this->bag->get('meta[keywords]')));
115112
}
113+
116114
return [];
117115

118116

0 commit comments

Comments
 (0)