<commit_before><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Mvc\Controller\Plugin;

use Zend\Http\PhpEnvironment\Response;
use Zend\View\Model\ViewModel;

/**
 * Create an HTTP view model representing a "not found" page
 */
class CreateHttpNotFoundModel extends AbstractPlugin
{
    /**
     * @param  Response $response
     * @return ViewModel
     */
    public function __invoke(Response $response)
    {
        $response->setStatusCode(404);

        return new ViewModel(
            array(
                'content' => 'Page not found',
            )
        );
    }
}<commit_msg>zendframework/zf2#6956 - minor CS fixes (removing unused multiline array declaration<commit_after><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Mvc\Controller\Plugin;

use Zend\Http\PhpEnvironment\Response;
use Zend\View\Model\ViewModel;

/**
 * Create an HTTP view model representing a "not found" page
 */
class CreateHttpNotFoundModel extends AbstractPlugin
{
    /**
     * @param  Response $response
     * @return ViewModel
     */
    public function __invoke(Response $response)
    {
        $response->setStatusCode(404);

        return new ViewModel(array('content' => 'Page not found'));
    }
}
{'fraction_non_alphanumeric': 0.1224373576309795, 'fraction_numerical': 0.01651480637813212, 'mean_word_length': 3.0483870967741935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5929793', 'n_tokens_mistral': 540, 'n_tokens_neox': 501, 'n_words': 132}