<commit_before><?php
/**
 * @author         <NAME> <<EMAIL>>
 * @copyright      (c) 2012-2018, <NAME>. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / Lost Password / Config
 */

namespace PH7;

defined('PH7') or die('Restricted access');

use PH7\Framework\Layout\Html\Design;
use PH7\Framework\Mvc\Router\Uri;
use PH7\Framework\Url\Header;

class Permission extends PermissionCore
{
    public function __construct()
    {
        parent::__construct();

        if ((UserCore::auth() || AffiliateCore::auth() || AdminCore::auth()) &&
            ($this->registry->action === 'forgot' || $this->registry->action === 'reset')
        ) {
            Header::redirect(Uri::get('lost-password', 'main', 'account'),
                $this->alreadyConnectedMsg(),
                Design::ERROR_TYPE
            );
        }
    }
}
<commit_msg>Fix indentation<commit_after><?php
/**
 * @author         <NAME> <<EMAIL>>
 * @copyright      (c) 2012-2018, <NAME>. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / Lost Password / Config
 */

namespace PH7;

defined('PH7') or die('Restricted access');

use PH7\Framework\Layout\Html\Design;
use PH7\Framework\Mvc\Router\Uri;
use PH7\Framework\Url\Header;

class Permission extends PermissionCore
{
    public function __construct()
    {
        parent::__construct();

        if ((UserCore::auth() || AffiliateCore::auth() || AdminCore::auth()) &&
            ($this->registry->action === 'forgot' || $this->registry->action === 'reset')
        ) {
            Header::redirect(
                Uri::get('lost-password', 'main', 'account'),
                $this->alreadyConnectedMsg(),
                Design::ERROR_TYPE
            );
        }
    }
}

{'fraction_non_alphanumeric': 0.15556685307574988, 'fraction_numerical': 0.01626842907981698, 'mean_word_length': 2.5080213903743314, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, 'https://': 0, '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': '6647169', 'n_tokens_mistral': 595, 'n_tokens_neox': 562, 'n_words': 132}