Skip to content

Commit 1a091a9

Browse files
committed
removing unnecessary code duplication
1 parent 8ad76fe commit 1a091a9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Providers/OpenGraph.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function run()
2727
$name = substr($name, 11);
2828
} elseif (strpos($name, 'og:') === 0) {
2929
$name = substr($name, 3);
30-
} elseif ($name!='keywords') {
30+
} else {
3131
continue;
3232
}
3333

@@ -82,14 +82,6 @@ public function getType()
8282
}
8383
}
8484

85-
/**
86-
* {@inheritdoc}
87-
*/
88-
public function getTags()
89-
{
90-
return $this->bag->has('keywords') ? array_map('trim', explode(',',$this->bag->get('keywords'))) : [];
91-
}
92-
9385
/**
9486
* {@inheritdoc}
9587
*/

0 commit comments

Comments
 (0)