From 53626a602ab3355b417eb94e08f6fdf5be064a42 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 29 Jul 2024 18:26:28 +0300 Subject: [PATCH] define encoding as interface const --- src/Abstract/Model/Gtk/Pango/Markup.php | 2 +- src/Interface/Model/Gtk/Pango/Markup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Abstract/Model/Gtk/Pango/Markup.php b/src/Abstract/Model/Gtk/Pango/Markup.php index 22d9735d..1d897d58 100644 --- a/src/Abstract/Model/Gtk/Pango/Markup.php +++ b/src/Abstract/Model/Gtk/Pango/Markup.php @@ -151,7 +151,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup $markup, mb_strlen( $markup, - 'UTF-8' + self::ENCODING ) ); diff --git a/src/Interface/Model/Gtk/Pango/Markup.php b/src/Interface/Model/Gtk/Pango/Markup.php index dbcb9d14..74e1b959 100644 --- a/src/Interface/Model/Gtk/Pango/Markup.php +++ b/src/Interface/Model/Gtk/Pango/Markup.php @@ -10,8 +10,8 @@ namespace Yggverse\Yoda\Interface\Model\Gtk\Pango; */ interface Markup { + public const ENCODING = 'UTF-8'; public const TAG_CODE = 'tt'; - public const WRAP_WIDTH = 140; public static function code(