src/Behat/Context.php

Summary

Maintainability
A
0 mins
Test Coverage

The class Context has 42 public methods. Consider refactoring Context to keep number of public methods under 10.
Open

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Context has 53 non-getter- and setter-methods. Consider refactoring Context to keep number of methods under 25.
Open

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.php by phpmd

TooManyMethods

Since: 0.1

A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

The default was changed from 10 to 25 in PHPMD 2.3.

Example

Source https://phpmd.org/rules/codesize.html#toomanymethods

The class Context has an overall complexity of 106 which is very high. The configured complexity threshold is 50.
Open

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.php by phpmd

The class Context has 49 public methods and attributes. Consider reducing the number of public items to less than 45.
Open

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.php by phpmd

ExcessivePublicCount

Since: 0.1

A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

Example

public class Foo {
    public $value;
    public $something;
    public $var;
    // [... more more public attributes ...]

    public function doWork() {}
    public function doMoreWork() {}
    public function doWorkAgain() {}
    // [... more more public methods ...]
}

Source https://phpmd.org/rules/codesize.html#excessivepubliccount

Missing class import via use statement (line '539', column '23').
Open

            throw new \Exception('Field value ' . $field->getValue() . ' does not start with ' . $text);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '823', column '23').
Open

            throw new \Exception('Container with selector: ' . $selector . ' does not match text: ' . $text);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '836', column '23').
Open

            throw new \Exception('Container with selector: ' . $selector . ' does not match regex: ' . $regex);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '784', column '23').
Open

            throw new \Exception('Toast is displayed: "' . $this->findElement(reset($toasts), '.content')->getText() . '"');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '215', column '23').
Open

            throw new \Exception('Page contains elements with duplicate ID: ' . implode(', ', array_map(static fn ($v) => '"' . $v . '"', $duplicateIds)));
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '705', column '23').
Open

            throw new \Exception('Input value does not match: ' . $input->getValue() . ', expected: ' . $expectedText);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '810', column '23').
Open

            throw new \Exception('Text does not match between: ' . $compareSelector . ' and ' . $compareToSelector);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '861', column '23').
Open

            throw new \Exception('Value: "' . $value . '" not set using selector: ' . $selector);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '520', column '23').
Open

            throw new \Exception('Active tab is not ' . $title);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '883', column '23').
Open

            throw new \Exception('Input value not is not: ' . $value);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '745', column '23').
Open

            throw new \Exception('Items does not match. There were ' . $count . ' item in container');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '848', column '23').
Open

            throw new \Exception('Element " . $selector . " attribute "' . $attribute . '" does not contain "' . $text . '"');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '211', column '23').
Open

            throw new \Exception('Page contains element with invalid ID: ' . implode(', ', array_map(static fn ($v) => '"' . $v . '"', $invalidIds)));
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '260', column '23').
Open

            throw new \Exception('No element found in ' . ($context === null ? 'page' : 'element')
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '179', column '27').
Open

                throw new \Exception('Page contains uncaught exception');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '54', column '19').
Open

        throw new \Exception('Unable to find scenario');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '676', column '23').
Open

            throw new \Exception('Radio value selected is not: ' . $value);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '872', column '23').
Open

            throw new \Exception('Value: "' . $value . '" not set using selector: ' . $selector);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '126', column '19').
Open

        throw new \Exception('jQuery did not finish within a time limit');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '335', column '23').
Open

            throw new \Exception('Element with text "' . $text . '" must be invisible');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '690', column '23').
Open

            throw new \Exception('Input value does not match: ' . $inputValue . ', expected: ' . $text);
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '773', column '23').
Open

            throw new \Exception('Toast text "' . $toastText . '" does not contain "' . $text . '"');
Severity: Minor
Found in src/Behat/Context.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method jqueryWait uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $c = 0;
                usleep(20_000);
            }
Severity: Minor
Found in src/Behat/Context.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

Avoid using static access to class '\Closure' in method 'iClickPatchedUsingSelector'.
Open

        \Closure::bind(static function () use ($driver, $element) {
            $driver->mouseOverElement($driver->findElement($element->getXpath()));
        }, null, MinkSeleniumDriver::class)();
Severity: Minor
Found in src/Behat/Context.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid unused local variables such as '$item'.
Open

        foreach ($items as $el => $item) {
Severity: Minor
Found in src/Behat/Context.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused local variables such as '$el'.
Open

        foreach ($items as $el => $item) {
Severity: Minor
Found in src/Behat/Context.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 24 and the first side effect is on line 17.
Open

<?php
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Avoid variables with short names like $s. Configured minimum length is 3.
Open

        $s = microtime(true);
Severity: Minor
Found in src/Behat/Context.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $c. Configured minimum length is 3.
Open

        $c = 0;
Severity: Minor
Found in src/Behat/Context.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $v. Configured minimum length is 3.
Open

            throw new \Exception('Page contains element with invalid ID: ' . implode(', ', array_map(static fn ($v) => '"' . $v . '"', $invalidIds)));
Severity: Minor
Found in src/Behat/Context.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $ms. Configured minimum length is 3.
Open

    public function iWait(int $ms): void
Severity: Minor
Found in src/Behat/Context.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Possible parse error: class missing opening or closing brace
Open

class Context extends RawMinkContext implements BehatContext
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Possible parse error: class missing opening or closing brace
Open

class Context extends RawMinkContext implements BehatContext
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 149 characters
Open

            // fix self::getFinishedScript() detection for Firefox - document.readyState is updated after at least part of a new page has been loaded
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 155 characters
Open

            throw new \Exception('Page contains elements with duplicate ID: ' . implode(', ', array_map(static fn ($v) => '"' . $v . '"', $duplicateIds)));
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 128 characters
Open

        if ($this->findElement(null, $compareSelector)->getText() !== $this->findElement(null, $compareToSelector)->getText()) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 141 characters
Open

        $element = $this->findElement(null, '//input[@name="' . $inputName . '" and @type="hidden"]/following-sibling::input[@type="file"]');
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 134 characters
Open

        foreach ($this->getSession()->getPage()->findAll('css', 'div.ui.negative.icon.message > div.content > div.header') as $elem) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 159 characters
Open

        $this->getSession()->executeScript('$(arguments[0]).dropdown(\'set selected\', arguments[1]);', [$lookupElem, $valueElem->getAttribute('data-value')]);
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 137 characters
Open

        $lookupElem = $this->findElement(null, ($isSelectorXpath ? $inputName : '//input[@name="' . $inputName . '"]') . '/parent::div');
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 125 characters
Open

    protected function jqueryWait(string $extraWaitCondition = 'true', array $args = [], int $maxWaitdurationMs = 5000): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 159 characters
Open

            'if (Array.prototype.filter.call(document.getElementsByTagName(\'style\'), (e) => e.getAttribute(\'about\') === \'atk4-ui-behat\').length === 0) {'
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 126 characters
Open

            throw new \Exception('Element " . $selector . " attribute "' . $attribute . '" does not contain "' . $text . '"');
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 124 characters
Open

            throw new \Exception('Toast is displayed: "' . $this->findElement(reset($toasts), '.content')->getText() . '"');
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 124 characters
Open

        // copied from https://github.com/Behat/MinkExtension/blob/v2.2/src/Behat/MinkExtension/Context/MinkContext.php#L567
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

        $isChecked = $this->getSession()->evaluateScript('$(\'[data-name="' . $name . '"]\').find(\'input\')[' . $idx . '].checked');
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 127 characters
Open

            . ' && jQuery.active === 0' // no jQuery AJAX request, https://github.com/jquery/jquery/blob/3.6.4/src/ajax.js#L582
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

            if ($this->getSession()->evaluateScript($finishedScript, $args)) { // TODO wait() uses evaluateScript(), dedup
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line exceeds 120 characters; contains 150 characters
Open

            throw new \Exception('Page contains element with invalid ID: ' . implode(', ', array_map(static fn ($v) => '"' . $v . '"', $invalidIds)));
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            if (count($scenarioSteps) > 0
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        };
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            } else {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function jqueryWait(string $extraWaitCondition = 'true', array $args = [], int $maxWaitdurationMs = 5000): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 16
Open

                if (++$c >= 2) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        foreach ($this->getSession()->getPage()->findAll('css', 'div.ui.negative.icon.message > div.content > div.header') as $elem) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 16
Open

                foreach ([$k, '-moz-' . $k, '-webkit-' . $k] as $k2) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function assertNoDuplicateId(): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            if ($elem->getText() === 'Critical Error') {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (!str_contains($this->getScenario($event)->getTitle() ?? '', 'exception is displayed')) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            if ($this->getSession()->evaluateScript($finishedScript, $args)) { // TODO wait() uses evaluateScript(), dedup
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 16
Open

                }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    public function waitUntilLoadingAndAnimationFinished(AfterStepScope $event): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        while (microtime(true) - $s <= $maxWaitdurationMs / 1000) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    public function getSession($name = null): MinkSession
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (!$this->getSession()->isStarted()) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function disableAnimations(): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (!str_starts_with($event->getStep()->getText(), 'Toast display should contain text ')
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (!$this->getSession()->isStarted()) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            protected function cleanUrl($url)
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function getFinishedScript(): string
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    public function assertSession($name = null): WebAssert
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function getScenario(StepScope $event): ScenarioInterface
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    public function closeAllToasts(BeforeStepScope $event): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            foreach ($cssPairs as $k => $v) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        foreach ($event->getFeature()->getScenarios() as $scenario) {
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 16
Open

                }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        };
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function assertNoException(): void
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in src/Behat/Context.php by phpcodesniffer

There are no issues that match your filters.

Category
Status