Jyxo\Svn\Result::parseUpdate PHP Method

parseUpdate() protected method

Parses update output.
protected parseUpdate ( mixed $input ) : array
$input mixed SVN binary output
return array
    protected function parseUpdate($input) : array
    {
        $array = explode("\n", (string) $input);
        foreach ($array as $key => &$line) {
            $line = trim($line);
            if (empty($line)) {
                unset($array[$key]);
                continue;
            }
            if (preg_match('/At revision ([0-9]+)\\./i', $line, $matches)) {
                $this->revision = (int) $matches[1];
                unset($array[$key]);
                continue;
            }
        }
        return $array;
    }