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/video-support ( 96814b...15721f )
by Brad
02:48
created

functions.php ➔ foogallery_settings_set_vimeo_access_token()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * FooGallery PRO global functions
4
 */
5
6
/**
7
 * Enqueue the FooGallery Media Views stylesheet
8
 */
9
function foogallery_enqueue_media_views_style() {
10
	wp_enqueue_style( 'foogallery-media-views', FOOGALLERY_PRO_URL . 'css/foogallery.media-views.min.css' );
11
}
12
13
/**
14
 * Enqueue the FooGallery Media Views script
15
 */
16
function foogallery_enqueue_media_views_script() {
17
	wp_enqueue_script( 'foogallery-media-views', FOOGALLERY_PRO_URL . 'js/foogallery.media-views.min.js', array( 'jquery', 'media-views', 'underscore' ) );
18
}
19
20
/**
21
 * Include the media views templates used for the video import
22
 */
23
function foogallery_include_media_views_templates() {
24
	include FOOGALLERY_PRO_PATH . 'includes/foogallery-media-views-templates.php';
25
}
26
27
28
/**
29
 * Retrieve the Vimeo access code from the foogallery settings
30
 * @return mixed
31
 */
32
function foogallery_settings_get_vimeo_access_token() {
33
	return foogallery_get_setting( 'vimeo_access_token' );
34
}
35
36
/**
37
 * Save the Vimeo access token to the foogallery settings
38
 * @param $access_token
39
 */
40
function foogallery_settings_set_vimeo_access_token( $access_token ) {
41
	$foogallery = FooGallery_Plugin::get_instance();
42
43
	$foogallery->options()->save( 'vimeo_access_token', $access_token );
44
}