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.

Xcloner_i18n::load_plugin_textdomain()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
1
<?php
2
/**
3
 * XCloner - Backup and Restore backup plugin for Wordpress
4
 *
5
 * class-xcloner-i18n.php
6
 * @author Liuta Ovidiu <[email protected]>
7
 *
8
 *        This program is free software; you can redistribute it and/or modify
9
 *        it under the terms of the GNU General Public License as published by
10
 *        the Free Software Foundation; either version 2 of the License, or
11
 *        (at your option) any later version.
12
 *
13
 *        This program is distributed in the hope that it will be useful,
14
 *        but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 *        GNU General Public License for more details.
17
 *
18
 *        You should have received a copy of the GNU General Public License
19
 *        along with this program; if not, write to the Free Software
20
 *        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
 *        MA 02110-1301, USA.
22
 *
23
 * @link https://github.com/ovidiul/XCloner-Wordpress
24
 *
25
 * @modified 7/25/18 1:46 PM
26
 *
27
 */
28
29
30
/**
31
 * Define the internationalization functionality.
32
 *
33
 * Loads and defines the internationalization files for this plugin
34
 * so that it is ready for translation.
35
 *
36
 * @since      1.0.0
37
 * @package    Xcloner
38
 * @subpackage Xcloner/includes
39
 * @author     Liuta Ovidiu <[email protected]>
40
 */
41
class Xcloner_i18n
42
{
43
44
	/**
45
	 * Load the plugin text domain for translation.
46
	 *
47
	 * @since    1.0.0
48
	 */
49
	public function load_plugin_textdomain()
50
	{
51
52
		load_plugin_textdomain(
53
			'xcloner-backup-and-restore',
54
			false,
0 ignored issues
show
Bug introduced by
false of type false is incompatible with the type string expected by parameter $deprecated of load_plugin_textdomain(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

54
			/** @scrutinizer ignore-type */ false,
Loading history...
55
			dirname(dirname(plugin_basename(__FILE__))).'/languages/'
56
		);
57
58
	}
59
60
61
}
62