Code Duplication    Length = 4-4 lines in 2 locations

content/content.delete.php 1 location

@@ 76-79 (lines=4) @@
73
			
74
			// Validate parent entry exists
75
			$entry = EntryManager::fetch($entryId);
76
			if ($entry == null || count($entry) != 1) {
77
				$this->_Result['error'] = __('Parent entry not found');
78
				return;
79
			}
80
			if (is_array($entry)) {
81
				$entry = $entry[0];
82
			}

content/content.save.php 1 location

@@ 106-109 (lines=4) @@
103
			
104
			// Validate parent entry exists
105
			$entry = EntryManager::fetch($entryId);
106
			if ($entry == null || count($entry) != 1) {
107
				$this->_Result['error'] = __('Parent entry not found');
108
				return;
109
			}
110
			if (is_array($entry)) {
111
				$entry = $entry[0];
112
			}