Passed
Push — master ( cfcf77...be88f5 )
by Aimeos
03:16
created

Standard::body()   B

Complexity

Conditions 8
Paths 31

Size

Total Lines 87
Code Lines 33

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 8
eloc 33
nc 31
nop 1
dl 0
loc 87
rs 8.1475
c 0
b 0
f 0

How to fix   Long Method   

Long Method

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:

1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2019-2022
6
 * @package Client
7
 * @subpackage Html
8
 */
9
10
11
namespace Aimeos\Client\Html\Basket\Bulk;
12
13
14
/**
15
 * Default implementation of bulk order HTML client.
16
 *
17
 * @package Client
18
 * @subpackage Html
19
 */
20
class Standard
21
	extends \Aimeos\Client\Html\Basket\Base
22
	implements \Aimeos\Client\Html\Common\Client\Factory\Iface
23
{
24
	/** client/html/basket/bulk/template-body
25
	 * Relative path to the HTML body template of the bulk order client.
26
	 *
27
	 * The template file contains the HTML code and processing instructions
28
	 * to generate the result shown in the body of the frontend. The
29
	 * configuration string is the path to the template file relative
30
	 * to the templates directory (usually in client/html/templates).
31
	 *
32
	 * You can overwrite the template file configuration in extensions and
33
	 * provide alternative templates. These alternative templates should be
34
	 * named like the default one but suffixed by
35
	 * an unique name. You may use the name of your project for this. If
36
	 * you've implemented an alternative client class as well, it
37
	 * should be suffixed by the name of the new class.
38
	 *
39
	 * @param string Relative path to the template creating code for the HTML page body
40
	 * @since 2019.10
41
	 * @category Developer
42
	 * @see client/html/basket/bulk/template-header
43
	 */
44
45
	/** client/html/basket/bulk/template-header
46
	 * Relative path to the HTML header template of the bulk order client.
47
	 *
48
	 * The template file contains the HTML code and processing instructions
49
	 * to generate the HTML code that is inserted into the HTML page header
50
	 * of the rendered page in the frontend. The configuration string is the
51
	 * path to the template file relative to the templates directory (usually
52
	 * in client/html/templates).
53
	 *
54
	 * You can overwrite the template file configuration in extensions and
55
	 * provide alternative templates. These alternative templates should be
56
	 * named like the default one but suffixed by
57
	 * an unique name. You may use the name of your project for this. If
58
	 * you've implemented an alternative client class as well, it
59
	 * should be suffixed by the name of the new class.
60
	 *
61
	 * @param string Relative path to the template creating code for the HTML page head
62
	 * @since 2019.10
63
	 * @category Developer
64
	 * @see client/html/basket/bulk/template-body
65
	 */
66
}
67