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

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