Skip to content

Commit

Permalink
Merge pull request #106 from jaesung2061/master
Browse files Browse the repository at this point in the history
Deprecate html builder
  • Loading branch information
kaidesu authored Sep 22, 2018
2 parents b3ab707 + 9e0fed0 commit e6e1b3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Builder
* @var array
*/
protected $items;

/**
* @var array
*/
Expand Down Expand Up @@ -324,7 +324,7 @@ protected function getUrl($options)
}

$secure = (isset($options['secure']) and $options['secure'] === true) ? true : false;

if ($prefix) {
$prefix = $prefix.'/';
}
Expand Down Expand Up @@ -508,6 +508,8 @@ public function guard()
/**
* Renders the menu as an unordered list.
*
* @deprecated
*
* @param array $attributes
* @return string
*/
Expand Down Expand Up @@ -582,7 +584,7 @@ public function __call($method, $args)
if (isset($item->data[$attribute]) && $item->data[$attribute] == $value) {
return true;
}

if (! property_exists($item, $attribute)) {
return false;
}
Expand Down
6 changes: 4 additions & 2 deletions src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public function add($title, $options = '')
/**
* Fetch the formatted attributes for the item in HTML.
*
* @deprecated
*
* @return string
*/
public function attributes()
Expand Down Expand Up @@ -333,7 +335,7 @@ public function checkActiveStatus()

list($path, $requestPath) = preg_replace('@^('.$base.')/@', '', [$path, $requestPath], 1);
}

if ($this->url() == Request::url() || $this->url() == \URL::secure(Request::path())) {
$this->activate();
}
Expand Down Expand Up @@ -370,7 +372,7 @@ public function active($pattern = null)

return $this;
}

/**
* Returns bool value if item is active or not.
*
Expand Down

0 comments on commit e6e1b3d

Please sign in to comment.