1 | <?php |
||
23 | class Export |
||
24 | { |
||
25 | /** |
||
26 | * @var TranslationManager |
||
27 | */ |
||
28 | private $translationManager; |
||
29 | |||
30 | /** |
||
31 | * @var ExporterInterface |
||
32 | */ |
||
33 | private $exporter; |
||
34 | |||
35 | /** |
||
36 | * @var LoadersContainer |
||
37 | */ |
||
38 | private $loadersContainer; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private $managedLocales = []; |
||
44 | |||
45 | /** |
||
46 | * @var Translation[] |
||
47 | */ |
||
48 | private $refresh = []; |
||
49 | |||
50 | /** |
||
51 | * @param LoadersContainer $loadersContainer |
||
52 | * @param TranslationManager $translationManager |
||
53 | * @param ExporterInterface $exporter |
||
54 | */ |
||
55 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * Exports translations from ES to files. |
||
67 | * |
||
68 | * @param array $domains To export. |
||
69 | * @param bool $force |
||
70 | */ |
||
71 | public function export($domains = [], $force = null) |
||
89 | |||
90 | /** |
||
91 | * Sets managed locales. |
||
92 | * |
||
93 | * @param array $managedLocales |
||
94 | */ |
||
95 | public function setManagedLocales($managedLocales) |
||
99 | |||
100 | /** |
||
101 | * @return array |
||
102 | */ |
||
103 | public function getManagedLocales() |
||
107 | |||
108 | /** |
||
109 | * Get translations for export. |
||
110 | * |
||
111 | * @param array $domains To read from storage. |
||
112 | * @param bool $force Determines if the message status is relevant. |
||
113 | * |
||
114 | * @return array |
||
115 | */ |
||
116 | private function formExportList($domains, $force) |
||
149 | } |
||
150 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.