Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
3de32f52af
commit
25981afeef
@ -70,8 +70,8 @@ class MenuGenerator extends UrlGenerator {
|
|||||||
$parsed[$name] = [];
|
$parsed[$name] = [];
|
||||||
foreach ($menu['items'] as $path_name => $partial_path)
|
foreach ($menu['items'] as $path_name => $partial_path)
|
||||||
{
|
{
|
||||||
$title = (string) $this->string($path_name)->humanize()->titleize();
|
$title = (string)$this->string($path_name)->humanize()->titleize();
|
||||||
$parsed[$name][$title] = (string) $this->string($menu['route_prefix'])->append($partial_path);
|
$parsed[$name][$title] = (string)$this->string($menu['route_prefix'])->append($partial_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ class MenuGenerator extends UrlGenerator {
|
|||||||
|
|
||||||
$menu_config = $parsed_config[$menu];
|
$menu_config = $parsed_config[$menu];
|
||||||
|
|
||||||
foreach($menu_config as $title => $path)
|
foreach ($menu_config as $title => $path)
|
||||||
{
|
{
|
||||||
$selected = $this->string($path)->contains($this->path());
|
$selected = $this->string($path)->contains($this->path());
|
||||||
$link = $this->helper->a($this->url($path), $title);
|
$link = $this->helper->a($this->url($path), $title);
|
||||||
|
@ -74,7 +74,7 @@ class RoutingBase {
|
|||||||
->trimRight('/')
|
->trimRight('/')
|
||||||
->ensureLeft('/');
|
->ensureLeft('/');
|
||||||
|
|
||||||
return (string) $cleaned_path;
|
return (string)$cleaned_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -93,6 +93,7 @@ class ArrayType {
|
|||||||
/**
|
/**
|
||||||
* Does the passed key exist in the current array?
|
* Does the passed key exist in the current array?
|
||||||
*
|
*
|
||||||
|
* @param string $key
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function has_key($key)
|
public function has_key($key)
|
||||||
|
Loading…
Reference in New Issue
Block a user