Code Duplication    Length = 10-10 lines in 2 locations

src/MetadataV3/edm/Groups/TFacetAttributesTrait.php 1 location

@@ 250-259 (lines=10) @@
247
     * @param boolean $unicode
248
     * @return self
249
     */
250
    public function setUnicode($unicode)
251
    {
252
        $msg = null;
253
        if (null != $unicode && !$this->isTIsUnicodeFacetTraitValid($unicode)) {
254
            $msg = "Unicode must be a valid TUnicodeFacet";
255
            throw new \InvalidArgumentException($msg);
256
        }
257
        $this->unicode = $unicode;
258
        return $this;
259
    }
260
261
    /**
262
     * Gets as collation

src/MetadataV3/edm/Groups/TCommonPropertyAttributesTrait.php 1 location

@@ 338-347 (lines=10) @@
335
     * @param boolean $unicode
336
     * @return self
337
     */
338
    public function setUnicode($unicode)
339
    {
340
        $msg = null;
341
        if (null != $unicode && !$this->isTIsUnicodeFacetTraitValid($unicode)) {
342
            $msg = "Unicode must be a valid TUnicodeFacet";
343
            throw new \InvalidArgumentException($msg);
344
        }
345
        $this->unicode = boolval($unicode);
346
        return $this;
347
    }
348
349
    /**
350
     * Gets as collation