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/AttributeCertificate/AttributeCertificateInfo.php 1 location

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

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.