Conditions | 1 |
Paths | 1 |
Total Lines | 54 |
Code Lines | 50 |
Lines | 0 |
Ratio | 0 % |
Changes | 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 |
||
46 | protected function getDefaultMapping() : array |
||
47 | { |
||
48 | return array( |
||
49 | 'subscription' => array( |
||
50 | 2 => 'subscription.interval', |
||
51 | 3 => 'subscription.datenext', |
||
52 | 4 => 'subscription.dateend', |
||
53 | 5 => 'subscription.period', |
||
54 | 6 => 'subscription.status', |
||
55 | 7 => 'subscription.ctime', |
||
56 | 8 => 'subscription.ordbaseid', |
||
57 | ), |
||
58 | 'address' => array( |
||
59 | 2 => 'order.address.type', |
||
60 | 3 => 'order.address.salutation', |
||
61 | 4 => 'order.address.company', |
||
62 | 5 => 'order.address.vatid', |
||
63 | 6 => 'order.address.title', |
||
64 | 7 => 'order.address.firstname', |
||
65 | 8 => 'order.address.lastname', |
||
66 | 9 => 'order.address.address1', |
||
67 | 10 => 'order.address.address2', |
||
68 | 11 => 'order.address.address3', |
||
69 | 12 => 'order.address.postal', |
||
70 | 13 => 'order.address.city', |
||
71 | 14 => 'order.address.state', |
||
72 | 15 => 'order.address.countryid', |
||
73 | 16 => 'order.address.languageid', |
||
74 | 17 => 'order.address.telephone', |
||
75 | 18 => 'order.address.telefax', |
||
76 | 19 => 'order.address.email', |
||
77 | 20 => 'order.address.website', |
||
78 | 21 => 'order.address.longitude', |
||
79 | 22 => 'order.address.latitude', |
||
80 | ), |
||
81 | 'product' => array( |
||
82 | 2 => 'order.product.type', |
||
83 | 3 => 'order.product.stocktype', |
||
84 | 4 => 'order.product.vendor', |
||
85 | 5 => 'order.product.prodcode', |
||
86 | 6 => 'order.product.productid', |
||
87 | 7 => 'order.product.quantity', |
||
88 | 8 => 'order.product.name', |
||
89 | 9 => 'order.product.mediaurl', |
||
90 | 10 => 'order.product.price', |
||
91 | 11 => 'order.product.costs', |
||
92 | 12 => 'order.product.rebate', |
||
93 | 13 => 'order.product.taxrate', |
||
94 | 14 => 'order.product.status', |
||
95 | 15 => 'order.product.position', |
||
96 | 16 => 'order.product.attribute.type', |
||
97 | 17 => 'order.product.attribute.code', |
||
98 | 18 => 'order.product.attribute.name', |
||
99 | 19 => 'order.product.attribute.value', |
||
100 | ), |
||
141 |
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