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 = 16-16 lines in 2 locations

classes/backup/class-backup-engine.php 1 location

@@ 114-129 (lines=16) @@
111
112
	}
113
114
	public function error_handler( $type ) {
115
116
		// Skip strict & deprecated warnings
117
		if ( ( defined( 'E_DEPRECATED' ) && $type === E_DEPRECATED ) || ( defined( 'E_STRICT' ) && $type === E_STRICT ) || error_reporting() === 0 ) {
118
			return false;
119
		}
120
121
		$args = func_get_args();
122
123
		array_shift( $args );
124
125
		$this->warning( 'php', implode( ', ', array_splice( $args, 0, 3 ) ) );
126
127
		return false;
128
129
	}
130
131
}

classes/class-backup.php 1 location

@@ 1468-1483 (lines=16) @@
1465
	 *
1466
	 * @return bool
1467
	 */
1468
	public function error_handler( $type ) {
1469
1470
		// Skip strict & deprecated warnings
1471
		if ( ( defined( 'E_DEPRECATED' ) && $type === E_DEPRECATED ) || ( defined( 'E_STRICT' ) && $type === E_STRICT ) || error_reporting() === 0 ) {
1472
			return false;
1473
		}
1474
1475
		$args = func_get_args();
1476
1477
		array_shift( $args );
1478
1479
		$this->warning( 'php', implode( ', ', array_splice( $args, 0, 3 ) ) );
1480
1481
		return false;
1482
1483
	}
1484
1485
	/**
1486
	 * Determine if user can connect via the CLI