src/InputController/ControllerRoute.php
protected static function mergeRoutes(&$routes, $added) {
		// First level (only) is merged
		foreach( $added as $type => $typeRoutes ) {
			if( isset($routes[$type]) ) {
				$routes[$type] = array_merge($typeRoutes, $routes[$type]);
			} else {
				$routes[$type] = $typeRoutes;
			}
		}
	}
protected static function mergeRoutes(&$routes, $added) {
		// First level (only) is merged
		foreach( $added as $type => $typeRoutes ) {
			if( isset($routes[$type]) ) {
				$routes[$type] = array_merge($typeRoutes, $routes[$type]);
			} else {
				$routes[$type] = $typeRoutes;
			}
		}
	}
protected static function mergeRoutes ( & $ routes , $ added ) { // First level (only) is merged foreach ( $ added as $ type => $ typeRoutes ) { if ( isset ( $ routes [ $ type ] ) ) { $ routes [ $ type ] = array_merge ( $ typeRoutes , $ routes [ $ type ] ) ; } else { $ routes [ $ type ] = $ typeRoutes ; } } }
Merge routes array with routes' logic

@param array $routes
@param array $added
Merge routes array with routes logic