Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
salahhusa9 authored and github-actions[bot] committed Sep 10, 2024
1 parent 50b2778 commit 00b5df5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function new(
*/
public function addSubmenu($callback)
{
$menu = new Menu();
$menu = new Menu;
$callback($menu);
$this->submenu = $menu->getMenu();

Expand Down Expand Up @@ -292,7 +292,7 @@ public function getClass()
*/
public function getSubmenu()
{
$menu = new Menu();
$menu = new Menu;
$menu->setIsSubmenu();
$menu->setMenu($this->submenu);

Expand Down
8 changes: 4 additions & 4 deletions src/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function setMenu(array $menu)
*/
public function make($for, $callback)
{
$menu = new Menu();
$menu = new Menu;
$callback($menu);
$this->menu[$for] = $menu;

Expand All @@ -123,7 +123,7 @@ public function add(
$routeName = null,
$options = [],
) {
$item = new Item();
$item = new Item;
$item->new(
$name,
$routeName,
Expand Down Expand Up @@ -154,7 +154,7 @@ public function addItem(
$routeName = null,
$options = [],
) {
$item = new Item();
$item = new Item;
$item->new(
$name,
$routeName,
Expand All @@ -181,7 +181,7 @@ public function addItem(
*/
public function addSubmenu($name, $callback, $options = [])
{
$item = new Item();
$item = new Item;
$item->new(
$name,
null,
Expand Down

0 comments on commit 00b5df5

Please sign in to comment.