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 = 10-10 lines in 3 locations

classes/backup/class-backup-engine.php 2 locations

@@ 107-116 (lines=10) @@
104
	 * @param  string $context The context for the error.
105
	 * @param  string $error   The error that was encountered.
106
	 */
107
	public function error( $context, $error ) {
108
109
		if ( empty( $context ) || empty( $error ) ) {
110
			return;
111
		}
112
113
		// Ensure we don't store duplicate errors by md5'ing the error as the key
114
		$this->errors[ $context ][ $_key = md5( implode( ':', (array) $error ) ) ] = $error;
115
116
	}
117
118
	/**
119
	 * Get the array of warnings encountered during the backup process.
@@ 146-155 (lines=10) @@
143
	 * @param  string $context The context for the warning.
144
	 * @param  string $error   The warning that was encountered.
145
	 */
146
	public function warning( $context, $warning ) {
147
148
		if ( empty( $context ) || empty( $warning ) ) {
149
			return;
150
		}
151
152
		// Ensure we don't store duplicate warnings by md5'ing the error as the key
153
		$this->warnings[ $context ][ $_key = md5( implode( ':', (array) $warning ) ) ] = $warning;
154
155
	}
156
157
	/**
158
	 * Hooked into `set_error_handler` to catch any PHP errors that happen during

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

@@ 170-179 (lines=10) @@
167
	 * @param  string $context The context for the warning.
168
	 * @param  string $error   The warning that was encountered.
169
	 */
170
	public function warning( $context, $warning ) {
171
172
		if ( empty( $context ) || empty( $warning ) ) {
173
			return;
174
		}
175
176
		// Ensure we don't store duplicate warnings by md5'ing the error as the key
177
		$this->warnings[ $context ][ $_key = md5( implode( ':', (array) $warning ) ) ] = $warning;
178
179
	}
180
181
	public function get_database_backup_filepath() {
182
		return $this->database_dump_filepath;