| Conditions | 3 |
| Paths | 4 |
| Total Lines | 23 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 47 | public static function load() |
|
| 34 | { |
||
| 35 | 47 | if (is_null(self::$loader)) { |
|
| 36 | // Create loader object |
||
| 37 | 4 | self::$loader = new MoTranslator\Loader(); |
|
| 38 | |||
| 39 | // Set locale |
||
| 40 | 4 | self::$loader->setlocale( |
|
| 41 | 4 | self::$loader->detectlocale() |
|
|
|
|||
| 42 | 4 | ); |
|
| 43 | |||
| 44 | // Set default text domain |
||
| 45 | 4 | self::$loader->textdomain('sqlparser'); |
|
| 46 | |||
| 47 | // Set path where to look for a domain |
||
| 48 | 4 | self::$loader->bindtextdomain('sqlparser', __DIR__ . '/../locale/'); |
|
| 49 | 4 | } |
|
| 50 | |||
| 51 | 47 | if (is_null(self::$translator)) { |
|
| 52 | // Get translator |
||
| 53 | 4 | self::$translator = self::$loader->get_translator(); |
|
| 54 | 4 | } |
|
| 55 | 47 | } |
|
| 56 | |||
| 70 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.