src: whitespace and style sweesrc: whitespace and style sweepp

This commit is contained in:
Franco Fichtner 2016-12-11 17:17:32 +01:00
parent 8842b092b5
commit 276f7bdb1c
3 changed files with 3 additions and 4 deletions

View File

@ -28,4 +28,3 @@
/sbin/ipfw -f flush
/sbin/ipfw -f pipe flush
/sbin/ipfw -f queue flush

View File

@ -73,7 +73,7 @@ class Routing
$this->router->add('/', array("controller" => 'index',"action" => 'index'));
$this->type = $type;
switch ($this->type){
switch ($this->type) {
case "ui":
$this->router->setDefaultNamespace('OPNsense\Core');
break;
@ -152,7 +152,7 @@ class Routing
foreach ($module_configs as $module_config) {
foreach (glob($module_config['path']."/*.php") as $filename) {
// extract controller name and bind static in routing table
$controller = strtolower(str_replace('Controller.php','', basename($filename)));
$controller = strtolower(str_replace('Controller.php', '', basename($filename)));
$this->router->add("/{$module_name}/{$controller}/:action/", array(
"namespace" => $module_config['namespace'],
"controller" => $controller,

View File

@ -128,7 +128,7 @@ abstract class BaseModel
// class found, but of wrong type. raise an exception.
throw new ModelException("class ".$field_rfcls->name." of wrong type in model definition");
}
self::$internalCacheReflectionClasses[$classname] = $field_rfcls ;
self::$internalCacheReflectionClasses[$classname] = $field_rfcls;
}
return self::$internalCacheReflectionClasses[$classname];
}