Commit 1bb23b3b authored by Franco Fichtner's avatar Franco Fichtner

mvc: latest style nitpick additions

parent 86b971e1
......@@ -73,7 +73,7 @@ $di->set('config', $config);
/**
* Setup router
*/
$di->set('router', function() {
$di->set('router', function () {
$router = new \Phalcon\Mvc\Router(false);
......
......@@ -169,7 +169,7 @@ class Config extends Singleton
$node = $this->simplexml ;
// invalidate object on warnings/errors (prevent save from happening)
set_error_handler(
function() {
function () {
$this->statusIsValid = false;
}
);
......@@ -293,7 +293,7 @@ class Config extends Singleton
}
set_error_handler(
function() {
function () {
// reset simplexml pointer on parse error.
$this->simplexml = null ;
}
......
......@@ -730,8 +730,7 @@ class CPClient
}
}
unset ($acc_list);
unset($acc_list);
}
/**
......
......@@ -95,7 +95,7 @@ class IDS extends BaseModel
foreach ($this->rules->rule->__items as $NodeKey => $NodeValue) {
if ((string)$NodeValue->sid == $sid) {
$this->rules->rule->Del($NodeKey);
unset ($this->sid_list[$sid]);
unset($this->sid_list[$sid]);
break;
}
}
......
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