src/Behat/Behat/Output/Node/Printer/Helper/WidthCalculator.php
public function calculateStepWidth(StepNode $step, $indentation)
    {
        $indentText = str_repeat(' ', intval($indentation));

        $text = sprintf('%s%s %s', $indentText, $step->getKeyword(), $step->getText());

        return mb_strlen($text, 'utf8');
    }
public function calculateStepWidth(StepNode $step, $indentation)
    {
        $indentText = str_repeat(' ', intval($indentation));

        $text = sprintf('%s%s %s', $indentText, $step->getKeyword(), $step->getText());

        return mb_strlen($text, 'utf8');
    }
public function calculateStepWidth ( StepNode $ step , $ indentation ) { $ indentText = str_repeat ( ' ' , intval ( $ indentation ) ) ; $ text = sprintf ( '%s%s %s' , $ indentText , $ step -> getKeyword ( ) , $ step -> getText ( ) ) ; return mb_strlen ( $ text , 'utf8' ) ; }
Calculates step width.

@param StepNode $step
@param integer  $indentation

@return integer
Calculates step width .