Commit 83e26cc5 authored by Franco Fichtner's avatar Franco Fichtner

src: coding style and whitespace cleanups

parent f31a12bf
......@@ -86,7 +86,7 @@ $di->set('config', $config);
/**
* Setup router
*/
$di->set('router', function() {
$di->set('router', function () {
$router = new \Phalcon\Mvc\Router(false);
......@@ -102,9 +102,11 @@ $di->set('router', function() {
// probe registered modules and create a namespace map
// for example, OPNsense\Core will be mapped at http(s):\\host\core\..
// module names should be unique in the application, unless you want to overwrite functionality (check glob's sorting).
// module names should be unique in the application, unless you want to
// overwrite functionality (check glob's sorting).
//
// if the glob for probing the directories turns out to be too slow, we should consider some kind of caching here
// if the glob for probing the directories turns out to be too slow,
// we should consider some kind of caching here
//
$registered_modules = array();
$controller_dir = __DIR__."/../controllers/";
......
......@@ -44,5 +44,4 @@ class ControllerBase extends Controller
{
$this->view->setTemplateBefore('default');
}
}
......@@ -40,6 +40,4 @@ class IndexController extends \OPNsense\Base\ControllerBase
// $this->view->title = $this->request->getURI();
// $this->view->pick('OPNsense/Sample/index');
}
}
......@@ -37,6 +37,4 @@ class IndexController extends \OPNsense\Base\IndexController
{
$this->view->pick('OPNsense/Core/index');
}
}
......@@ -38,5 +38,4 @@ class IndexController extends \OPNsense\Base\IndexController
$this->view->title = $this->request->getURI();
$this->view->pick('OPNsense/Sample/index');
}
}
......@@ -64,5 +64,4 @@ class PageController extends ControllerBase
// "action" => "index"
// ));
}
}
......@@ -35,11 +35,9 @@ namespace OPNsense\Base;
abstract class BaseModel
{
public function __construct()
{
$class_info = new \ReflectionClass($this);
$class_info->getFileName();
}
}
......@@ -35,5 +35,4 @@ use OPNsense\Base\BaseModel;
class Sample extends BaseModel
{
public $title = "123456";
}
......@@ -4,4 +4,3 @@
{% for item in items %}
{{ partial('layout_partials/std_input_field',item) }}
{% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment