Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
22 | public function make() |
||
23 | { |
||
24 | foreach ($this->something as $something) { |
||
25 | $texts = $something[0]->load(); |
||
26 | $newTexts = $something[2]->translate(array_values($texts)); |
||
27 | |||
28 | $translations = []; |
||
29 | foreach ($texts as $key => $text) { |
||
30 | $translations[$key] = $newTexts[$text] ?? ''; |
||
31 | } |
||
32 | $something[1]->save($translations); |
||
33 | } |
||
36 |