<commit_before><?php

/**
 * This file is part of the Nextras community extensions of Nette Framework
 *
 * @license    MIT
 * @link       https://github.com/nextras
 * @author     <NAME>
 */

namespace Nextras\Application\UI;

use Nette;
use Nette\Application\UI\PresenterComponent;


trait SecuredLinksPresenterTrait
{
	use SecuredLinksControlTrait;


	/**
	 * @param  PresenterComponent $component
	 * @param  string $link created URL
	 * @param  string $destination
	 * @return string
	 * @throws Nette\Application\UI\InvalidLinkException
	 */
	public function createSecuredLink(PresenterComponent $component, $link, $destination)
	{
		/** @var $lastRequest Nette\Application\Request */
		$lastRequest = $this->lastCreatedRequest;
<commit_msg>Removed magic getter usage<commit_after><?php

/**
 * This file is part of the Nextras community extensions of Nette Framework
 *
 * @license    MIT
 * @link       https://github.com/nextras
 * @author     <NAME>
 */

namespace Nextras\Application\UI;

use Nette;
use Nette\Application\UI\PresenterComponent;


trait SecuredLinksPresenterTrait
{
	use SecuredLinksControlTrait;


	/**
	 * @param  PresenterComponent $component
	 * @param  string $link created URL
	 * @param  string $destination
	 * @return string
	 * @throws Nette\Application\UI\InvalidLinkException
	 */
	public function createSecuredLink(PresenterComponent $component, $link, $destination)
	{
		/** @var $lastRequest Nette\Application\Request */
		$lastRequest = $this->getLastCreatedRequest();

{'fraction_non_alphanumeric': 0.10582010582010581, 'fraction_numerical': 0.0, 'mean_word_length': 4.181506849315069, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5696890', 'n_tokens_mistral': 465, 'n_tokens_neox': 440, 'n_words': 113}