GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ClearTableFilters::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Magium\Magento\Actions\Admin\Tables;
4
5
use Facebook\WebDriver\WebDriverBy;
6
use Magium\Actions\StaticActionInterface;
7
use Magium\WebDriver\WebDriver;
8
9
class ClearTableFilters implements StaticActionInterface
10
    {
11
12
    const ACTION = 'Admin\Tables\ClearTableFilters';
13
14
    protected $webDriver;
15
16
    public function __construct(
17
        WebDriver   $webDriver
18
    )
19
    {
20
        $this->webDriver    = $webDriver;
21
    }
22
23
    public function clear()
24
    {
25
        $elements = $this->webDriver->findElements(WebDriverBy::xpath('//tr[@class="filter"]/descendant::input[@type="text"]'));
26
        foreach ($elements as $element) {
27
            $element->clear();
28
        }
29
    }
30
31
    public function execute()
32
    {
33
        $this->clear();
34
    }
35
36
}