Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Fix $count notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Aug 23, 2018
1 parent e7153fc commit eb7d28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Step/GenerateMenus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class GenerateMenus extends AbstractStep
public function internalProcess()
{
call_user_func_array($this->phpoole->getMessageCb(), ['MENU', 'Generating menus']);
$count = 0;
$this->phpoole->setMenus(new MenusCollection());
$this->collectPages();

Expand All @@ -42,7 +43,6 @@ public function internalProcess()
* ]]
*/
if (!empty($this->phpoole->getConfig()->get('site.menu'))) {
$count = 0;
foreach ($this->phpoole->getConfig()->get('site.menu') as $name => $entry) {
/* @var $menu \PHPoole\Collection\Menu\Menu */
$menu = $this->phpoole->getMenus()->get($name);
Expand Down

0 comments on commit eb7d28f

Please sign in to comment.