GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 9-9 lines in 2 locations

lib/X509/Certificate/TBSCertificate.php 1 location

@@ 261-269 (lines=9) @@
258
	 * @param int $size Number of random bytes
259
	 * @return self
260
	 */
261
	public function withRandomSerialNumber($size = 16) {
262
		// ensure that first byte is always non-zero and having first bit unset
263
		$num = gmp_init(mt_rand(1, 0x7f), 10);
264
		for ($i = 1; $i < $size; ++$i) {
265
			$num <<= 8;
266
			$num += mt_rand(0, 0xff);
267
		}
268
		return $this->withSerialNumber(gmp_strval($num, 10));
269
	}
270
	
271
	/**
272
	 * Get self with given signature algorithm.

lib/X509/AttributeCertificate/AttributeCertificateInfo.php 1 location

@@ 201-209 (lines=9) @@
198
	 * @param int $size Number of random bytes
199
	 * @return self
200
	 */
201
	public function withRandomSerialNumber($size = 16) {
202
		// ensure that first byte is always non-zero and having first bit unset
203
		$num = gmp_init(mt_rand(1, 0x7f), 10);
204
		for ($i = 1; $i < $size; ++$i) {
205
			$num <<= 8;
206
			$num += mt_rand(0, 0xff);
207
		}
208
		return $this->withSerialNumber(gmp_strval($num, 10));
209
	}
210
	
211
	/**
212
	 * Get self with validity period.