Code Duplication    Length = 4-4 lines in 2 locations

src/MetadataV3/edmx/TDataServicesType.php 2 locations

@@ 28-31 (lines=4) @@
25
26
    public function __construct($maxDataServiceVersion = '3.0', $dataServiceVersion = '3.0')
27
    {
28
        if ('3.0' == $this->maxDataServiceVersion && '4.0' == $this->dataServiceVersion) {
29
            $msg = "Data service version cannot be greater than maximum service version";
30
            throw new \InvalidArgumentException($msg);
31
        }
32
        $this->setDataServiceVersion($dataServiceVersion);
33
        $this->setMaxDataServiceVersion($maxDataServiceVersion);
34
    }
@@ 168-171 (lines=4) @@
165
            $msg = "Data service version must be 1.0, 2.0, 3.0 or 4.0";
166
            return false;
167
        }
168
        if ('3.0' == $this->maxDataServiceVersion && '4.0' == $this->dataServiceVersion) {
169
            $msg = "Data service version cannot be greater than maximum service version";
170
            return false;
171
        }
172
173
        if (!$this->isValidArrayOK($this->schema, '\AlgoWeb\ODataMetadata\MetadataV3\edm\Schema', $msg, 1)) {
174
            return false;