| Conditions | 1 |
| Paths | 1 |
| Total Lines | 59 |
| Code Lines | 47 |
| 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 |
||
| 9 | public static function map() |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
| 13 | 'children' => [ |
||
| 14 | 'status' => [ |
||
| 15 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
| 16 | 'children' => [ |
||
| 17 | 'status' => [ |
||
| 18 | 'tag' => ASN1::TYPE_INTEGER, |
||
| 19 | 'map' => [ |
||
| 20 | 'granted', |
||
| 21 | 'grantedWithMods', |
||
| 22 | 'rejection', |
||
| 23 | 'waiting', |
||
| 24 | 'revocationWarning', |
||
| 25 | 'revocationNotification' |
||
| 26 | ] |
||
| 27 | ], |
||
| 28 | 'statusString' => [ |
||
| 29 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
| 30 | 'children' => [ |
||
| 31 | 'data' => [ |
||
| 32 | 'tag' =>ASN1::TYPE_UTF8_STRING |
||
| 33 | ] |
||
| 34 | ] |
||
| 35 | ], |
||
| 36 | 'failInfo' => [ |
||
| 37 | 'tag' => ASN1::TYPE_BIT_STRING, |
||
| 38 | 'optional' => true |
||
| 39 | ] |
||
| 40 | ] |
||
| 41 | ], |
||
| 42 | 'timeStampToken' => [ |
||
| 43 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
| 44 | 'optional' => true, |
||
| 45 | 'children' => [ |
||
| 46 | 'contentType' => ['tag' => ASN1::TYPE_OBJECT_IDENTIFIER ], |
||
| 47 | 'signedData' => [ |
||
| 48 | 'name' => 0, |
||
| 49 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
| 50 | 'children' => [ |
||
| 51 | 'version' => ['tag' => ASN1::TYPE_INTEGER ], |
||
| 52 | 'algorithms' => [ |
||
| 53 | 'tag' => ASN1::TYPE_SET, |
||
| 54 | 'children' => [ |
||
| 55 | 'hashAlgorithm' => Common::AlgorithmIdentifier(), |
||
| 56 | ], |
||
| 57 | ], |
||
| 58 | "tokenInfo" => [ |
||
| 59 | 'tag' => ASN1::TYPE_SEQUENCE, |
||
| 60 | 'optional' => true, |
||
| 61 | 'children' => [ |
||
| 62 | 'contentType' => ['tag' => ASN1::TYPE_OBJECT_IDENTIFIER ], |
||
| 63 | 'data' => [ |
||
| 64 | 'name' => 0, |
||
| 65 | 'tag' => ASN1::TYPE_OCTET_STRING, |
||
| 66 | 'der' => true, |
||
| 67 | 'map' => static::mapToken() |
||
| 68 | ] |
||
| 120 |
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