Browse Source

define encoding as interface const

PHP-GTK3
yggverse 4 months ago
parent
commit
53626a602a
  1. 2
      src/Abstract/Model/Gtk/Pango/Markup.php
  2. 2
      src/Interface/Model/Gtk/Pango/Markup.php

2
src/Abstract/Model/Gtk/Pango/Markup.php

@ -151,7 +151,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup @@ -151,7 +151,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup
$markup,
mb_strlen(
$markup,
'UTF-8'
self::ENCODING
)
);

2
src/Interface/Model/Gtk/Pango/Markup.php

@ -10,8 +10,8 @@ namespace Yggverse\Yoda\Interface\Model\Gtk\Pango; @@ -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(

Loading…
Cancel
Save