Code Duplication    Length = 7-7 lines in 2 locations

src/MetadataV3/edm/IsOKTraits/TMultiplicityTrait.php 1 location

@@ 7-13 (lines=7) @@
4
5
trait TMultiplicityModeTrait
6
{
7
    public function isTMultiplicityValid($string)
8
    {
9
        if (!is_string($string)) {
10
            throw new \InvalidArgumentException("Input must be a string");
11
        }
12
        return '0..1' == $string || '1' == $string || '*' == $string;
13
    }
14
}
15

src/MetadataV3/edm/IsOKTraits/TParameterModeTrait.php 1 location

@@ 7-13 (lines=7) @@
4
5
trait TParameterModeTrait
6
{
7
    public function isTParameterModeValid($string)
8
    {
9
        if (!is_string($string)) {
10
            throw new \InvalidArgumentException("Input must be a string");
11
        }
12
        return 'In' == $string || 'Out' == $string || 'InOut' == $string;
13
    }
14
}
15