MobileAudit::getDefaultChromeFlags()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Suitmedia\LighthouseAudit\Audit;
4
5
class MobileAudit extends AbstractAudit
6
{
7
    /**
8
     * Get the default chrome flags.
9
     *
10
     * @return array
11
     */
12
    protected function getDefaultChromeFlags() :array
13
    {
14
        $flags = parent::getDefaultChromeFlags();
15
16
        return array_merge($flags, ['--cellular-only', '--window-size=375,667']);
17
    }
18
}
19