<commit_before><?php 

namespace JVFlashMessenger;

class Module
{
    public function getServiceConfig() {
        return array(
	    'factories' => array(
	        'jv_flashmessenger' => function ($sm) {
		    $viewModel = $sm->get('view_manager');
		    $controller = $sm->get('ControllerPluginManager');
		    	
		    // Configurando variáveis
		    $flashMessenger = $controller->get('FlashMessenger');
		    
		    $viewModel = $viewModel->getViewModel();
		    $messages = $flashMessenger->getMessages();
		    
		    // Setando variáveis
		    $viewModel->setVariable('messages', $messages);
		    
		    return $viewModel;
		},
            )
        );
    }
}<commit_msg>Otimizando o código<commit_after><?php

namespace JVFlashMessenger;

class Module
{
	public function getServiceConfig() {
		return array(
			'factories' => array(
				'jv_flashmessenger' => function ($sm) {
					// Setando variáveis
					$viewModel = $sm->get('view_manager')->getViewModel();
					$controller = $sm->get('ControllerPluginManager');
					$flashMessenger = $controller->get('FlashMessenger');
					
					return $viewModel->setVariable('messages', $flashMessenger->getMessages());
	    		},
			)
		);
	}
}
{'fraction_non_alphanumeric': 0.145, 'fraction_numerical': 0.0, 'mean_word_length': 2.963696369636964, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6901958', 'n_tokens_mistral': 443, 'n_tokens_neox': 359, 'n_words': 61}