<?php

namespace BNETDocs\Controllers;

use \BNETDocs\Libraries\VersionInfo;
use \BNETDocs\Models\Legal as LegalModel;
use \CarlBennett\MVC\Libraries\Common;
use \CarlBennett\MVC\Libraries\Controller;
use \CarlBennett\MVC\Libraries\Router;
use \CarlBennett\MVC\Libraries\View;
use \DateTime;
use \DateTimeZone;

class Legal extends Controller {

  public function &run(Router &$router, View &$view, array &$args) {

    $model                  = new LegalModel();
    $model->license         = file_get_contents("../LICENSE.txt");
    $model->license_version = VersionInfo::$version->bnetdocs[3];
    $model->license_version = explode(' ', $model->license_version);

    $model->license_version[1] = new DateTime(
      $model->license_version[1], new DateTimeZone('Etc/UTC')
    );

    $view->render($model);

    $model->_responseCode = 200;
    $model->_responseHeaders["Content-Type"] = $view->getMimeType();
    $model->_responseTTL = 0;

    return $model;

  }

}

<?php

namespace BNETDocs\Controllers;

use \BNETDocs\Libraries\VersionInfo;
use \BNETDocs\Models\Legal as LegalModel;
use \CarlBennett\MVC\Libraries\Common;
use \CarlBennett\MVC\Libraries\Controller;
use \CarlBennett\MVC\Libraries\Router;
use \CarlBennett\MVC\Libraries\View;
use \DateTime;
use \DateTimeZone;

class Legal extends Controller {

  public function &run( Router &$router, View &$view, array &$args ) {

    $model                  = new LegalModel();
    $model->license         = file_get_contents( '../LICENSE.txt' );
    $model->license_version = VersionInfo::$version->bnetdocs[3];
    $model->license_version = explode( ' ', $model->license_version );

    $model->license_version[1] = new DateTime(
      $model->license_version[1], new DateTimeZone( 'Etc/UTC' )
    );

    $view->render( $model );

    $model->_responseCode = 200;
    $model->_responseHeaders[ 'Content-Type' ] = $view->getMimeType();
    $model->_responseTTL = 0;

    return $model;

  }

}

Improve readability of source file
Improve readability of source file
