Code Duplication    Length = 3-3 lines in 2 locations

src/Generator/Binary/FloatingTimeGenerator.php 1 location

@@ 66-68 (lines=3) @@
63
            throw new ZeroArgumentException(sprintf('Time offset should be grate then or equal to "0", got "%d" instead.', $time_length));
64
        }
65
66
        if ($time_length > 64 - 1) {
67
            throw new ArgumentRangeException(sprintf('Length of time and prefix for UID should be less than or equal to "%d", got "%d" instead.', 64 - 1, $time_length));
68
        }
69
70
        $now = (int) floor(microtime(true) * 1000);
71

src/Generator/Binary/TimeBinaryGenerator.php 1 location

@@ 96-98 (lines=3) @@
93
            throw new ZeroArgumentException(sprintf('Time offset should be grate then or equal to "0", got "%d" instead.', $time_offset));
94
        }
95
96
        if ($prefix_length + $time_length > 64 - 1) {
97
            throw new ArgumentRangeException(sprintf('Length of time and prefix for UID should be less than or equal to "%d", got "%d" instead.', 64 - 1, $prefix_length + $time_length));
98
        }
99
100
        $now = (int) floor(microtime(true) * 1000);
101