Commit 276f7bdb authored by Franco Fichtner's avatar Franco Fichtner

src: whitespace and style sweesrc: whitespace and style sweepp

parent 8842b092
......@@ -28,4 +28,3 @@
/sbin/ipfw -f flush
/sbin/ipfw -f pipe flush
/sbin/ipfw -f queue flush
......@@ -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,
......
......@@ -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];
}
......
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