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-backup.php 1 location

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