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

This commit is contained in:
2021-12-01 12:24:22 +00:00
committed by Diogo Peralta Cordeiro
parent d58483a6ca
commit b7fe924bdd
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 = '';