<commit_before><?php

/*
 * Mendo Framework
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Mendo\Mvc\Router;

use Mendo\Http\Request\HttpRequestInterface;
use Mendo\Router\PlaceholderRouter;
use Mendo\Router\I18n\PlaceholderRouter as PlaceholderI18nRouter;
use Mendo\Router\I18n\TranslatorAwareTrait;
use Mendo\Router\AbstractRouter;
use Mendo\Router\RouteData;
use Mendo\Translator\TranslatorInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class DefaultRouter extends AbstractRouter 
{
    use TranslatorAwareTrait;

    private $router;
    private $modules;
    private $defaultModule;

    public function __construct(array $modules, $defaultModule = 'index')
    {
        parent::__construct('default');
        $this->modules = $modules;
        $this->defaultModule = $defaultModule;
    }

    private function createRouter($route)
    {
        $defaults = [
            'module' => $this->defaultModule,
            'controller' => 'index',
            'action' => 'index',
        ];
        $constraints = [<commit_msg>Removed unused namespace and unused instance variable<commit_after><?php

/*
 * Mendo Framework
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Mendo\Mvc\Router;

use Mendo\Http\Request\HttpRequestInterface;
use Mendo\Router\PlaceholderRouter;
use Mendo\Router\I18n\PlaceholderRouter as PlaceholderI18nRouter;
use Mendo\Router\I18n\TranslatorAwareTrait;
use Mendo\Router\AbstractRouter;
use Mendo\Router\RouteData;

/**
 * @author <NAME> <<EMAIL>.com>
 */
class DefaultRouter extends AbstractRouter
{
    use TranslatorAwareTrait;

    private $modules;
    private $defaultModule;

    public function __construct(array $modules, $defaultModule = 'index')
    {
        parent::__construct('default');
        $this->modules = $modules;
        $this->defaultModule = $defaultModule;
    }

    private function createRouter($route)
    {
        $defaults = [
            'module' => $this->defaultModule,
            'controller' => 'index',
            'action' => 'index',
        ];
        $constraints = [
{'fraction_non_alphanumeric': 0.11682650392327812, 'fraction_numerical': 0.0052310374891020054, 'mean_word_length': 3.289719626168224, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, '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': '4305324', 'n_tokens_mistral': 681, 'n_tokens_neox': 669, 'n_words': 162}