fix devops error
This commit is contained in:
@@ -6,12 +6,6 @@ use Lavary\Menu\Item as LavaryMenuItem;
|
||||
|
||||
class Item extends LavaryMenuItem
|
||||
{
|
||||
/**
|
||||
* Set the item icon using font-awesome.
|
||||
*
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function icon($icon)
|
||||
{
|
||||
$this->prepend(sprintf('<i class="%s"></i>', $icon));
|
||||
@@ -19,12 +13,6 @@ class Item extends LavaryMenuItem
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the item order.
|
||||
*
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function order($order)
|
||||
{
|
||||
$this->data('order', $order);
|
||||
@@ -32,15 +20,9 @@ class Item extends LavaryMenuItem
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make the item active.
|
||||
*
|
||||
* @param string|array $routes
|
||||
* @return self
|
||||
*/
|
||||
public function activeIfRoute($routes = null)
|
||||
{
|
||||
if (! empty($routes)) {
|
||||
if ($routes) {
|
||||
if (is_string($routes)) {
|
||||
$routes = [$routes];
|
||||
}
|
||||
@@ -56,7 +38,6 @@ class Item extends LavaryMenuItem
|
||||
$this->title = str_replace('fa-circle-o', 'fa-dot-circle-o', $this->title);
|
||||
}
|
||||
|
||||
// dump($this);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user