[TOOLS][DOCS] Add missing doc blocks, as signaled by doc-checker

This commit is contained in:
Hugo Sales 2021-12-01 12:24:22 +00:00 committed by Diogo Peralta Cordeiro
parent d58483a6ca
commit b7fe924bdd
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
3 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,10 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
class EditFeeds extends Controller
{
/**
* Controller for editing the list of feeds in the user's left
* panel. Adds and removes `\App\Entity\Feed`s as appropriate
*/
public function __invoke(Request $request)
{
$user = Common::ensureLoggedIn();

View File

@ -99,6 +99,11 @@ class Tag extends Component
return mb_substr($tag, 0, self::MAX_TAG_LENGTH);
}
/**
* Convert a tag to it's canonical representation, by splitting it
* into words, stemming it in the given language (if enabled) and
* sluggifying it (turning it into an ASCII representation)
*/
public static function canonicalTag(string $tag, ?string $language): string
{
$result = '';

View File

@ -32,6 +32,9 @@ use Symfony\Component\HttpFoundation\Request;
class RelatedTags extends Plugin
{
/**
* Add a pinnned block containing tags related to the current page, be it note tags or actor tags
*/
public function onAddPinnedFeedContent(Request $request, array &$pinned)
{
$tags = $request->attributes->get('tags');