From fdbcab3082fc7b261191582c22a701b69da8441f Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Sat, 14 Oct 2023 23:32:36 +0400 Subject: [PATCH] PHP CS Fixer - `ordered_types` --- src/Helper.php | 2 +- src/Render.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Helper.php b/src/Helper.php index f61ba5b..e246cf7 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -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, diff --git a/src/Render.php b/src/Render.php index 95a78e3..b634b06 100644 --- a/src/Render.php +++ b/src/Render.php @@ -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); @@ -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,