Code Duplication    Length = 4-4 lines in 4 locations

src/Generator/ByteNumberGenerator.php 4 locations

@@ 121-124 (lines=4) @@
118
                $bytes = unpack('n', $this->byteGenerator->getBytes(2));
119
                return $bytes[1];
120
            },
121
            3 => function () {
122
                $bytes = unpack('Ca/nb', $this->byteGenerator->getBytes(3));
123
                return $bytes['a'] << 16 | $bytes['b'];
124
            },
125
            4 => function () {
126
                $bytes = unpack('N', $this->byteGenerator->getBytes(4));
127
                return $bytes[1];
@@ 129-132 (lines=4) @@
126
                $bytes = unpack('N', $this->byteGenerator->getBytes(4));
127
                return $bytes[1];
128
            },
129
            5 => function () {
130
                $bytes = unpack('Ca/Nb', $this->byteGenerator->getBytes(5));
131
                return $bytes['a'] << 32 | $bytes['b'];
132
            },
133
            6 => function () {
134
                $bytes = unpack('na/Nb', $this->byteGenerator->getBytes(6));
135
                return $bytes['a'] << 32 | $bytes['b'];
@@ 133-136 (lines=4) @@
130
                $bytes = unpack('Ca/Nb', $this->byteGenerator->getBytes(5));
131
                return $bytes['a'] << 32 | $bytes['b'];
132
            },
133
            6 => function () {
134
                $bytes = unpack('na/Nb', $this->byteGenerator->getBytes(6));
135
                return $bytes['a'] << 32 | $bytes['b'];
136
            },
137
            7 => function () {
138
                $bytes = unpack('Ca/nb/Nc', $this->byteGenerator->getBytes(7));
139
                return $bytes['a'] << 48 | $bytes['b'] << 32 | $bytes['c'];
@@ 137-140 (lines=4) @@
134
                $bytes = unpack('na/Nb', $this->byteGenerator->getBytes(6));
135
                return $bytes['a'] << 32 | $bytes['b'];
136
            },
137
            7 => function () {
138
                $bytes = unpack('Ca/nb/Nc', $this->byteGenerator->getBytes(7));
139
                return $bytes['a'] << 48 | $bytes['b'] << 32 | $bytes['c'];
140
            },
141
            8 => function () {
142
                $bytes = unpack('J', $this->byteGenerator->getBytes(8));
143
                return $bytes[1];