Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Mar 29, 2015
1 parent c428bb7 commit 9cf1333
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions framework/Koch/Router/Manager.php
Expand Up @@ -29,7 +29,7 @@
*
* These are helper functions for the EventHandler,
* when adding or deleting routes coming from modules to the application.
*
*
* On Installation
* new routes are added via the method addRoutesOfModule($modulename).
* On Deinstallation
Expand Down Expand Up @@ -64,7 +64,6 @@ public function deleteRoutesOfModule($module)
//$this->deleteRoute($route_name);

// update / write merged content to application config

}

/**
Expand All @@ -78,9 +77,9 @@ public function deleteRoute($route_name)
$routesCount = count($this->routes);

// loop over all routes
for ($i == 0; $i < $routesCount; $i++) {
for ($i = 0; $i < $routesCount; $i++) {
// check if there is a route with the given name
if ($this->routes[$i]['name'] == $route_name) {
if ($this->routes[$i]['name'] === $route_name) {
// got one? then remove it from the routes array and stop
array_splice($this->routes, $i, 1);
break;
Expand All @@ -97,10 +96,10 @@ public function deleteRoute($route_name)
*/
public function updateApplicationRoutes($module = null)
{
$activatedModules = array();
$activatedModules = [];

if ($module === null) {
$activatedModules[] = array($module);
$activatedModules[] = [$module];
} else { // get all activated modules
// $activated_modules =
}
Expand Down

0 comments on commit 9cf1333

Please sign in to comment.