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

inc/edit-screen.php 1 location

@@ 178-186 (lines=9) @@
175
		$metaboxes         = array();
176
		$default_metaboxes = $this->get_default_items( $post_type );
177
178
		foreach ( $wp_meta_boxes[ $post_type ] as $priorities ) {
179
			foreach ( $priorities as $priority => $_metaboxes ) {
180
				foreach ( $_metaboxes as $metabox ) {
181
					if ( ! in_array( $metabox['id'], $default_metaboxes ) ) {
182
						$metaboxes[ $metabox['id'] ] = $metabox['id'];
183
					}
184
				}
185
			}
186
		}
187
188
		return $metaboxes;
189
	}

inc/settings-posttype.php 1 location

@@ 77-90 (lines=14) @@
74
			do_action( 'tabify_add_meta_boxes', $posttype );
75
		}
76
77
		foreach ( $wp_meta_boxes as $posttype => $context ) {
78
			foreach ( $context as $priorities ) {
79
				foreach ( $priorities as $priority => $_metaboxes ) {
80
					foreach ( $_metaboxes as $metabox ) {
81
						// Metabox has been removed
82
						if ( ! isset( $metabox['id'] ) ) {
83
							continue;
84
						}
85
86
						$metaboxes[ $posttype ][ $metabox['id'] ] = $metabox['title'];
87
					}
88
				}
89
			}
90
		}
91
92
93
		return $metaboxes;