From 815d8975e61c881c17a32e62cce261942028af53 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 9 Nov 2022 22:36:02 +0100 Subject: [PATCH] Rename Match to MatchInterests because PHP8-lint rejects "match" --- .../Contact/{Match.php => MatchInterests.php} | 4 +- static/routes.config.php | 42 +++++++++---------- 2 files changed, 22 insertions(+), 24 deletions(-) rename src/Module/Contact/{Match.php => MatchInterests.php} (99%) diff --git a/src/Module/Contact/Match.php b/src/Module/Contact/MatchInterests.php similarity index 99% rename from src/Module/Contact/Match.php rename to src/Module/Contact/MatchInterests.php index 0e187b069b..c9601a0fdf 100644 --- a/src/Module/Contact/Match.php +++ b/src/Module/Contact/MatchInterests.php @@ -42,12 +42,10 @@ use Friendica\Util\Profiler; use Psr\Log\LoggerInterface; /** - * Controller for /match. - * * It takes keywords from your profile and queries the directory server for * matching keywords from other profiles. */ -class Match extends BaseModule +class MatchInterests extends BaseModule { const FETCH_PER_PAGE = 100; diff --git a/static/routes.config.php b/static/routes.config.php index ee0b8d6767..0958ee877b 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -367,28 +367,28 @@ return [ '/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]], '/contact' => [ - '[/]' => [Module\Contact::class, [R::GET]], - '/{id:\d+}[/]' => [Module\Contact\Profile::class, [R::GET, R::POST]], + '[/]' => [Module\Contact::class, [R::GET]], + '/{id:\d+}[/]' => [Module\Contact\Profile::class, [R::GET, R::POST]], '/{id:\d+}/{action:block|ignore|update|updateprofile}' - => [Module\Contact\Profile::class, [R::GET]], - '/{id:\d+}/advanced' => [Module\Contact\Advanced::class, [R::GET, R::POST]], - '/{id:\d+}/conversations' => [Module\Contact\Conversations::class, [R::GET]], - '/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class, [R::GET]], - '/{id:\d+}/media' => [Module\Contact\Media::class, [R::GET]], - '/{id:\d+}/posts' => [Module\Contact\Posts::class, [R::GET]], - '/{id:\d+}/revoke' => [Module\Contact\Revoke::class, [R::GET, R::POST]], - '/archived' => [Module\Contact::class, [R::GET]], - '/batch' => [Module\Contact::class, [R::GET, R::POST]], - '/blocked' => [Module\Contact::class, [R::GET]], - '/follow' => [Module\Contact\Follow::class, [R::GET, R::POST]], - '/hidden' => [Module\Contact::class, [R::GET]], - '/hovercard' => [Module\Contact\Hovercard::class, [R::GET]], - '/ignored' => [Module\Contact::class, [R::GET]], - '/match' => [Module\Contact\Match::class, [R::GET]], - '/pending' => [Module\Contact::class, [R::GET]], - '/redir/{id:\d+}' => [Module\Contact\Redir::class, [R::GET]], - '/suggestions' => [Module\Contact\Suggestions::class, [R::GET]], - '/unfollow' => [Module\Contact\Unfollow::class, [R::GET, R::POST]], + => [Module\Contact\Profile::class, [R::GET]], + '/{id:\d+}/advanced' => [Module\Contact\Advanced::class, [R::GET, R::POST]], + '/{id:\d+}/conversations' => [Module\Contact\Conversations::class, [R::GET]], + '/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class, [R::GET]], + '/{id:\d+}/media' => [Module\Contact\Media::class, [R::GET]], + '/{id:\d+}/posts' => [Module\Contact\Posts::class, [R::GET]], + '/{id:\d+}/revoke' => [Module\Contact\Revoke::class, [R::GET, R::POST]], + '/archived' => [Module\Contact::class, [R::GET]], + '/batch' => [Module\Contact::class, [R::GET, R::POST]], + '/blocked' => [Module\Contact::class, [R::GET]], + '/follow' => [Module\Contact\Follow::class, [R::GET, R::POST]], + '/hidden' => [Module\Contact::class, [R::GET]], + '/hovercard' => [Module\Contact\Hovercard::class, [R::GET]], + '/ignored' => [Module\Contact::class, [R::GET]], + '/match' => [Module\Contact\MatchInterests::class, [R::GET]], + '/pending' => [Module\Contact::class, [R::GET]], + '/redir/{id:\d+}' => [Module\Contact\Redir::class, [R::GET]], + '/suggestions' => [Module\Contact\Suggestions::class, [R::GET]], + '/unfollow' => [Module\Contact\Unfollow::class, [R::GET, R::POST]], ], '/credits' => [Module\Credits::class, [R::GET]],