diff --git a/src/etc/rc.ipfw.flush_all b/src/etc/rc.ipfw.flush_all index 800004131..8e7b5c5dc 100755 --- a/src/etc/rc.ipfw.flush_all +++ b/src/etc/rc.ipfw.flush_all @@ -28,4 +28,3 @@ /sbin/ipfw -f flush /sbin/ipfw -f pipe flush /sbin/ipfw -f queue flush - diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/Routing.php b/src/opnsense/mvc/app/library/OPNsense/Core/Routing.php index 9f58655c8..853d34086 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Core/Routing.php +++ b/src/opnsense/mvc/app/library/OPNsense/Core/Routing.php @@ -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, diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php b/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php index f10af1909..219e1a401 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php @@ -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]; }