1 | <?php |
||
11 | class I18nHelper extends Helper |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Helpers used. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | public $helpers = ['Form']; |
||
20 | |||
21 | /** |
||
22 | * Default config. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $_defaultConfig = [ |
||
27 | 'locales' => null |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * The locales used in the application. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $_locales = []; |
||
36 | |||
37 | /** |
||
38 | * Construct method. |
||
39 | * |
||
40 | * @param \Cake\View\View $view The view that was fired. |
||
41 | * @param array $config The config passed to the class. |
||
42 | */ |
||
43 | public function __construct(View $view, $config = []) |
||
49 | |||
50 | /** |
||
51 | * Generate inputs in all locales. |
||
52 | * |
||
53 | * @param \Cake\ORM\Entity $entity The entity that was fired. |
||
54 | * @param string $field The field to process. |
||
55 | * @param array $options The options to pass to the input. |
||
56 | * @param string $divClass The class to set to the div before the input. |
||
57 | * @param string $id The id of the input. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function i18nInput(Entity $entity, $field, $options = [], $divClass = 'col-sm-5', $id = 'CkEditorBox') |
||
90 | |||
91 | /** |
||
92 | * Generate the script tag to initialize CkEditor for textarea. |
||
93 | * |
||
94 | * @param array $options The options passed to the function. |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function i18nScript($options = []) |
||
121 | } |
||
122 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..