Conditions | 6 |
Paths | 19 |
Total Lines | 61 |
Code Lines | 24 |
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 |
||
69 | * @param string Relative path to the template creating code for the HTML page body |
||
70 | * @since 2014.03 |
||
71 | * @category Developer |
||
72 | * @see client/html/checkout/update/template-header |
||
73 | */ |
||
74 | |||
75 | /** client/html/checkout/update/template-header |
||
76 | * Relative path to the HTML header template of the checkout update client. |
||
77 | * |
||
78 | * The template file contains the HTML code and processing instructions |
||
79 | * to generate the HTML code that is inserted into the HTML page header |
||
80 | * of the rendered page in the frontend. The configuration string is the |
||
81 | * path to the template file relative to the templates directory (usually |
||
82 | * in client/html/templates). |
||
83 | * |
||
84 | * You can overwrite the template file configuration in extensions and |
||
85 | * provide alternative templates. These alternative templates should be |
||
86 | * named like the default one but suffixed by |
||
87 | * an unique name. You may use the name of your project for this. If |
||
88 | * you've implemented an alternative client class as well, it |
||
89 | * should be suffixed by the name of the new class. |
||
90 | * |
||
91 | * @param string Relative path to the template creating code for the HTML page head |
||
92 | * @since 2014.03 |
||
93 | * @category Developer |
||
94 | * @see client/html/checkout/update/template-body |
||
95 | */ |
||
96 | } |
||
97 |