Skip to content

Commit

Permalink
PHP CS Fixer - ordered_types (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Oct 14, 2023
1 parent c5fea01 commit 19ddd61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Helper.php
Expand Up @@ -35,7 +35,7 @@ public static function getId(string $userFriendlyId): string
return \md5($userFriendlyId);
}

public static function getLiveEditorUrl(Graph|ERDiagram|Timeline $mermaid): string
public static function getLiveEditorUrl(ERDiagram|Graph|Timeline $mermaid): string
{
$json = \json_encode([
'code' => (string)$mermaid,
Expand Down
4 changes: 2 additions & 2 deletions src/Render.php
Expand Up @@ -28,7 +28,7 @@ class Render

public const DEFAULT_MERMAID_URL = 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';

public static function html(Graph|ERDiagram|Timeline $graph, array $params = []): string
public static function html(ERDiagram|Graph|Timeline $graph, array $params = []): string
{
$theme = (string)($params['theme'] ?? self::THEME_FOREST);
$scriptUrl = (string)($params['mermaid_url'] ?? self::DEFAULT_MERMAID_URL);
Expand Down Expand Up @@ -127,7 +127,7 @@ public static function getId(string $userFriendlyId): string
return \md5($userFriendlyId);
}

public static function getLiveEditorUrl(Graph|ERDiagram|Timeline $graph): string
public static function getLiveEditorUrl(ERDiagram|Graph|Timeline $graph): string
{
$json = \json_encode([
'code' => (string)$graph,
Expand Down

0 comments on commit 19ddd61

Please sign in to comment.