private function findChunks(array $lines)
    {
        $arrayChunks = Utilities::pregSplitArray(
            $lines,
            '/^@@ -(\d+,\d+)|(\d+) \+(\d+,\d+)|(\d+) @@(.*)$/'
        );
        foreach ($arrayChunks as $chunkLines) {
            $this->chunks[] = new DiffChunk($chunkLines);
        }
    }
private function findChunks(array $lines)
    {
        $arrayChunks = Utilities::pregSplitArray(
            $lines,
            '/^@@ -(\d+,\d+)|(\d+) \+(\d+,\d+)|(\d+) @@(.*)$/'
        );
        foreach ($arrayChunks as $chunkLines) {
            $this->chunks[] = new DiffChunk($chunkLines);
        }
    }
private function findChunks ( array $ lines ) { $ arrayChunks = Utilities :: pregSplitArray ( $ lines , '/^@@ -(\d+,\d+)|(\d+) \+(\d+,\d+)|(\d+) @@(.*)$/' ) ; foreach ( $ arrayChunks as $ chunkLines ) { $ this -> chunks [ ] = new DiffChunk ( $ chunkLines ) ; } }
Find the diff chunks

@param array $lines output lines for the diff

@throws \InvalidArgumentException
Find the diff chunks