Return the next step

@param $step

@return null
329865
public static function nextStep($step)
    {
        $steps = self::getSteps();
        $key = self::getStepIndex($step) + 1;
        if (key_exists($key, $steps)) {
            return $steps[$key];
        } else {
            return null;
        }
    }
1149507
public function getPrevious($step = 1) {
      $position = ($this->position - $step);
      return isset($this->items[$position]) ? $this->items[$position] : null;
    }
492027
function(step, next) {
      if (step.options.data != null) {
        step.data = step.options.data;
      } else {
        step.data = {};
      }
      return next();
    }
734868
protected function getFormFor($step)
    {
        $baseform = $this->createForm();
        if ($this->trackEngine &&
                ($step == 4) &&
                (\MUtil_Bootstrap::enabled() !== true) &&
                ($baseform instanceof \MUtil_Form)) {
            $model = $this->getModel();
            $table = new \MUtil_Html_DivFormElement();
            $table->setAsFormLayout($baseform);

            $baseform->setAttrib('class', $this->class);

            $bridge = $model->getBridgeFor('form', $baseform);

            $this->_items = null;
            $this->initItems();

            $this->addFormElementsFor($bridge, $model, $step);

            return $baseform;
        } else {
            return parent::getFormFor($step);
        }
    }
77186
public function getPrevious(int $step = 1) : Token {
      $position = ($this->position - $step);
      return ($this->items[$position]) ?? new Token();
    }
1255771
protected function NextItem()
	{
		while (true)
		{
			if ( ! $this->accept)
			{
				if ( ! $this->MoveNextIter() )
					return null;
				$this->nav = $this->curr->CloneInstance();
				$this->curr->MoveToRoot();
			}
			$this->accept = $this->curr->MoveToFollowing( $this->kind, $this->nav );
			if ( $this->accept )
			{
				if ( $this->curr->isNodeAncestorOf( $this->nav ) ) continue;

				if ( $this->TestItem() )
				{
					$this->sequentialPosition++;
					return $this->curr;
				}
			}
		}
	}
1110438
public function getNext()
    {
        $idList = $this->getIds();
        if (false === ($taskId = current($idList))) {
            return null;
        }

        return $this->getTask($taskId);
    }
228654
protected function scanStep()
    {
        if (!$this->allowSteps) {
            return null;
        }

        $keywords = $this->getKeywords('Step');
        if (!preg_match('/^\s*(' . $keywords . ')([^\s].+)/u', $this->line, $matches)) {
            return null;
        }

        $keyword = trim($matches[1]);
        $token = $this->takeToken('Step', $keyword);
        $token['keyword_type'] = $this->getStepKeywordType($keyword);
        $token['text'] = $matches[2];

        $this->consumeLine();
        $this->allowMultilineArguments = true;

        return $token;
    }
29116
public function setStep(string $step)
    {
        $this->doSetStep($step);
        $this->getTag()->setAttribute('step', $step);

        return $this;
    }
532090
public function moveNext()
    {
        $this->peek = 0;
        $this->token = $this->next;
        $this->next = isset($this->tokens[++$this->i]) ? $this->tokens[$this->i] : null;

        return null !== $this->next;
    }
1364555
function previousStep( $step )
    {
        if ( is_string( $step ) ){
            foreach ( $this->StepTable as $key => $tableStep )
            {
                if ( $step == $tableStep['class'] )
                {
                    return $this->StepTable[--$key];
                }
            }
        }
        else
        {
            foreach ( $this->StepTable as $key => $tableStep )
            {
                if ( $step['class'] == $tableStep['class'] )
                {
                    return $this->StepTable[--$key];
                }
            }
        }
        $retValue = null;
        return $retValue;
    }
2371
public function increment($key, $steps = 1)
    {
        $previous = $this->has($key) ? $this->get($key) : 0;
        $previous += $steps;
        $this->put($key, $previous);

        return $previous;
    }
1067280
public function next()
    {
        $this->peek = 0;
        if (isset($this->tokens[$this->current])) {
            return $this->tokens[$this->current++];
        }
    }
605411
def get_next_step(self):
        
        if self.rbHazLayerFromCanvas.isChecked():
            new_step = self.parent.step_fc_hazlayer_from_canvas
        else:
            new_step = self.parent.step_fc_hazlayer_from_browser
        return new_step
1067664
private function serializeUserProgression(Step $step)
    {
        $user = $this->tokenStorage->getToken()->getUser();
        $userProgression = 'anon.' !== $user ?
            $this->userProgressionRepo->findOneBy(['step' => $step, 'user' => $user]) :
            null;
        $data = [
            'status' => empty($userProgression) ? 'unseen' : $userProgression->getStatus(),
        ];

        return $data;
    }
1362456
public function getNextStep()
    {
        $nextSteps = $this->config()->get('next_steps');

        // Check if next_steps have been implemented properly if not the final step
        if (!$this->isFinalStep()) {
            if (!isset($nextSteps)) {
                user_error(
                    'MultiFormStep->getNextStep(): Please define at least one $next_steps on '
                    . static::class,
                    E_USER_ERROR
                );
            }
        }

        if (is_string($nextSteps)) {
            return $nextSteps;
        } elseif (is_array($nextSteps) && count($nextSteps)) {
            // custom flow control goes here
            return $nextSteps[0];
        } else {
            return false;
        }
    }
1038006
protected function validateStep($step)
    {
        $stepGroups = [
            'information' => ['ekyna_cart_index',        ['Default', 'Cart']],
            'shipment'    => ['ekyna_cart_informations', ['Default', 'Cart', 'Information']],
            'payment'     => ['ekyna_cart_shipment',     ['Default', 'Cart', 'Information', 'Shipment']],
        ];
        if (!array_key_exists($step, $stepGroups)) {
            throw new \InvalidArgumentException(sprintf('Undefined step "%s".', $step));
        }

        $cart = $this->getCart();
        $errorList = $this->get('validator')->validate($cart, $stepGroups[$step][1]);
        if (0 != $errorList->count()) {
            return $this->redirect($this->generateUrl($stepGroups[$step][0]));
        }

        return null;
    }