Conditions | 1 |
Paths | 1 |
Total Lines | 79 |
Code Lines | 60 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
1 | <?php |
||
35 | public function provideSignJsConnectTests() { |
||
36 | return [ |
||
37 | 'default' => [ |
||
38 | [ |
||
39 | 'name' => 'John PHP', |
||
40 | 'email' => '[email protected]', |
||
41 | 'unique_id' => '123', |
||
42 | ], |
||
43 | 'clientID', |
||
44 | 'secret', |
||
45 | 'sha256', |
||
46 | false, |
||
47 | '71528bfbb99aba97734f79beab6d1eca1416e05a0587e9ab55b99095753f74b6', |
||
48 | ], |
||
49 | 'unordered' => [ |
||
50 | [ |
||
51 | 'unique_id' => '123', |
||
52 | 'email' => '[email protected]', |
||
53 | 'name' => 'John PHP', |
||
54 | ], |
||
55 | 'clientID', |
||
56 | 'secret', |
||
57 | 'sha256', |
||
58 | false, |
||
59 | '71528bfbb99aba97734f79beab6d1eca1416e05a0587e9ab55b99095753f74b6', |
||
60 | ], |
||
61 | 'incorrectKeyCase' => [ |
||
62 | [ |
||
63 | 'Name' => 'John PHP', |
||
64 | 'eMail' => '[email protected]', |
||
65 | 'UNIQUE_id' => '123', |
||
66 | ], |
||
67 | 'clientID', |
||
68 | 'secret', |
||
69 | 'sha256', |
||
70 | false, |
||
71 | '71528bfbb99aba97734f79beab6d1eca1416e05a0587e9ab55b99095753f74b6', |
||
72 | ], |
||
73 | 'trueAsHashType' => [ |
||
74 | [ |
||
75 | 'Name' => 'John PHP', |
||
76 | 'eMail' => '[email protected]', |
||
77 | 'unique_id' => '123', |
||
78 | ], |
||
79 | 'clientID', |
||
80 | 'secret', |
||
81 | true, |
||
82 | false, |
||
83 | 'f1639a1838bd904cb967423be0567802', |
||
84 | ], |
||
85 | 'extraInfo' => [ |
||
86 | [ |
||
87 | 'unique_id' => '123', |
||
88 | 'email' => '[email protected]', |
||
89 | 'name' => 'John PHP', |
||
90 | 'custom_field' => 'custom', |
||
91 | ], |
||
92 | 'clientID', |
||
93 | 'secret', |
||
94 | 'sha256', |
||
95 | false, |
||
96 | '72976aaaa96cb1acc94aa8c1638a0b3e10bb638e3985e25f60f6db79f65fcefb', |
||
97 | ], |
||
98 | 'defaultReturnData' => [ |
||
99 | [ |
||
100 | 'name' => 'John PHP', |
||
101 | 'email' => '[email protected]', |
||
102 | 'unique_id' => '123', |
||
103 | ], |
||
104 | 'clientID', |
||
105 | 'secret', |
||
106 | 'sha256', |
||
107 | true, |
||
108 | [ |
||
109 | 'name' => 'John PHP', |
||
110 | 'email' => '[email protected]', |
||
111 | 'unique_id' => '123', |
||
112 | 'client_id' => 'clientID', |
||
113 | 'sig' => '71528bfbb99aba97734f79beab6d1eca1416e05a0587e9ab55b99095753f74b6', |
||
114 | ] |
||
119 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths