Code Duplication    Length = 12-12 lines in 2 locations

src/Autodiscover.php 2 locations

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