Passed
Push — master ( a357e7...195a07 )
by Anton
04:22 queued 01:11
created

Widget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A processEntity() 0 1 1
1
<?php
2
3
namespace Modules\Entitizer\Handler\Edit {
4
5
	use Modules\Entitizer;
6
7
	class Widget extends Entitizer\Utils\Handler {
8
9
		use Entitizer\Common\Widget;
10
11
		protected $title = 'TITLE_CONTENT_WIDGETS_EDIT';
12
13
		# Handler configuration
14
15
		protected static $controller = 'Modules\Entitizer\Controller\Widget';
16
17
		protected static $link = '/admin/content/widgets';
18
19
		protected static $naming = 'title', $naming_new = 'WIDGETS_ITEM_NEW';
20
21
		protected static $form_class = 'Modules\Entitizer\Form\Widget';
22
23
		protected static $message_success_save = 'WIDGET_SUCCESS_SAVE';
24
25
		protected static $message_error_remove = 'WIDGET_ERROR_REMOVE';
26
27
		protected static $view = 'Blocks/Entitizer/Widgets/Main';
28
29
		# Add additional data for specific entity
30
31
		protected function processEntity() {}
32
	}
33
}
34