[TOOLS][DOCS] Add missing doc blocks, as signaled by doc-checker
This commit is contained in:
parent
d58483a6ca
commit
b7fe924bdd
@ -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();
|
||||
|
@ -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 = '';
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user