Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function make($text, $fileName) |
||
31 | { |
||
32 | $sp = new SplitterText(); |
||
33 | $text = iconv('UTF-8', 'UTF-8', $text); |
||
34 | |||
35 | $lines = $sp->split($text, 1000); |
||
36 | $content = ''; |
||
37 | foreach ($lines as $line) { |
||
38 | $query = [ |
||
39 | 'q' => $line |
||
40 | ]; |
||
41 | $content .= $this->reguestGet($query); |
||
42 | } |
||
43 | return $content; |
||
44 | } |
||
45 | } |
||
47 |