Code Duplication    Length = 12-12 lines in 2 locations

src/Autodiscover.php 2 locations

@@ 848-859 (lines=12) @@
845
     *   Minor server version.
846
     * @return string Server version.
847
     */
848
    protected function parseVersion2007($minorversion)
849
    {
850
        switch ($minorversion) {
851
            case 0:
852
                return Client::VERSION_2007;
853
            case 1:
854
            case 2:
855
            case 3:
856
                return Client::VERSION_2007_SP1;
857
            default:
858
                return Client::VERSION_2007;
859
        }
860
    }
861
862
    /**
@@ 869-880 (lines=12) @@
866
     *   Minor server version.
867
     * @return string Server version.
868
     */
869
    protected function parseVersion2010($minorversion)
870
    {
871
        switch ($minorversion) {
872
            case 0:
873
                return Client::VERSION_2010;
874
            case 1:
875
                return Client::VERSION_2010_SP1;
876
            case 2:
877
                return Client::VERSION_2010_SP2;
878
            default:
879
                return Client::VERSION_2010;
880
        }
881
    }
882
883
    /**