Code Duplication    Length = 5-5 lines in 2 locations

src/TreeHouse/Feeder/Modifier/Data/Transformer/EnumeratedStringToArrayTransformer.php 1 location

@@ 52-56 (lines=5) @@
49
            return $value;
50
        }
51
52
        if (!is_scalar($value)) {
53
            throw new TransformationFailedException(
54
                sprintf('Expected a scalar value to transform, got %s instead.', var_export($value, true))
55
            );
56
        }
57
58
        return array_map('trim', preg_split($this->regex, $value, null, PREG_SPLIT_NO_EMPTY));
59
    }

src/TreeHouse/Feeder/Modifier/Data/Transformer/StringToBooleanTransformer.php 1 location

@@ 74-78 (lines=5) @@
71
            return $value;
72
        }
73
74
        if (!is_scalar($value)) {
75
            throw new TransformationFailedException(
76
                sprintf('Expected a scalar value to transform, got %s instead.', var_export($value, true))
77
            );
78
        }
79
80
        if (trim($value) === '') {
81
            return null;