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

inc/display/namespace.php 3 locations

@@ 302-320 (lines=19) @@
299
 * @return mixed        The HTML markup for difficulty or false if not set.
300
 * @uses                Game\get_difficulties
301
 */
302
function get_difficulty( $game_id ) {
303
	if ( $difficulty = get_post_meta( $game_id, '_gc_difficulty', true ) ) {
304
		ob_start(); ?>
305
		<span class="gc-icon icon-game-difficulty"><?php the_svg( 'difficulty', false ); ?></span><span class="game-difficulty" id="game-<?php echo absint( $game_id ); ?>-difficulty"><?php echo esc_html( Game\get_difficulties( $difficulty ) ); ?></span>
306
307
		<?php $output = ob_get_clean();
308
309
		/**
310
		 * Allow the difficulty output to be filtered (but only if it has been set).
311
		 *
312
		 * @since 1.0.0
313
		 * @var   string The HTML markup for difficulty.
314
		 * @uses         Game\get_difficulties
315
		 */
316
		return apply_filters( 'gc_filter_difficulty', $output );
317
	}
318
319
	return false;
320
}
321
322
/**
323
 * Return the game playing time.
@@ 329-346 (lines=18) @@
326
 * @param  int $game_id The game's post ID.
327
 * @return mixed        The HTML markup for playing time or false if not set.
328
 */
329
function get_playing_time( $game_id ) {
330
	if ( $playing_time = get_post_meta( $game_id, '_gc_time', true ) ) {
331
		ob_start(); ?>
332
		<span class="gc-icon icon-game-time"><?php the_svg( 'time', false ); ?></span><span class="game-playing-time" id="game-<?php echo absint( $game_id ); ?>-playing-time"><?php echo esc_html( sprintf( __( '%s minutes', 'games-collector' ), $playing_time ) ); ?></span>
333
334
		<?php $output = ob_get_clean();
335
336
		/**
337
		 * Allow the playing time output to be filtered (but only if it has been set).
338
		 *
339
		 * @since 1.0.0
340
		 * @var   string The HTML markup for playing time.
341
		 */
342
		return apply_filters( 'gc_filter_playing_time', $output );
343
	}
344
345
	return false;
346
}
347
348
/**
349
 * Return the game age.
@@ 355-372 (lines=18) @@
352
 * @param  int $game_id The game's post ID.
353
 * @return mixed        The HTML markup for age or false if not set.
354
 */
355
function get_age( $game_id ) {
356
	if ( $age = get_post_meta( $game_id, '_gc_age', true ) ) {
357
		ob_start(); ?>
358
		<span class="gc-icon icon-game-age"><?php the_svg( 'age', false ); ?></span><span class="game-age" id="game-<?php echo absint( $game_id ); ?>-age"><?php echo esc_html( sprintf( '%d+', $age ) ); ?></span>
359
360
		<?php $output = ob_get_clean();
361
362
		/**
363
		 * Allow the age output to be filtered (but only if it has been set).
364
		 *
365
		 * @since 1.0.0
366
		 * @var   string The HTML markup for age.
367
		 */
368
		return apply_filters( 'gc_filter_age', $output );
369
	}
370
371
	return false;
372
}
373
374
/**
375
 * Enqueue front end styles and scripts.