ConfigBlock   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A lazy_get_children() 0 18 1
1
<?php
2
3
/*
4
 * This file is part of the Icybee package.
5
 *
6
 * (c) Olivier Laviale <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Icybee\Modules\Files\Block;
13
14
use Brickrouge\Element;
15
use Brickrouge\Form;
16
use Brickrouge\Text;
17
18
/**
19
 * A block to configure files.
20
 */
21
class ConfigBlock extends \Icybee\Block\ConfigBlock
22
{
23
	protected function lazy_get_children()
24
	{
25
		$ns = $this->module->flat_id;
26
27
		return array_merge(parent::lazy_get_children(), [
28
29
			"local[$ns.max_file_size]" => new Text([
30
31
				Form::LABEL => 'max_file_size',
0 ignored issues
show
Deprecated Code introduced by
The constant Brickrouge\Form::LABEL has been deprecated.

This class constant has been deprecated.

Loading history...
32
				Text::ADDON => 'Kb', // TODO-20110206: use conventions
33
				Element::DEFAULT_VALUE => 16000,
34
35
				'class' => 'measure',
36
				'size' => 6
37
38
			])
39
		]);
40
	}
41
}
42