Browse Source

make methods private

PHP-GTK3
yggverse 7 months ago
parent
commit
009e5ce68e
  1. 10
      src/Controller/Browser.php

10
src/Controller/Browser.php

@ -94,7 +94,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -94,7 +94,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
{
case str_starts_with($url, 'gemini://'):
$this->navigateGemini(
$this->_gemini(
$url
);
@ -102,7 +102,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -102,7 +102,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
case str_starts_with($url, 'yoda://'):
$this->navigateYoda(
$this->_yoda(
$url
);
@ -110,14 +110,14 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -110,14 +110,14 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
default:
$this->navigateYoda(
$this->_yoda(
'yoda://oops'
);
}
}
public function navigateYoda(string $url): void
private function _yoda(string $url): void
{
if ($data = \Yggverse\Yoda\Model\Page::get(str_replace('yoda://', '', $url)))
{
@ -169,7 +169,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window @@ -169,7 +169,7 @@ class Browser extends \Yggverse\Yoda\Abstract\Window
}
}
public function navigateGemini(string $url): void
private function _gemini(string $url): void
{
$this->tab->tray->label->set_text(
sprintf(

Loading…
Cancel
Save