Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function __construct($config) |
||
17 | { |
||
18 | $file = APPLICATION_PATH . '/../data/translations/admin/' . $config->admin_language . '.php'; |
||
19 | if (!is_file($file)) { |
||
20 | die("file $file not exists"); |
||
21 | } |
||
22 | $translations = include($file); |
||
23 | $this->getDI()->set('admin_translate', new \Phalcon\Translate\Adapter\NativeArray(array('content' => $translations))); |
||
|
|||
24 | |||
25 | } |
||
26 | |||
28 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.