WPB_I18n   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A load_plugin_textdomain() 0 6 1
1
<?php
2
/**
3
 * Define the internationalization functionality.
4
 *
5
 * Loads and defines the internationalization files for this plugin
6
 * so that it is ready for translation.
7
 *
8
 * @link       https://github.com/maab16
9
 * @since      1.0.0
10
 */
11
12
/**
13
 * Define the internationalization functionality.
14
 *
15
 * Loads and defines the internationalization files for this plugin
16
 * so that it is ready for translation.
17
 *
18
 * @since      1.0.0
19
 *
20
 * @author     Md Abu Ahsan basir <[email protected]>
21
 */
22
class WPB_I18n
23
{
24
    /**
25
     * Load the plugin text domain for translation.
26
     *
27
     * @since    1.0.0
28
     */
29
    public function load_plugin_textdomain()
30
    {
31
        load_plugin_textdomain(
0 ignored issues
show
Bug introduced by
The function load_plugin_textdomain was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

31
        /** @scrutinizer ignore-call */ 
32
        load_plugin_textdomain(
Loading history...
32
            'wpb',
33
            false,
34
            dirname(dirname(plugin_basename(__FILE__))).'/languages/'
0 ignored issues
show
Bug introduced by
The function plugin_basename was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

34
            dirname(dirname(/** @scrutinizer ignore-call */ plugin_basename(__FILE__))).'/languages/'
Loading history...
35
        );
36
    }
37
}
38