Code Duplication    Length = 3-3 lines in 5 locations

www/engine/System/Classes/Modules/Entitizer/Handler/Edit/Menuitem.php 1 location

@@ 44-46 (lines=3) @@
41
42
		protected function processEntityParent(Template\Block $parent) {
43
44
			if (0 !== $this->parent->id) $parent->getBlock('browse')->link = $this->parent->link;
45
46
			else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); }
47
		}
48
49
		/**

www/engine/System/Classes/Modules/Entitizer/Handler/Edit/Page.php 1 location

@@ 44-46 (lines=3) @@
41
42
		protected function processEntityParent(Template\Block $parent) {
43
44
			if ((0 !== $this->parent->id) && $this->parent->active) $parent->getBlock('browse')->link = $this->parent->link;
45
46
			else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); }
47
		}
48
49
		/**

www/engine/System/Classes/Modules/Entitizer/Lister/Menuitems.php 1 location

@@ 40-42 (lines=3) @@
37
38
		protected function processEntityParent(Template\Block $parent) {
39
40
			if (0 !== $this->parent->id) $parent->getBlock('browse')->link = $this->parent->link;
41
42
			else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); }
43
		}
44
45
		/**

www/engine/System/Classes/Modules/Entitizer/Lister/Pages.php 1 location

@@ 40-42 (lines=3) @@
37
38
		protected function processEntityParent(Template\Block $parent) {
39
40
			if ((0 !== $this->parent->id) && $this->parent->active) $parent->getBlock('browse')->link = $this->parent->link;
41
42
			else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); }
43
		}
44
45
		/**

www/engine/System/Classes/Modules/Entitizer/Utils/Lister.php 1 location

@@ 38-40 (lines=3) @@
35
36
			# Set edit button
37
38
			if (0 !== $this->parent->id) $parent->getBlock('edit')->id = $this->parent->id;
39
40
			else { $parent->getBlock('edit')->disable(); $parent->getBlock('edit_disabled')->enable(); }
41
42
			# Add parent additional data
43