Standalone/Http/AsynchronousClient.php 1 location
|
@@ 63-72 (lines=10) @@
|
60 |
|
* @param ObjectArray $urls |
61 |
|
* @return ObjectArray |
62 |
|
*/ |
63 |
|
public function getContent(ObjectArray $urls): ObjectArray |
64 |
|
{ |
65 |
|
$htmlObjectArray = $this->objectArrayFactory->create(HtmlInterface::class); |
66 |
|
/** @var UrlInterface $url */ |
67 |
|
foreach ($urls as $url) { |
68 |
|
$this->createRequestDefinition($url, $htmlObjectArray); |
69 |
|
} |
70 |
|
$this->loop->run(); |
71 |
|
return $htmlObjectArray; |
72 |
|
} |
73 |
|
|
74 |
|
/** |
75 |
|
* @codeCoverageIgnore |
Standalone/Http/SynchronousClient.php 1 location
|
@@ 43-52 (lines=10) @@
|
40 |
|
* @param ObjectArray $urls |
41 |
|
* @return ObjectArray |
42 |
|
*/ |
43 |
|
public function getContent(ObjectArray $urls): ObjectArray |
44 |
|
{ |
45 |
|
$htmlObjectArray = $this->objectArrayFactory->create(HtmlInterface::class); |
46 |
|
/** @var UrlInterface $url */ |
47 |
|
foreach ($urls as $url) { |
48 |
|
$html = $this->fileGetContentsWrapper($url); |
49 |
|
$htmlObjectArray->add(new Html($html)); |
50 |
|
} |
51 |
|
return $htmlObjectArray; |
52 |
|
} |
53 |
|
|
54 |
|
/** |
55 |
|
* @codeCoverageIgnore |