private function getLeftAlignedDescriptionIndent(array $items, $index)
    {
        if (self::ALIGN_LEFT !== $this->align) {
            return 0;
        }

        // Find last tagged line:
        $item = null;
        for (; $index >= 0; --$index) {
            $item = $items[$index];
            if (null !== $item['tag']) {
                break;
            }
        }

        // No last tag found — no indent:
        if (null === $item) {
            return 0;
        }

        // Indent according to existing values:
        return
            $this->getSentenceIndent($item['tag']) +
            $this->getSentenceIndent($item['hint']) +
            $this->getSentenceIndent($item['var']);
    }
private function getLeftAlignedDescriptionIndent(array $items, $index)
    {
        if (self::ALIGN_LEFT !== $this->align) {
            return 0;
        }

        
        $item = null;
        for (; $index >= 0; --$index) {
            $item = $items[$index];
            if (null !== $item['tag']) {
                break;
            }
        }

        
        if (null === $item) {
            return 0;
        }

        
        return
            $this->getSentenceIndent($item['tag']) +
            $this->getSentenceIndent($item['hint']) +
            $this->getSentenceIndent($item['var']);
    }
private function getLeftAlignedDescriptionIndent ( array $ items , $ index ) { if ( self :: ALIGN_LEFT !== $ this -> align ) { return 0 ; } // Find last tagged line: $ item = null ; for ( ; $ index >= 0 ; -- $ index ) { $ item = $ items [ $ index ] ; if ( null !== $ item [ 'tag' ] ) { break ; } } // No last tag found — no indent: if ( null === $ item ) { return 0 ; } // Indent according to existing values: return $ this -> getSentenceIndent ( $ item [ 'tag' ] ) + $ this -> getSentenceIndent ( $ item [ 'hint' ] ) + $ this -> getSentenceIndent ( $ item [ 'var' ] ) ; }
@param array[] $items
@param int     $index

@return int
@param array [] $items @param int $index