Code Duplication    Length = 12-12 lines in 2 locations

src/Autodiscover.php 2 locations

@@ 838-849 (lines=12) @@
835
     *   Minor server version.
836
     * @return string Server version.
837
     */
838
    protected function parseVersion2007($minorversion)
839
    {
840
        switch ($minorversion) {
841
            case 0:
842
                return Client::VERSION_2007;
843
            case 1:
844
            case 2:
845
            case 3:
846
                return Client::VERSION_2007_SP1;
847
            default:
848
                return Client::VERSION_2007;
849
        }
850
    }
851
852
    /**
@@ 859-870 (lines=12) @@
856
     *   Minor server version.
857
     * @return string Server version.
858
     */
859
    protected function parseVersion2010($minorversion)
860
    {
861
        switch ($minorversion) {
862
            case 0:
863
                return Client::VERSION_2010;
864
            case 1:
865
                return Client::VERSION_2010_SP1;
866
            case 2:
867
                return Client::VERSION_2010_SP2;
868
            default:
869
                return Client::VERSION_2010;
870
        }
871
    }
872
873
    /**