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 — feature/gallery-template-clien... ( 9f6bad...85df04 )
by Brad
02:37
created

FooGallery_Pro_Paging::add_pro_paging_choices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * FooGallery Pro Paging Class
4
 */
5
if ( ! class_exists( 'FooGallery_Pro_Paging' ) ) {
6
7
	class FooGallery_Pro_Paging {
8
9
		function __construct() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
10
			add_filter( 'foogallery_gallery_template_paging_type_choices', array( $this, 'add_pro_paging_choices' ) );
11
		}
12
13
		/**
14
		 * Adds the presets that are available in the PRO version
15
		 *
16
		 * @param $choices
17
		 *
18
		 * @return mixed
19
		 */
20
		function add_pro_paging_choices( $choices ) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
21
			$choices['pagination'] = __( 'Pagination', 'foogallery' );
22
			$choices['infinite'] = __( 'Infinite Scroll', 'foogallery' );
23
			$choices['loadMore'] = __( 'Load More', 'foogallery' );
24
			return $choices;
25
		}
26
	}
27
}