Code Duplication    Length = 9-10 lines in 6 locations

src/MetadataV3/edmx/TEntityTypeShapeType.php 2 locations

@@ 145-153 (lines=9) @@
142
     * @param float $width
143
     * @return self
144
     */
145
    public function setWidth($width)
146
    {
147
        if (null != $width && (!is_numeric($width) || 0 >= $width)) {
148
            $msg = "Width value must be numeric and positive";
149
            throw new \InvalidArgumentException($msg);
150
        }
151
        $this->width = $width;
152
        return $this;
153
    }
154
155
    /**
156
     * Gets as height
@@ 171-179 (lines=9) @@
168
     * @param float $height
169
     * @return self
170
     */
171
    public function setHeight($height)
172
    {
173
        if (null != $height && (!is_numeric($height) || 0 >= $height)) {
174
            $msg = "Height value must be numeric and positive";
175
            throw new \InvalidArgumentException($msg);
176
        }
177
        $this->height = $height;
178
        return $this;
179
    }
180
181
    /**
182
     * Gets as isExpanded

src/MetadataV3/edm/ssdl/TEntityPropertyType.php 2 locations

@@ 253-261 (lines=9) @@
250
     * @param integer $precision
251
     * @return self
252
     */
253
    public function setPrecision($precision)
254
    {
255
        if (null != $precision && !(is_numeric($precision) && 0 < $precision)) {
256
            $msg = "Precision must be positive and numeric";
257
            throw new \InvalidArgumentException($msg);
258
        }
259
        $this->precision = $precision;
260
        return $this;
261
    }
262
263
    /**
264
     * Gets as scale
@@ 279-287 (lines=9) @@
276
     * @param integer $scale
277
     * @return self
278
     */
279
    public function setScale($scale)
280
    {
281
        if (null != $scale && !(is_numeric($scale) && 0 < $scale)) {
282
            $msg = "Scale must be positive and numeric";
283
            throw new \InvalidArgumentException($msg);
284
        }
285
        $this->scale = $scale;
286
        return $this;
287
    }
288
289
    /**
290
     * Gets as unicode

src/MetadataV3/edm/ssdl/TPropertyType.php 2 locations

@@ 249-258 (lines=10) @@
246
     * @param integer $precision
247
     * @return self
248
     */
249
    public function setPrecision($precision)
250
    {
251
        $msg = null;
252
        if (null != $precision && !(is_numeric($precision) && 0 <= $precision)) {
253
            $msg = "Precision must be numeric and non-negative";
254
            throw new \InvalidArgumentException($msg);
255
        }
256
        $this->precision = $precision;
257
        return $this;
258
    }
259
260
    /**
261
     * Gets as scale
@@ 276-285 (lines=10) @@
273
     * @param integer $scale
274
     * @return self
275
     */
276
    public function setScale($scale)
277
    {
278
        $msg = null;
279
        if (null != $scale && !(is_numeric($scale) && 0 <= $scale)) {
280
            $msg = "Scale must be numeric and non-negative";
281
            throw new \InvalidArgumentException($msg);
282
        }
283
        $this->scale = $scale;
284
        return $this;
285
    }
286
287
    /**
288
     * Gets as unicode