This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
15
{
16
$this->addDefaultConfig([
17
'selector' => 'table',
18
'hasHeader' => true,
19
'useHeaderAsIndex' => true,
20
'ignoreHeader' => false,
21
'orientation' => 'vertical',
22
]);
23
}
24
25
/**
26
* @return string
27
*/
28
public function newData()
29
{
30
return '<html></html>';
31
}
32
33
/**
34
* Get the instance as an array.
35
*
36
* @return array
37
*/
38
public function toArray()
39
{
40
$crawler = new Crawler((string) $this->getData());
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.