Conditions | 1 |
Paths | 1 |
Total Lines | 57 |
Code Lines | 42 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | 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 |
||
12 | public static function map() |
||
13 | { |
||
14 | return [ |
||
15 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
16 | 'children' => [ |
||
17 | 'tbsCertList' => [ |
||
18 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
19 | 'children' => [ |
||
20 | 'version' => [ |
||
21 | 'tag' => ASN1::TYPE_INTEGER, |
||
22 | 'map' => [1=>'v1','v2','v3'], |
||
23 | 'optional' => true |
||
24 | ], |
||
25 | 'signature' => Common::AlgorithmIdentifier(), |
||
26 | 'issuer' => Common::RDNSequence(), |
||
27 | 'thisUpdate' => [ |
||
28 | 'tag' => ASN1::TYPE_CHOICE, |
||
29 | 'children' => [ |
||
30 | [ 'tag' => ASN1::TYPE_GENERALIZED_TIME ], |
||
31 | [ 'tag' => ASN1::TYPE_UTC_TIME ] |
||
32 | ] |
||
33 | ], |
||
34 | 'nextUpdate' => [ |
||
35 | 'tag' => ASN1::TYPE_CHOICE, |
||
36 | 'optional' => true, |
||
37 | 'children' => [ |
||
38 | [ 'tag' => ASN1::TYPE_GENERALIZED_TIME ], |
||
39 | [ 'tag' => ASN1::TYPE_UTC_TIME ] |
||
40 | ] |
||
41 | ], |
||
42 | 'revokedCertificates' => [ |
||
43 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
44 | 'optional' => true, |
||
45 | 'repeat' => [ |
||
46 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
47 | 'children' => [ |
||
48 | 'userCertificate' => [ |
||
49 | 'tag' => ASN1::TYPE_INTEGER, |
||
50 | 'base' => 16 |
||
51 | ], |
||
52 | 'revocationDate' => [ |
||
53 | 'tag' => ASN1::TYPE_CHOICE, |
||
54 | 'children' => [ |
||
55 | [ 'tag' => ASN1::TYPE_GENERALIZED_TIME ], |
||
56 | [ 'tag' => ASN1::TYPE_UTC_TIME ] |
||
57 | ] |
||
58 | ], |
||
59 | 'extensions' => Common::extensions() |
||
60 | ] |
||
61 | ] |
||
62 | ], |
||
63 | 'extensions' => Common::extensions() + [ 'name' => 0, 'implicit' => false, 'optional' => true ] |
||
64 | ] |
||
65 | ], |
||
66 | 'signatureAlgorithm' => Common::AlgorithmIdentifier(), |
||
67 | 'signatureValue' => [ |
||
68 | 'tag' => ASN1::TYPE_BIT_STRING, |
||
69 | ] |
||
74 |
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