src/Behat/Behat/Output/Node/Printer/Helper/WidthCalculator.php
public function calculateScenarioWidth(Scenario $scenario, $indentation, $subIndentation)
    {
        $length = $this->calculateScenarioHeaderWidth($scenario, $indentation);

        foreach ($scenario->getSteps() as $step) {
            $stepLength = $this->calculateStepWidth($step, $indentation + $subIndentation);
            $length = max($length, $stepLength);
        }

        return $length;
    }
public function calculateScenarioWidth(Scenario $scenario, $indentation, $subIndentation)
    {
        $length = $this->calculateScenarioHeaderWidth($scenario, $indentation);

        foreach ($scenario->getSteps() as $step) {
            $stepLength = $this->calculateStepWidth($step, $indentation + $subIndentation);
            $length = max($length, $stepLength);
        }

        return $length;
    }
public function calculateScenarioWidth ( Scenario $ scenario , $ indentation , $ subIndentation ) { $ length = $ this -> calculateScenarioHeaderWidth ( $ scenario , $ indentation ) ; foreach ( $ scenario -> getSteps ( ) as $ step ) { $ stepLength = $ this -> calculateStepWidth ( $ step , $ indentation + $ subIndentation ) ; $ length = max ( $ length , $ stepLength ) ; } return $ length ; }
Calculates scenario width.

@param Scenario $scenario
@param integer  $indentation
@param integer  $subIndentation

@return integer
Calculates scenario width .