This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace BeyondCode\DuskDashboard\Dusk\Concerns; |
||
4 | |||
5 | trait InteractsWithMouse |
||
6 | { |
||
7 | /** {@inheritdoc} */ |
||
8 | View Code Duplication | public function moveMouse($xOffset, $yOffset) |
|
0 ignored issues
–
show
|
|||
9 | { |
||
10 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
11 | |||
12 | $browser = parent::moveMouse($xOffset, $yOffset); |
||
13 | |||
14 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
0 ignored issues
–
show
The property
actionCollector does not exist. Did you maybe forget to declare it?
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code: class MyClass { }
$x = new MyClass();
$x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: class MyClass {
public $foo;
}
$x = new MyClass();
$x->foo = true;
![]() |
|||
15 | |||
16 | return $browser; |
||
17 | } |
||
18 | |||
19 | /** {@inheritdoc} */ |
||
20 | View Code Duplication | public function mouseover($selector) |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
21 | { |
||
22 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
23 | |||
24 | $browser = parent::mouseover($selector); |
||
25 | |||
26 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
27 | |||
28 | return $browser; |
||
29 | } |
||
30 | |||
31 | /** {@inheritdoc} */ |
||
32 | View Code Duplication | public function click($selector = null) |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
33 | { |
||
34 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
35 | |||
36 | $browser = parent::click($selector); |
||
37 | |||
38 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
39 | |||
40 | return $browser; |
||
41 | } |
||
42 | |||
43 | /** {@inheritdoc} */ |
||
44 | View Code Duplication | public function clickAndHold() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
45 | { |
||
46 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
47 | |||
48 | $browser = parent::clickAndHold(); |
||
49 | |||
50 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
51 | |||
52 | return $browser; |
||
53 | } |
||
54 | |||
55 | View Code Duplication | public function doubleClick() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
56 | { |
||
57 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
58 | |||
59 | $browser = parent::doubleClick(); |
||
60 | |||
61 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
62 | |||
63 | return $browser; |
||
64 | } |
||
65 | |||
66 | /** {@inheritdoc} */ |
||
67 | View Code Duplication | public function rightClick($selector = null) |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
68 | { |
||
69 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
70 | |||
71 | $browser = parent::rightClick($selector); |
||
72 | |||
73 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
74 | |||
75 | return $browser; |
||
76 | } |
||
77 | |||
78 | /** {@inheritdoc} */ |
||
79 | View Code Duplication | public function releaseMouse() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
80 | { |
||
81 | $previousHtml = $this->getCurrentPageSource(); |
||
0 ignored issues
–
show
It seems like
getCurrentPageSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
This check looks for methods that are used by a trait but not required by it. To illustrate, let’s look at the following code example trait Idable {
public function equalIds(Idable $other) {
return $this->getId() === $other->getId();
}
}
The trait Adding the ![]() |
|||
82 | |||
83 | $browser = parent::releaseMouse(); |
||
84 | |||
85 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
||
86 | |||
87 | return $browser; |
||
88 | } |
||
89 | } |
||
90 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.