private function determineMostCommonBaseAppPath($paths)
    {
        $paths = array_values($paths);

        $options = [];
        $options[] = Path::getLongestCommonBasePath($paths);
        if (isset($paths[1])) {
            $options[] = Path::getLongestCommonBasePath([$paths[0], $paths[1]]);
        }
        if (isset($paths[2])) {
            $options[] = Path::getLongestCommonBasePath([$paths[1], $paths[2]]);
            $options[] = Path::getLongestCommonBasePath([$paths[0], $paths[2]]);
        }
        rsort($options);

        return reset($options);
    }
private function determineMostCommonBaseAppPath($paths)
    {
        $paths = array_values($paths);

        $options = [];
        $options[] = Path::getLongestCommonBasePath($paths);
        if (isset($paths[1])) {
            $options[] = Path::getLongestCommonBasePath([$paths[0], $paths[1]]);
        }
        if (isset($paths[2])) {
            $options[] = Path::getLongestCommonBasePath([$paths[1], $paths[2]]);
            $options[] = Path::getLongestCommonBasePath([$paths[0], $paths[2]]);
        }
        rsort($options);

        return reset($options);
    }
private function determineMostCommonBaseAppPath ( $ paths ) { $ paths = array_values ( $ paths ) ; $ options = [ ] ; $ options [ ] = Path :: getLongestCommonBasePath ( $ paths ) ; if ( isset ( $ paths [ 1 ] ) ) { $ options [ ] = Path :: getLongestCommonBasePath ( [ $ paths [ 0 ] , $ paths [ 1 ] ] ) ; } if ( isset ( $ paths [ 2 ] ) ) { $ options [ ] = Path :: getLongestCommonBasePath ( [ $ paths [ 1 ] , $ paths [ 2 ] ] ) ; $ options [ ] = Path :: getLongestCommonBasePath ( [ $ paths [ 0 ] , $ paths [ 2 ] ] ) ; } rsort ( $ options ) ; return reset ( $ options ) ; }
Determine the most common app path.

@param string[] $paths

@return string
Determine the most common app path .