Code Duplication    Length = 8-8 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Types/IncrementType.php 2 locations

@@ 30-37 (lines=8) @@
27
 */
28
class IncrementType extends Type
29
{
30
    public function convertToDatabaseValue($value)
31
    {
32
        @trigger_error(
33
            'Increment type was deprecated in version 1.1 - use int or float with increment storage strategy instead.',
34
            E_USER_DEPRECATED
35
        );
36
        return $value !== null ? (is_float($value) ? (float) $value : (int) $value) : null;
37
    }
38
39
    public function convertToPHPValue($value)
40
    {
@@ 39-46 (lines=8) @@
36
        return $value !== null ? (is_float($value) ? (float) $value : (int) $value) : null;
37
    }
38
39
    public function convertToPHPValue($value)
40
    {
41
        @trigger_error(
42
            'Increment type was deprecated in version 1.1 - use int or float with increment storage strategy instead.',
43
            E_USER_DEPRECATED
44
        );
45
        return $value !== null ? (is_float($value) ? (float) $value : (int) $value) : null;
46
    }
47
48
    public function closureToMongo()
49
    {