Conditions | 1 |
Paths | 1 |
Total Lines | 68 |
Code Lines | 52 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
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 |
||
39 | public static function map() |
||
40 | { |
||
41 | return [ |
||
42 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
43 | 'children' => [ |
||
44 | 'tbsRequest' => [ |
||
45 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
46 | 'children' => [ |
||
47 | 'version' => [ |
||
48 | 'tag' => ASN1::TYPE_INTEGER, |
||
49 | 'name' => 0, |
||
50 | 'implicit' => false, |
||
51 | 'map' => [1=>'v1'], |
||
52 | 'optional' => true |
||
53 | ], |
||
54 | 'requestorName' => [ |
||
55 | 'tag' => ASN1::TYPE_GENERAL_STRING, |
||
56 | 'optional' => true, |
||
57 | 'name' => 1, |
||
58 | 'implicit' => false, |
||
59 | ], |
||
60 | 'requestList' => [ |
||
61 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
62 | 'repeat' => [ |
||
63 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
64 | 'children' => [ |
||
65 | 'reqCert' => [ |
||
66 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
67 | 'children' => [ |
||
68 | 'hashAlgorithm' => Common::AlgorithmIdentifier(), |
||
69 | 'issuerNameHash' => [ |
||
70 | 'tag' => ASN1::TYPE_OCTET_STRING, |
||
71 | ], |
||
72 | 'issuerKeyHash' => [ |
||
73 | 'tag' => ASN1::TYPE_OCTET_STRING, |
||
74 | ], |
||
75 | 'serialNumber' => [ |
||
76 | 'tag' => ASN1::TYPE_INTEGER, |
||
77 | 'base' => 16 |
||
78 | ], |
||
79 | ] |
||
80 | ], |
||
81 | 'extensions' => Common::extensions() + [ |
||
82 | 'name' => 0, |
||
83 | 'implicit' => false, |
||
84 | 'optional' => true |
||
85 | ] |
||
86 | ] |
||
87 | ] |
||
88 | ], |
||
89 | 'extensions' => Common::extensions() + ['name' => 2, 'implicit' => false, 'optional' => true ] |
||
90 | ] |
||
91 | ], |
||
92 | 'signature' => [ |
||
93 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
94 | 'name' => 0, |
||
95 | 'implicit' => false, |
||
96 | 'optional' => true, |
||
97 | 'children' => [ |
||
98 | 'signatureAlgorithm' => Common::AlgorithmIdentifier(), |
||
99 | 'signature' => [ |
||
100 | 'tag' => ASN1::TYPE_BIT_STRING, |
||
101 | ], |
||
102 | 'certs' => [ |
||
103 | 'tag' => ASN1::TYPE_ANY, |
||
104 | 'name' => 0, |
||
105 | 'implicit' => false, |
||
106 | 'optional' => true |
||
107 | ] |
||
114 |
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