<?php
/**
 * @author         Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright      (c) 2012-2018, Pierre-Henry Soria. 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 / User / Controller
 */

namespace PH7;

use PH7\Framework\Module\Various as SysMod;
use PH7\Framework\Mvc\Router\Uri;
use PH7\Framework\Url\Header;

class AccountController extends Controller
{
    public function index()
    {
        // Redirect this page to the user homepage
        if (SysMod::isEnabled('user-dashboard')) {
            $sUrl = Uri::get('user-dashboard', 'main', 'index');
        } else {
            $sUrl = Uri::get('user', 'main', 'index');
        }

        Header::redirect($sUrl);
    }

    /**
     * @param string $sMail
     * @param string $sHash
     *
     * @return void
     */
    public function activate($sMail, $sHash)
    {
        (new UserCore)->activateAccount($sMail, $sHash, $this->config, $this->registry);
    }
}

<?php
/**
 * @author         Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright      (c) 2012-2018, Pierre-Henry Soria. 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 / User / Controller
 */

namespace PH7;

use PH7\Framework\Module\Various as SysMod;
use PH7\Framework\Mvc\Router\Uri;
use PH7\Framework\Url\Header;

class AccountController extends Controller
{
    public function index()
    {
        // Redirect this page to the user homepage
        if (SysMod::isEnabled('user-dashboard')) {
            $sUrl = Uri::get('user-dashboard', 'main', 'index');
        } else {
            $sUrl = Uri::get('user', 'main', 'index');
        }

        Header::redirect($sUrl);
    }

    /**
     * @param string $sMail
     * @param string $sHash
     *
     * @return void
     */
    public function activate($sMail, $sHash)
    {
        (new UserCore)->activateAccount(
            $sMail,
            $sHash,
            $this->config,
            $this->registry
        );
    }
}

Add better indentation (shorter line)
Add better indentation (shorter line)
