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;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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;
- Create a ticketCreate a ticket
- Exclude checks
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;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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() . '"');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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)));
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 . '"');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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)));
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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')
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 . '"');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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);
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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)();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
- Create a ticketCreate a ticket
- Exclude checks
Avoid variables with short names like $s. Configured minimum length is 3. Open
$s = microtime(true);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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)));
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
- Create a ticketCreate a ticket
- Exclude checks
Possible parse error: class missing opening or closing brace Open
class Context extends RawMinkContext implements BehatContext
- Create a ticketCreate a ticket
- Exclude checks
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
- Create a ticketCreate a ticket
- Exclude checks
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)));
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
if ($this->findElement(null, $compareSelector)->getText() !== $this->findElement(null, $compareToSelector)->getText()) {
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
$element = $this->findElement(null, '//input[@name="' . $inputName . '" and @type="hidden"]/following-sibling::input[@type="file"]');
- Create a ticketCreate a ticket
- Exclude checks
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) {
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 159 characters Open
$this->getSession()->executeScript('$(arguments[0]).dropdown(\'set selected\', arguments[1]);', [$lookupElem, $valueElem->getAttribute('data-value')]);
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
$lookupElem = $this->findElement(null, ($isSelectorXpath ? $inputName : '//input[@name="' . $inputName . '"]') . '/parent::div');
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
protected function jqueryWait(string $extraWaitCondition = 'true', array $args = [], int $maxWaitdurationMs = 5000): void
- Create a ticketCreate a ticket
- Exclude checks
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) {'
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
throw new \Exception('Element " . $selector . " attribute "' . $attribute . '" does not contain "' . $text . '"');
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
throw new \Exception('Toast is displayed: "' . $this->findElement(reset($toasts), '.content')->getText() . '"');
- Create a ticketCreate a ticket
- Exclude checks
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
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 133 characters Open
$isChecked = $this->getSession()->evaluateScript('$(\'[data-name="' . $name . '"]\').find(\'input\')[' . $idx . '].checked');
- Create a ticketCreate a ticket
- Exclude checks
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
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
if ($this->getSession()->evaluateScript($finishedScript, $args)) { // TODO wait() uses evaluateScript(), dedup
- Create a ticketCreate a ticket
- Exclude checks
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)));
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
if (count($scenarioSteps) > 0
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
};
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
} else {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
protected function jqueryWait(string $extraWaitCondition = 'true', array $args = [], int $maxWaitdurationMs = 5000): void
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
if (++$c >= 2) {
- Create a ticketCreate a ticket
- Exclude checks
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) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
foreach ([$k, '-moz-' . $k, '-webkit-' . $k] as $k2) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
protected function assertNoDuplicateId(): void
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
if ($elem->getText() === 'Critical Error') {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if (!str_contains($this->getScenario($event)->getTitle() ?? '', 'exception is displayed')) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
if ($this->getSession()->evaluateScript($finishedScript, $args)) { // TODO wait() uses evaluateScript(), dedup
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
public function waitUntilLoadingAndAnimationFinished(AfterStepScope $event): void
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
while (microtime(true) - $s <= $maxWaitdurationMs / 1000) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
public function getSession($name = null): MinkSession
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if (!$this->getSession()->isStarted()) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
protected function disableAnimations(): void
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if (!str_starts_with($event->getStep()->getText(), 'Toast display should contain text ')
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if (!$this->getSession()->isStarted()) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
protected function cleanUrl($url)
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
protected function getFinishedScript(): string
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
public function assertSession($name = null): WebAssert
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
protected function getScenario(StepScope $event): ScenarioInterface
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
public function closeAllToasts(BeforeStepScope $event): void
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
foreach ($cssPairs as $k => $v) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
foreach ($event->getFeature()->getScenarios() as $scenario) {
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
};
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
protected function assertNoException(): void
- Create a ticketCreate a ticket
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Create a ticketCreate a ticket
- Exclude checks