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

DriverHelper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A supportsJavascript() 0 4 2
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