Skip to content

Commit

Permalink
Remove complexity (#7)
Browse files Browse the repository at this point in the history
* Remove complexity, local hard coded methods are no longer required within the main meta service. Dynamic calls are now implemented.

Co-authored-by: RobAllport <[email protected]>
  • Loading branch information
Robert Allport and ultrono authored May 18, 2020
1 parent e38590d commit 8d77e7f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ public static function getContent(string $value, string $tag): HtmlString
{
$tags = self::$tags;

// a local method with same name as the key exists
if (method_exists('Meta', $tag)) {
return call_user_func('Meta::' . $tag);
}

// a dedicated tag class with same name as the key exists
$class = __NAMESPACE__ . '\\Tags\\' . ucwords($tag);
if (class_exists($class)) {
Expand Down

0 comments on commit 8d77e7f

Please sign in to comment.