protected function processAutoSpan($fields)
    {
        $prevSpan = null;

        foreach ($fields as $field) {
            if (strtolower($field->span) === 'auto') {
                if ($prevSpan === 'left') {
                    $field->span = 'right';
                }
                else {
                    $field->span = 'left';
                }
            }

            $prevSpan = $field->span;
        }
    }
protected function processAutoSpan($fields)
    {
        $prevSpan = null;

        foreach ($fields as $field) {
            if (strtolower($field->span) === 'auto') {
                if ($prevSpan === 'left') {
                    $field->span = 'right';
                }
                else {
                    $field->span = 'left';
                }
            }

            $prevSpan = $field->span;
        }
    }
protected function processAutoSpan ( $ fields ) { $ prevSpan = null ; foreach ( $ fields as $ field ) { if ( strtolower ( $ field -> span ) === 'auto' ) { if ( $ prevSpan === 'left' ) { $ field -> span = 'right' ; } else { $ field -> span = 'left' ; } } $ prevSpan = $ field -> span ; } }
Converts fields with a span set to 'auto' as either
'left' or 'right' depending on the previous field.

@return void
Converts fields with a span set to auto as either left or right depending on the previous field .