From ea7d98ffd3a8e11e362260212892fe7b66e0f3e4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 20 Jul 2024 19:00:36 +0300 Subject: [PATCH] remove undefined arguments --- src/Abstract/Entity/Entry.php | 9 +++------ src/Entity/Browser/Container/Page/Navbar/Request.php | 3 +-- src/Entity/Browser/Container/Page/Response/Query.php | 3 +-- src/Entity/Browser/History/Container/Navbar/Filter.php | 3 +-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/Abstract/Entity/Entry.php b/src/Abstract/Entity/Entry.php index 03ecec0d..b2c6ca36 100644 --- a/src/Abstract/Entity/Entry.php +++ b/src/Abstract/Entity/Entry.php @@ -40,12 +40,10 @@ abstract class Entry $this->gtk->connect( 'activate', function( - \GtkEntry $entry, - \GdkEvent $event + \GtkEntry $entry ) { $this->_onActivate( - $entry, - $event + $entry ); } ); @@ -89,8 +87,7 @@ abstract class Entry } abstract protected function _onActivate( - \GtkEntry $entry, - \GdkEvent $event + \GtkEntry $entry ): void; abstract protected function _onKeyRelease( diff --git a/src/Entity/Browser/Container/Page/Navbar/Request.php b/src/Entity/Browser/Container/Page/Navbar/Request.php index 48ffd006..2952c44f 100644 --- a/src/Entity/Browser/Container/Page/Navbar/Request.php +++ b/src/Entity/Browser/Container/Page/Navbar/Request.php @@ -11,8 +11,7 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb private ?int $_changed = null; protected function _onActivate( - \GtkEntry $entry, - \GdkEvent $event + \GtkEntry $entry ): void { $this->navbar->page->open( diff --git a/src/Entity/Browser/Container/Page/Response/Query.php b/src/Entity/Browser/Container/Page/Response/Query.php index b64255e1..19e7c61e 100644 --- a/src/Entity/Browser/Container/Page/Response/Query.php +++ b/src/Entity/Browser/Container/Page/Response/Query.php @@ -22,8 +22,7 @@ class Query extends \Yggverse\Yoda\Abstract\Entity\Entry } protected function _onActivate( - \GtkEntry $entry, - \GdkEvent $event + \GtkEntry $entry ): void { $this->response->send(); diff --git a/src/Entity/Browser/History/Container/Navbar/Filter.php b/src/Entity/Browser/History/Container/Navbar/Filter.php index 09b12951..ff57a11d 100644 --- a/src/Entity/Browser/History/Container/Navbar/Filter.php +++ b/src/Entity/Browser/History/Container/Navbar/Filter.php @@ -9,8 +9,7 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Na protected string $_placeholder = 'Search in history...'; protected function _onActivate( - \GtkEntry $entry, - \GdkEvent $event + \GtkEntry $entry ): void { $this->navbar->container->content->search(