<commit_before><?php

/**
 * Controller access checker
 *
 * @author <NAME> <<EMAIL>>
 * @link http://inji.ru/
 * @copyright 2016 <NAME>
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
 */
$getFunction = function($element) {
    $access = null;
    $path = [
        'accessTree',
        $element->module->app->type,
        $element->name,
        $element->method
    ];
    if (isset($element->module->config['access'])) {
        $accesses = $element->module->config['access'];
        $access = $this->resolvePath($accesses, $path, '_access');
    }
    if (is_null($access) && isset($this->config['access'])) {
        $accesses = $this->config['access'];
        $access = $this->resolvePath($accesses, $path, '_access');
    }
    return $access;
};
return [
    'classes' => ['Controller'],
    'get' => $getFunction
];
<commit_msg>coding style<commit_after><?php

/**
 * Controller access checker
 *
 * @author <NAME> <<EMAIL>>
 * @link http://inji.ru/
 * @copyright 2016 <NAME>
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
 */
$getFunction = function ($element) {
    $access = null;
    $path = [
        'accessTree',
        $element->module->app->type,
        $element->name,
        $element->method
    ];
    if (isset($element->module->config['access'])) {
        $accesses = $element->module->config['access'];
        $access = $this->resolvePath($accesses, $path, '_access');
    }
    if (is_null($access) && isset($this->config['access'])) {
        $accesses = $this->config['access'];
        $access = $this->resolvePath($accesses, $path, '_access');
    }
    return $access;
};
return [
    'classes' => ['Controller'],
    'get' => $getFunction
];

{'fraction_non_alphanumeric': 0.20717592592592593, 'fraction_numerical': 0.004629629629629629, 'mean_word_length': 2.9930715935334873, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 41, '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': '2650357', 'n_tokens_mistral': 561, 'n_tokens_neox': 551, 'n_words': 96}