Skip to content

Commit

Permalink
updated code format
Browse files Browse the repository at this point in the history
  • Loading branch information
balajidharma committed Aug 1, 2024
1 parent ec36d7c commit 468117c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/MenuTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected function buildNestedItems($menuId, $includeDisabledItems = false, $che
*/
public function allNodes($menuId, $ignoreItemId = null, $includeDisabledItems = false)
{
$self = new static();
$self = new static;

if ($this->queryCallback instanceof \Closure) {
$self = call_user_func($this->queryCallback, $self);
Expand Down Expand Up @@ -254,7 +254,7 @@ public function allNodes($menuId, $ignoreItemId = null, $includeDisabledItems =
*/
public static function selectOptions($menuId, $ignoreItemId = null, $includeDisabledItems = false, ?\Closure $closure = null)
{
$options = (new static())->withQuery($closure)->buildSelectOptions($menuId, $ignoreItemId, $includeDisabledItems);
$options = (new static)->withQuery($closure)->buildSelectOptions($menuId, $ignoreItemId, $includeDisabledItems);

return collect($options)->all();
}
Expand Down

0 comments on commit 468117c

Please sign in to comment.