private function parseDu($duOutput, array $mountPaths)
    {
        $mountSizes = [];
        $duOutputSplit = explode("\n", $duOutput, count($mountPaths));
        foreach ($mountPaths as $i => $mountPath) {
            if (!isset($duOutputSplit[$i])) {
                throw new \RuntimeException("Failed to find row $i of 'du' command output: \n" . $duOutput);
            }
            list($mountSizes[$mountPath],) = explode("\t", $duOutputSplit[$i], 2);
        }

        return $mountSizes;
    }
private function parseDu($duOutput, array $mountPaths)
    {
        $mountSizes = [];
        $duOutputSplit = explode("\n", $duOutput, count($mountPaths));
        foreach ($mountPaths as $i => $mountPath) {
            if (!isset($duOutputSplit[$i])) {
                throw new \RuntimeException("Failed to find row $i of 'du' command output: \n" . $duOutput);
            }
            list($mountSizes[$mountPath],) = explode("\t", $duOutputSplit[$i], 2);
        }

        return $mountSizes;
    }
private function parseDu ( $ duOutput , array $ mountPaths ) { $ mountSizes = [ ] ; $ duOutputSplit = explode ( "\n" , $ duOutput , count ( $ mountPaths ) ) ; foreach ( $ mountPaths as $ i => $ mountPath ) { if ( ! isset ( $ duOutputSplit [ $ i ] ) ) { throw new \ RuntimeException ( "Failed to find row $i of 'du' command output: \n" . $ duOutput ) ; } list ( $ mountSizes [ $ mountPath ] , ) = explode ( "\t" , $ duOutputSplit [ $ i ] , 2 ) ; } return $ mountSizes ; }
Parse the 'du' output.

@param string $duOutput
@param array  $mountPaths

@return array A list of mount sizes (in bytes) keyed by mount path.
Parse the du output .