<commit_before><?php
/*
 * Copyright (c) Ouzo contributors, http://ouzoframework.org
 * This file is made available under the MIT License (view the LICENSE file for more information).
 */
namespace Ouzo;

use Ouzo\Utilities\Arrays;

class AutoloadNamespaces
{
    public static function getControllerNamespace()
    {
        $controllerPath = Config::getValue('namespace', 'controller');
        return $controllerPath ? Arrays::toArray($controllerPath) : ["\\Application\\Controller\\"];
    }

    public static function getModelNamespace()
    {
        $controllerPath = Config::getValue('namespace', 'model');
        return $controllerPath ? $controllerPath : "\\Application\\Model\\";
    }

    public static function getWidgetNamespace()
    {
        $controllerPath = Config::getValue('namespace', 'widget');
        return $controllerPath ? $controllerPath : "\\Application\\Widget\\";
    }
}<commit_msg>Fixed possibility to define multiple controller namespaces.<commit_after><?php
/*
 * Copyright (c) Ouzo contributors, http://ouzoframework.org
 * This file is made available under the MIT License (view the LICENSE file for more information).
 */
namespace Ouzo;

use Ouzo\Utilities\Arrays;

class AutoloadNamespaces
{
    public static function getControllerNamespace()
    {
        $controllerPath = Config::getValue('namespace', 'controller');
        return $controllerPath ? Arrays::toArray($controllerPath) : array("\\Application\\Controller\\");
    }

    public static function getModelNamespace()
    {
        $controllerPath = Config::getValue('namespace', 'model');
        return $controllerPath ? $controllerPath : "\\Application\\Model\\";
    }

    public static function getWidgetNamespace()
    {
        $controllerPath = Config::getValue('namespace', 'widget');
        return $controllerPath ? $controllerPath : "\\Application\\Widget\\";
    }
}
{'fraction_non_alphanumeric': 0.127715951245363, 'fraction_numerical': 0.0, 'mean_word_length': 3.6732673267326734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '507861', 'n_tokens_mistral': 473, 'n_tokens_neox': 469, 'n_words': 128}