Completed
Push — travis-trusty-dmore ( 7fb4c5 )
by Kamil
26:38
created

DriverHelper::supportsJavascript()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 2
eloc 2
nc 2
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sylius\Behat\Service;
6
7
use Behat\Mink\Driver\DriverInterface;
8
use Behat\Mink\Driver\Selenium2Driver;
9
use DMore\ChromeDriver\ChromeDriver;
10
11
abstract class DriverHelper
0 ignored issues
show
Coding Style introduced by
DriverHelper does not seem to conform to the naming convention (Utils?$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
12
{
13
    /**
14
     * @param DriverInterface $driver
15
     *
16
     * @return bool
17
     */
18
    public static function supportsJavascript(DriverInterface $driver)
19
    {
20
        return $driver instanceof Selenium2Driver || $driver instanceof ChromeDriver;
21
    }
22
}
23