Passed
Push — 1.x ( 8aa29d...91d62d )
by Kevin
02:07
created

HtmlResponse::dump()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 8
c 0
b 0
f 0
nc 3
nop 1
dl 0
loc 16
rs 10
1
<?php
2
3
namespace Zenstruck\Browser\Response;
4
5
use Symfony\Component\DomCrawler\Crawler;
6
7
/**
8
 * @author Kevin Bond <[email protected]>
9
 */
10
class HtmlResponse extends DomResponse
11
{
12
    public function crawler(): Crawler
13
    {
14
        $crawler = new Crawler();
15
        $crawler->addHtmlContent($this->body());
16
17
        return $crawler;
18
    }
19
}
20