src: coding style and whitespace cleanups

This commit is contained in:
Franco Fichtner 2015-01-24 12:36:22 +01:00
parent f31a12bf6a
commit 83e26cc536
16 changed files with 15 additions and 24 deletions

View File

@ -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/";

View File

@ -44,5 +44,4 @@ class ControllerBase extends Controller
{
$this->view->setTemplateBefore('default');
}
}

View File

@ -40,6 +40,4 @@ class IndexController extends \OPNsense\Base\ControllerBase
// $this->view->title = $this->request->getURI();
// $this->view->pick('OPNsense/Sample/index');
}
}

View File

@ -37,6 +37,4 @@ class IndexController extends \OPNsense\Base\IndexController
{
$this->view->pick('OPNsense/Core/index');
}
}

View File

@ -38,5 +38,4 @@ class IndexController extends \OPNsense\Base\IndexController
$this->view->title = $this->request->getURI();
$this->view->pick('OPNsense/Sample/index');
}
}
}

View File

@ -64,5 +64,4 @@ class PageController extends ControllerBase
// "action" => "index"
// ));
}
}

View File

@ -35,11 +35,9 @@ namespace OPNsense\Base;
abstract class BaseModel
{
public function __construct()
{
$class_info = new \ReflectionClass($this);
$class_info->getFileName();
}
}
}

View File

@ -35,5 +35,4 @@ use OPNsense\Base\BaseModel;
class Sample extends BaseModel
{
public $title = "123456";
}
}

View File

@ -1 +1 @@
Core index
Core index

View File

@ -4,4 +4,3 @@
{% for item in items %}
{{ partial('layout_partials/std_input_field',item) }}
{% endfor %}

View File

@ -83,7 +83,7 @@ $pagetitle = gentitle( $pgtitle );
jQuery(function () {
jQuery('[data-toggle="tooltip"]').tooltip()
jQuery('[data-toggle="tooltip"]').tooltip()
})
//]]>
</script>

View File

@ -180,7 +180,7 @@ function update_description() {
<br />
<?=gettext("Hold down CTRL (pc)/COMMAND (mac) key to select multiple items");?>
</td>
<script type="text/javascript">
//<![CDATA[
function selectAll() {

View File

@ -118,7 +118,7 @@ include("head.inc");
<td class="vtable">
<input id='pfsyncenabled' type='checkbox' name='pfsyncenabled' value='on' <?php if ($pconfig['pfsyncenabled'] === "on") echo "checked='checked'"; ?> />
pfsync transfers state insertion, update, and deletion messages between firewalls.<br/>
Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol <a href="http://www.openbsd.org/faq/pf/carp.html" target="_blank">(IP Protocol 240)</a>.
Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol <a href="http://www.openbsd.org/faq/pf/carp.html" target="_blank">(IP Protocol 240)</a>.
<br/>It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.
<br/>This setting should be enabled on all members of a failover group.
<div class="well well-sm" ><b>Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)</b></div>

View File

@ -1,7 +1,7 @@
/*
* Translated default messages for bootstrap-select.
* Locale: EU (Basque)
* Region:
* Region:
*/
(function ($) {
$.fn.selectpicker.defaults = {

View File

@ -1,7 +1,7 @@
/*
* Translated default messages for bootstrap-select.
* Locale: EU (Basque)
* Region:
* Region:
*/
(function ($) {
$.fn.selectpicker.defaults = {

View File

@ -254,4 +254,4 @@
height: 100% !important;
opacity: 0;
}
/*# sourceMappingURL=bootstrap-select.css.map */
/*# sourceMappingURL=bootstrap-select.css.map */