src/Partial/Source.php
protected function fetchLines(string $string, bool $cutIndents): array
    {
        if ($cutIndents) {
            $string = self::normalizeIndents($string, "");
        }

        $lines = explode("\n", self::normalizeEndings($string, false));

        //Pre-processing
        return array_map([$this, 'prepareLine'], $lines);
    }
protected function fetchLines(string $string, bool $cutIndents): array
    {
        if ($cutIndents) {
            $string = self::normalizeIndents($string, "");
        }

        $lines = explode("\n", self::normalizeEndings($string, false));

        //Pre-processing
        return array_map([$this, 'prepareLine'], $lines);
    }
protected function fetchLines ( string $ string , bool $ cutIndents ) : array { if ( $ cutIndents ) { $ string = self :: normalizeIndents ( $ string , "" ) ; } $ lines = explode ( "\n" , self :: normalizeEndings ( $ string , false ) ) ; //Pre-processing return array_map ( [ $ this , 'prepareLine' ] , $ lines ) ; }
Converts input string into set of lines.

@param string $string
@param bool   $cutIndents

@return array
Converts input string into set of lines .