Code Duplication    Length = 3-3 lines in 2 locations

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

src/Generator/Binary/FloatingTimeGenerator.php 1 location

@@ 71-73 (lines=3) @@
68
            throw new ZeroArgumentException(sprintf('Time offset should be grate then or equal to "0", got "%d" instead.', $time_length));
69
        }
70
71
        if ($time_length > 64 - 1) {
72
            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));
73
        }
74
75
        $now = (int) floor(microtime(true) * 1000);
76