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.
Completed
Push — develop ( 699b70...879176 )
by Chris
13:23
created
inc/display/namespace.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 
62 62
 		<div class="game-info" id="game-<?php echo absint( $game_id ); ?>-info">
63 63
 			<?php
64
-			echo get_players( $game_id );      // WPCS: XSS ok, already sanitized.
64
+			echo get_players( $game_id ); // WPCS: XSS ok, already sanitized.
65 65
 			echo get_playing_time( $game_id ); // WPCS: XSS ok, already sanitized.
66
-			echo get_age( $game_id );          // WPCS: XSS ok, already sanitized.
67
-			echo get_difficulty( $game_id );   // WPCS: XSS ok, already sanitized.
68
-			echo get_attributes( $game_id );   // WPCS: XSS ok, already sanitized.
66
+			echo get_age( $game_id ); // WPCS: XSS ok, already sanitized.
67
+			echo get_difficulty( $game_id ); // WPCS: XSS ok, already sanitized.
68
+			echo get_attributes( $game_id ); // WPCS: XSS ok, already sanitized.
69 69
 			?>
70 70
 		</div>
71 71
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
  * @return string Select markup for filters.
160 160
  */
161 161
 function get_filters() {
162
-	$player_filter     = '<div class="player-filter"><label for="players-filter-select">' . esc_html__( 'How many players?', 'games-collector' ) . ':</label>
162
+	$player_filter = '<div class="player-filter"><label for="players-filter-select">' . esc_html__( 'How many players?', 'games-collector' ) . ':</label>
163 163
 		<select class="players-filter-select">
164 164
 			<option selected>- ' . esc_html__( 'Select one', 'games-collector' ) . ' -</option>
165 165
 			<option value=".2-players,.min-2-players,.max-2-players,.max-3-players,.max-4-players,.max-5-players,.max-6-players,.max-7-players,.8-or-more-players">' . esc_html__( '2+ players', 'games-collector' ) . '</option>
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 	$attribute_list = Attributes\get_the_attribute_list(
230 230
 		$game_id,
231 231
 		'<div class="game-attributes"><span class="gc-icon icon-game-attributes">' . get_svg( 'tags', false ) . '</span><span class="game-attributes" id="game-' . absint( $game_id ) . '-attributes">', // Before.
232
-		', ',                                       // Seperator.
232
+		', ', // Seperator.
233 233
 		'</span></div>'                             // After.
234 234
 	);
235 235
 
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
 function get_players( $game_id ) {
255 255
 	$players_min_max = Game\get_players_min_max( $game_id );
256 256
 
257
-	if ( isset( $players_min_max['min'] ) ) {
257
+	if ( isset( $players_min_max[ 'min' ] ) ) {
258 258
 			ob_start(); ?>
259 259
 
260 260
 		<span class="gc-icon icon-game-players"><?php the_svg( 'players', false ); ?></span><span class="game-num-players" id="game-<?php echo absint( $game_id ); ?>-num-players"><?php echo esc_attr( sprintf(
261 261
 			// Translators: 1: Minimum number of players, 2: Maximum number of players.
262 262
 			__( '%1$d %2$s players', 'games-collector' ),
263
-			absint( $players_min_max['min'] ),
264
-			isset( $players_min_max['max'] ) ? sprintf( '- %d', absint( $players_min_max['max'] ) ) : '+'
263
+			absint( $players_min_max[ 'min' ] ),
264
+			isset( $players_min_max[ 'max' ] ) ? sprintf( '- %d', absint( $players_min_max[ 'max' ] ) ) : '+'
265 265
 		) ); ?></span><?php
266 266
 
267 267
 		$output = ob_get_clean();
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 		return;
371 371
 	}
372 372
 
373
-	wp_enqueue_style( 'games-collector', dirname( dirname( plugin_dir_url( __FILE__ ) ) ) . '/assets/css/games-collector.css', [], '1.1.0-r2' );
373
+	wp_enqueue_style( 'games-collector', dirname( dirname( plugin_dir_url( __FILE__ ) ) ) . '/assets/css/games-collector.css', [ ], '1.1.0-r2' );
374 374
 	wp_enqueue_script( 'isotope', dirname( dirname( plugin_dir_url( __FILE__ ) ) ) . '/assets/js/isotope.pkgd.min.js', [ 'jquery' ], '3.0.1', true );
375 375
 	wp_enqueue_script( 'games-collector', dirname( dirname( plugin_dir_url( __FILE__ ) ) ) . '/assets/js/games-collector.js', [ 'jquery', 'isotope' ], '0.2' );
376 376
 }
Please login to merge, or discard this patch.
plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 	// Autoload the namespaces.
56 56
 	$namespaces = array_filter( glob( dirname( __FILE__ ) . '/inc/*' ), 'is_dir' );
57 57
 	foreach ( $namespaces as $namespace ) {
58
-		$files[] = $namespace . '/namespace.php';
58
+		$files[ ] = $namespace . '/namespace.php';
59 59
 	}
60 60
 
61 61
 	// Loop through and load all the things!
Please login to merge, or discard this patch.
vendor/fig-r/psr2r-sniffer/tests/files/TestClass2Input.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
 
7 7
 class TestClass1Input {
8 8
 	/**
9
-     * @param \Bar\Foo
10
-     *
11
-     * @return void
12
-     */
9
+	 * @param \Bar\Foo
10
+	 *
11
+	 * @return void
12
+	 */
13 13
 	public function replace() {
14 14
 		// A comment
15 15
 	}
Please login to merge, or discard this patch.
fig-r/psr2r-sniffer/tests/files/PhpSapiConstantSniff/TestClass1Expected.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,18 +5,18 @@
 block discarded – undo
5 5
 class TestClass1Input {
6 6
 
7 7
 	/**
8
-     * @return void
9
-     */
8
+	 * @return void
9
+	 */
10 10
 	public function replaceFunction() {
11 11
 		$foo = PHP_SAPI;
12 12
 		$foo = substr(PHP_SAPI, 0, 3);
13 13
 	}
14 14
 
15 15
 	/**
16
-     * Do not replace
17
-     *
18
-     * @return void
19
-     */
16
+	 * Do not replace
17
+	 *
18
+	 * @return void
19
+	 */
20 20
 	public function php_sapi_name() {
21 21
 		$foo = $this->php_sapi_name();
22 22
 		$foo = php_sapi_name($foo);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      */
10 10
 	public function replaceFunction() {
11 11
 		$foo = PHP_SAPI;
12
-		$foo = substr(PHP_SAPI, 0, 3);
12
+		$foo = substr( PHP_SAPI, 0, 3 );
13 13
 	}
14 14
 
15 15
 	/**
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
 	public function php_sapi_name() {
21 21
 		$foo = $this->php_sapi_name();
22
-		$foo = php_sapi_name($foo);
22
+		$foo = php_sapi_name( $foo );
23 23
 	}
24 24
 
25 25
 }
Please login to merge, or discard this patch.
fig-r/psr2r-sniffer/tests/files/PhpSapiConstantSniff/TestClass1Input.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	 */
10 10
 	public function replaceFunction() {
11 11
 		$foo = php_sapi_name();
12
-		$foo = substr(php_sapi_name(), 0, 3);
12
+		$foo = substr( php_sapi_name(), 0, 3 );
13 13
 	}
14 14
 
15 15
 	/**
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 */
20 20
 	public function php_sapi_name() {
21 21
 		$foo = $this->php_sapi_name();
22
-		$foo = php_sapi_name($foo);
22
+		$foo = php_sapi_name( $foo );
23 23
 	}
24 24
 
25 25
 }
Please login to merge, or discard this patch.
fig-r/psr2r-sniffer/tests/files/DocBlockParamSniff/TestClass1Expected.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	 *
11 11
 	 * @return void
12 12
 	 */
13
-	public function replaceMe($foo, $bar) {
13
+	public function replaceMe( $foo, $bar ) {
14 14
 	}
15 15
 
16 16
 	/**
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	 *
21 21
 	 * @return void
22 22
 	 */
23
-	public function reportMe($foo, $bar = null) {
23
+	public function reportMe( $foo, $bar = null ) {
24 24
 	}
25 25
 
26 26
 	/**
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 *
31 31
 	 * @return void
32 32
 	 */
33
-	public function correctMe2($foo) {
33
+	public function correctMe2( $foo ) {
34 34
 	}
35 35
 
36 36
 	/**
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 	 *
41 41
 	 * @return void
42 42
 	 */
43
-	public function ok($foo) {
43
+	public function ok( $foo ) {
44 44
 	}
45 45
 
46 46
 	/**
47 47
 	 * @param int $threshold
48 48
 	 * @param bool $re  Re
49 49
 	 */
50
-	public function __construct($threshold, $re) {
50
+	public function __construct( $threshold, $re ) {
51 51
 	}
52 52
 
53 53
 	/**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 *
56 56
 	 * @return void
57 57
 	 */
58
-	public function ignoreMe(Foo $foo) {
58
+	public function ignoreMe( Foo $foo ) {
59 59
 	}
60 60
 
61 61
 }
Please login to merge, or discard this patch.
vendor/fig-r/psr2r-sniffer/tests/files/TestClass1Input.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,15 +43,15 @@
 block discarded – undo
43 43
 		$x = 5 + 5;
44 44
 ;
45 45
 ;
46
-		$y = [1, 2];
46
+		$y = [ 1, 2 ];
47 47
 
48 48
 		include 'foo.bar';
49 49
 		require_once $foo;
50 50
 
51
-		if ($x + (int)$y) {
51
+		if ( $x + (int) $y ) {
52 52
 		}
53 53
 
54
-		$x = !$x;
54
+		$x = ! $x;
55 55
 		$x = $y - $x;
56 56
 		$x = - $x;
57 57
 		$x = ~$x;
Please login to merge, or discard this patch.
tests/Sniffs/Commenting/FullyQualifiedClassNameInDocBlockSniffTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	 * @return void
13 13
 	 */
14 14
 	public function testInstance() {
15
-		$this->assertTrue(class_exists('PSR2R\Sniffs\Commenting\FullyQualifiedClassNameInDocBlockSniff'));
15
+		$this->assertTrue( class_exists( 'PSR2R\Sniffs\Commenting\FullyQualifiedClassNameInDocBlockSniff' ) );
16 16
 		$sniff = new FullyQualifiedClassNameInDocBlockSniff();
17 17
 	}
18 18
 
Please login to merge, or discard this patch.
vendor/fig-r/psr2r-sniffer/PSR2R/Tools/Sniffer.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -17,44 +17,44 @@  discard block
 block discarded – undo
17 17
 	 * @param array $argv
18 18
 	 * @throws \Exception
19 19
 	 */
20
-	public function __construct($argv) {
21
-		$path = (!empty($argv[1]) && strpos($argv[1], '-') !== 0) ? $argv[1] : null;
20
+	public function __construct( $argv ) {
21
+		$path = ( ! empty( $argv[ 1 ] ) && strpos( $argv[ 1 ], '-' ) !== 0 ) ? $argv[ 1 ] : null;
22 22
 		$ignore = null;
23
-		if (!$path) {
24
-			$path = array_shift($argv);
25
-			$path = dirname(dirname($path));
26
-			if (substr($path, -13) === 'psr2r-sniffer' && substr($path, -19, -14) === 'fig-r') {
27
-				$path = dirname(dirname(dirname($path)));
23
+		if ( ! $path ) {
24
+			$path = array_shift( $argv );
25
+			$path = dirname( dirname( $path ) );
26
+			if ( substr( $path, -13 ) === 'psr2r-sniffer' && substr( $path, -19, -14 ) === 'fig-r' ) {
27
+				$path = dirname( dirname( dirname( $path ) ) );
28 28
 			}
29 29
 			$path .= DIRECTORY_SEPARATOR;
30 30
 			$ignore = $path . 'vendor' . DIRECTORY_SEPARATOR;
31 31
 		} else {
32
-			unset($argv[1]);
33
-			array_shift($argv);
32
+			unset( $argv[ 1 ] );
33
+			array_shift( $argv );
34 34
 		}
35 35
 
36 36
 		$fix = false;
37
-		foreach ($argv as $k => $v) {
38
-			if ($v === '-f') {
37
+		foreach ( $argv as $k => $v ) {
38
+			if ( $v === '-f' ) {
39 39
 				$fix = true;
40
-				unset($argv[$k]);
40
+				unset( $argv[ $k ] );
41 41
 				break;
42 42
 			}
43 43
 		}
44 44
 
45
-		$root = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR;
45
+		$root = dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR;
46 46
 		$standard = $root . self::STANDARD;
47
-		$argv[] = '--standard=' . $standard;
48
-		if ($ignore) {
49
-			$argv[] = '--ignore=' . str_replace(DIRECTORY_SEPARATOR, '/', $ignore);
47
+		$argv[ ] = '--standard=' . $standard;
48
+		if ( $ignore ) {
49
+			$argv[ ] = '--ignore=' . str_replace( DIRECTORY_SEPARATOR, '/', $ignore );
50 50
 		}
51 51
 
52
-		$argv[] = $path;
52
+		$argv[ ] = $path;
53 53
 
54
-		array_unshift($argv, 'dummy');
54
+		array_unshift( $argv, 'dummy' );
55 55
 
56
-		$_SERVER['argv'] = $argv;
57
-		$_SERVER['argc'] = count($_SERVER['argv']);
56
+		$_SERVER[ 'argv' ] = $argv;
57
+		$_SERVER[ 'argc' ] = count( $_SERVER[ 'argv' ] );
58 58
 		$this->fix = $fix;
59 59
 	}
60 60
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 */
64 64
 	public function sniff() {
65 65
 		$cli = new PHP_CodeSniffer_CLI();
66
-		if ($this->fix) {
66
+		if ( $this->fix ) {
67 67
 			$cli->runphpcbf();
68 68
 		} else {
69 69
 			$cli->runphpcs();
Please login to merge, or discard this patch.