src/Step/CreatePages.php
public function process()
    {
        $this->phpoole->setPages(new PageCollection());
        if (count($this->phpoole->getContent()) <= 0) {
            return;
        }
        call_user_func_array($this->phpoole->getMessageCb(), ['CREATE', 'Creating pages']);
        $max = count($this->phpoole->getContent());
        $count = 0;
        /* @var $file \Symfony\Component\Finder\SplFileInfo */
        foreach ($this->phpoole->getContent() as $file) {
            $count++;
            /* @var $page Page */
            $page = (new Page($file))->parse();
            $this->phpoole->getPages()->add($page);
            $message = $page->getPathname();
            call_user_func_array($this->phpoole->getMessageCb(), ['CREATE_PROGRESS', $message, $count, $max]);
        }
    }
public function process()
    {
        $this->phpoole->setPages(new PageCollection());
        if (count($this->phpoole->getContent()) <= 0) {
            return;
        }
        call_user_func_array($this->phpoole->getMessageCb(), ['CREATE', 'Creating pages']);
        $max = count($this->phpoole->getContent());
        $count = 0;
        /* @var $file \Symfony\Component\Finder\SplFileInfo */
        foreach ($this->phpoole->getContent() as $file) {
            $count++;
            /* @var $page Page */
            $page = (new Page($file))->parse();
            $this->phpoole->getPages()->add($page);
            $message = $page->getPathname();
            call_user_func_array($this->phpoole->getMessageCb(), ['CREATE_PROGRESS', $message, $count, $max]);
        }
    }
{@inheritdoc}