mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
src: whitespace and style sweesrc: whitespace and style sweepp
This commit is contained in:
parent
8842b092b5
commit
276f7bdb1c
@ -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];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user