Passed
Push — master ( dcbd4a...4bb7b0 )
by Michael
02:37
created

UtilityCest   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 57
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetModuleOption() 0 2 1
A testNeedsAsterisk() 0 2 1
A testFormMarkRequiredFields() 0 2 1
A testGetInstance() 0 2 1
A testGetModuleName() 0 2 1
A testGetWysiwygForm() 0 2 1
A testRedirect() 0 2 1
A testJavascriptLinkConfirm() 0 2 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: mamba
5
 * Date: 2017-12-04
6
 * Time: 06:17
7
 */
8
9
class UtilityCest
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
10
{
11
12
    /**
13
     * @param \FunctionalTester $I
14
     */
15
    public function testGetInstance(FunctionalTester $I)
0 ignored issues
show
Bug introduced by
The type FunctionalTester was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function testGetInstance(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
    }
18
19
    /**
20
     * @param \FunctionalTester $I
21
     */
22
    public function testGetModuleOption(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public function testGetModuleOption(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
    }
25
26
    /**
27
     * @param \FunctionalTester $I
28
     */
29
    public function testGetWysiwygForm(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

29
    public function testGetWysiwygForm(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
    {
31
    }
32
33
    /**
34
     * @param \FunctionalTester $I
35
     */
36
    public function testJavascriptLinkConfirm(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

36
    public function testJavascriptLinkConfirm(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
    {
38
    }
39
40
    /**
41
     * @param \FunctionalTester $I
42
     */
43
    public function testRedirect(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

43
    public function testRedirect(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
44
    {
45
    }
46
47
    /**
48
     * @param \FunctionalTester $I
49
     */
50
    public function testGetModuleName(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

50
    public function testGetModuleName(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
51
    {
52
    }
53
54
    /**
55
     * @param \FunctionalTester $I
56
     */
57
    public function testNeedsAsterisk(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

57
    public function testNeedsAsterisk(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
58
    {
59
    }
60
61
    /**
62
     * @param \FunctionalTester $I
63
     */
64
    public function testFormMarkRequiredFields(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

64
    public function testFormMarkRequiredFields(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
65
    {
66
    }
67
}
68