Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
30f18106cb
commit
d63d33d245
@ -80,7 +80,7 @@ class Controller {
|
|||||||
*/
|
*/
|
||||||
public function redirect_to_default()
|
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);
|
$this->redirect($this->urlGenerator->default_url($default_type), 303);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class UrlGenerator extends RoutingBase {
|
|||||||
$path_segments = explode('/', $path);
|
$path_segments = explode('/', $path);
|
||||||
$segments = $this->segments();
|
$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))
|
if ( ! array_key_exists($i + 1, $segments))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user