From 016a81ecfa0a5fbbd59c6ca09f31e244b28e2a64 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 29 Jul 2024 18:43:40 +0300 Subject: [PATCH] make width method protected --- src/Abstract/Model/Gtk/Pango/Markup.php | 4 ++-- src/Interface/Model/Gtk/Pango/Markup.php | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) 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