Merge pull request #7 from timw4mail/scrutinizer-patch-1

Scrutinizer Auto-Fixes
This commit is contained in:
Timothy Warren 2015-11-04 16:33:18 -05:00
commit 9b38242f9d
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class Controller {
*/
public function redirect_to_default()
{
$default_type = $this->config->get(['routing','default_list']);
$default_type = $this->config->get(['routing', 'default_list']);
$this->redirect($this->urlGenerator->default_url($default_type), 303);
}

View File

@ -76,7 +76,7 @@ class UrlGenerator extends RoutingBase {
$path_segments = explode('/', $path);
$segments = $this->segments();
for($i=0; $i<count($path_segments); $i++)
for ($i = 0; $i < count($path_segments); $i++)
{
if ( ! array_key_exists($i + 1, $segments))
{