Rename Match to MatchInterests because PHP8-lint rejects "match"
This commit is contained in:
parent
7c66073e4b
commit
815d8975e6
2 changed files with 22 additions and 24 deletions
|
@ -42,12 +42,10 @@ use Friendica\Util\Profiler;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller for /match.
|
|
||||||
*
|
|
||||||
* It takes keywords from your profile and queries the directory server for
|
* It takes keywords from your profile and queries the directory server for
|
||||||
* matching keywords from other profiles.
|
* matching keywords from other profiles.
|
||||||
*/
|
*/
|
||||||
class Match extends BaseModule
|
class MatchInterests extends BaseModule
|
||||||
{
|
{
|
||||||
const FETCH_PER_PAGE = 100;
|
const FETCH_PER_PAGE = 100;
|
||||||
|
|
|
@ -367,28 +367,28 @@ return [
|
||||||
'/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]],
|
'/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]],
|
||||||
|
|
||||||
'/contact' => [
|
'/contact' => [
|
||||||
'[/]' => [Module\Contact::class, [R::GET]],
|
'[/]' => [Module\Contact::class, [R::GET]],
|
||||||
'/{id:\d+}[/]' => [Module\Contact\Profile::class, [R::GET, R::POST]],
|
'/{id:\d+}[/]' => [Module\Contact\Profile::class, [R::GET, R::POST]],
|
||||||
'/{id:\d+}/{action:block|ignore|update|updateprofile}'
|
'/{id:\d+}/{action:block|ignore|update|updateprofile}'
|
||||||
=> [Module\Contact\Profile::class, [R::GET]],
|
=> [Module\Contact\Profile::class, [R::GET]],
|
||||||
'/{id:\d+}/advanced' => [Module\Contact\Advanced::class, [R::GET, R::POST]],
|
'/{id:\d+}/advanced' => [Module\Contact\Advanced::class, [R::GET, R::POST]],
|
||||||
'/{id:\d+}/conversations' => [Module\Contact\Conversations::class, [R::GET]],
|
'/{id:\d+}/conversations' => [Module\Contact\Conversations::class, [R::GET]],
|
||||||
'/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class, [R::GET]],
|
'/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class, [R::GET]],
|
||||||
'/{id:\d+}/media' => [Module\Contact\Media::class, [R::GET]],
|
'/{id:\d+}/media' => [Module\Contact\Media::class, [R::GET]],
|
||||||
'/{id:\d+}/posts' => [Module\Contact\Posts::class, [R::GET]],
|
'/{id:\d+}/posts' => [Module\Contact\Posts::class, [R::GET]],
|
||||||
'/{id:\d+}/revoke' => [Module\Contact\Revoke::class, [R::GET, R::POST]],
|
'/{id:\d+}/revoke' => [Module\Contact\Revoke::class, [R::GET, R::POST]],
|
||||||
'/archived' => [Module\Contact::class, [R::GET]],
|
'/archived' => [Module\Contact::class, [R::GET]],
|
||||||
'/batch' => [Module\Contact::class, [R::GET, R::POST]],
|
'/batch' => [Module\Contact::class, [R::GET, R::POST]],
|
||||||
'/blocked' => [Module\Contact::class, [R::GET]],
|
'/blocked' => [Module\Contact::class, [R::GET]],
|
||||||
'/follow' => [Module\Contact\Follow::class, [R::GET, R::POST]],
|
'/follow' => [Module\Contact\Follow::class, [R::GET, R::POST]],
|
||||||
'/hidden' => [Module\Contact::class, [R::GET]],
|
'/hidden' => [Module\Contact::class, [R::GET]],
|
||||||
'/hovercard' => [Module\Contact\Hovercard::class, [R::GET]],
|
'/hovercard' => [Module\Contact\Hovercard::class, [R::GET]],
|
||||||
'/ignored' => [Module\Contact::class, [R::GET]],
|
'/ignored' => [Module\Contact::class, [R::GET]],
|
||||||
'/match' => [Module\Contact\Match::class, [R::GET]],
|
'/match' => [Module\Contact\MatchInterests::class, [R::GET]],
|
||||||
'/pending' => [Module\Contact::class, [R::GET]],
|
'/pending' => [Module\Contact::class, [R::GET]],
|
||||||
'/redir/{id:\d+}' => [Module\Contact\Redir::class, [R::GET]],
|
'/redir/{id:\d+}' => [Module\Contact\Redir::class, [R::GET]],
|
||||||
'/suggestions' => [Module\Contact\Suggestions::class, [R::GET]],
|
'/suggestions' => [Module\Contact\Suggestions::class, [R::GET]],
|
||||||
'/unfollow' => [Module\Contact\Unfollow::class, [R::GET, R::POST]],
|
'/unfollow' => [Module\Contact\Unfollow::class, [R::GET, R::POST]],
|
||||||
],
|
],
|
||||||
|
|
||||||
'/credits' => [Module\Credits::class, [R::GET]],
|
'/credits' => [Module\Credits::class, [R::GET]],
|
||||||
|
|
Loading…
Reference in a new issue