diff --git a/src/Abstract/Model/Gtk/Pango/Markup.php b/src/Abstract/Model/Gtk/Pango/Markup.php index 1d897d58..620e4a86 100644 --- a/src/Abstract/Model/Gtk/Pango/Markup.php +++ b/src/Abstract/Model/Gtk/Pango/Markup.php @@ -139,7 +139,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup throw new Exception; } - public static function width( + protected static function _width( string $markup ): ?int { @@ -173,7 +173,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup foreach (explode(' ', $string) as $word) { - if (isset($words[$line]) && Markup::width(implode(' ', $words[$line])) > $width) + if (isset($words[$line]) && self::_width(implode(' ', $words[$line])) > $width) { $line++; } diff --git a/src/Interface/Model/Gtk/Pango/Markup.php b/src/Interface/Model/Gtk/Pango/Markup.php index 74e1b959..215744f2 100644 --- a/src/Interface/Model/Gtk/Pango/Markup.php +++ b/src/Interface/Model/Gtk/Pango/Markup.php @@ -56,8 +56,4 @@ interface Markup string $const, bool $close ): string; - - public static function width( - string $markup - ): ?int; } \ No newline at end of file