Code Duplication    Length = 3-3 lines in 2 locations

src/Generator/Binary/FloatingTimeGenerator.php 1 location

@@ 78-80 (lines=3) @@
75
76
        $min_time_length = strlen(decbin($now));
77
78
        if ($time_length < $min_time_length - $time_offset) {
79
            throw new ArgumentRangeException(sprintf('Length of time for UID should be grate then or equal to "%d", got "%d" instead.', $min_time_length - $time_offset, $time_length));
80
        }
81
82
        $this->time_length = $time_length;
83
        $this->time_offset = $time_offset;

src/Generator/Binary/TimeBinaryGenerator.php 1 location

@@ 108-110 (lines=3) @@
105
106
        $min_time_length = strlen(decbin($now));
107
108
        if ($time_length < $min_time_length - $time_offset) {
109
            throw new ArgumentRangeException(sprintf('Length of time for UID should be grate then or equal to "%d", got "%d" instead.', $min_time_length - $time_offset, $time_length));
110
        }
111
112
        $this->time_length = $time_length;
113
        $this->time_offset = $time_offset;