Skip to content

Commit

Permalink
Fixed additional namespace adjustements
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Jun 11, 2021
1 parent 47388b2 commit a178572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/HtmlVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function visitArgument(\Graphpinator\Typesystem\Argument\Argument $argume
EOL;
}

public function visitDirectiveUsage(\Graphpinator\DirectiveUsage\DirectiveUsage $directiveUsage) : string
public function visitDirectiveUsage(\Graphpinator\Typesystem\DirectiveUsage\DirectiveUsage $directiveUsage) : string
{
$schema = '&nbsp;<span class="typename">' . self::printDirectiveLink($directiveUsage) . '</span>';
$printableArguments = [];
Expand All @@ -281,7 +281,7 @@ public function visitDirectiveUsage(\Graphpinator\DirectiveUsage\DirectiveUsage
return $schema;
}

public function visitEnumItem(\Graphpinator\EnumItem\EnumItem $enumItem) : string
public function visitEnumItem(\Graphpinator\Typesystem\EnumItem\EnumItem $enumItem) : string
{
return $this->printItemDescription($enumItem->getDescription()) . '<div class="line enum-item">' . $enumItem->getName()
. $this->printDirectiveUsages($enumItem->getDirectiveUsages()) . '</div>';
Expand Down Expand Up @@ -344,7 +344,7 @@ private static function printNamedTypeLink(\Graphpinator\Typesystem\Contract\Nam
EOL;
}

private static function printDirectiveLink(\Graphpinator\DirectiveUsage\DirectiveUsage $directiveUsage) : string
private static function printDirectiveLink(\Graphpinator\Typesystem\DirectiveUsage\DirectiveUsage $directiveUsage) : string
{
$href = \str_starts_with($directiveUsage->getDirective()::class, 'Graphpinator\Typesystem\Spec')
? ''
Expand Down
2 changes: 1 addition & 1 deletion src/PrintComponentVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Graphpinator\Printer;

interface PrintComponentVisitor extends \Graphpinator\Typesystem\ComponentVisitor
interface PrintComponentVisitor extends \Graphpinator\Typesystem\Contract\ComponentVisitor
{
/**
* @param array<string> $entries
Expand Down

0 comments on commit a178572

Please sign in to comment.