public function parseGitAttributesLine($line)
    {
        $parts = preg_split('#\s+#', $line);

        if (count($parts) != 2) {
            return null;
        }

        if ($parts[1] === 'export-ignore') {
            return $this->generatePattern($parts[0]);
        }
    }
public function parseGitAttributesLine($line)
    {
        $parts = preg_split('#\s+#', $line);

        if (count($parts) != 2) {
            return null;
        }

        if ($parts[1] === 'export-ignore') {
            return $this->generatePattern($parts[0]);
        }
    }
public function parseGitAttributesLine ( $ line ) { $ parts = preg_split ( '#\s+#' , $ line ) ; if ( count ( $ parts ) != 2 ) { return null ; } if ( $ parts [ 1 ] === 'export-ignore' ) { return $ this -> generatePattern ( $ parts [ 0 ] ) ; } }
Callback parser which finds export-ignore rules in git attribute lines

@param string $line A line from .gitattributes

@return array An exclude pattern for filter()
Callback parser which finds export - ignore rules in git attribute lines