Code Duplication    Length = 13-13 lines in 2 locations

components/Pages.php 1 location

@@ 134-146 (lines=13) @@
131
	 *
132
	 * @return array
133
	 */
134
	public function get_capabilities( $caps ) {
135
136
		$caps = array_merge(
137
			$caps, array(
138
				'edit_' . $this->capability_type,
139
				'read_' . $this->capability_type,
140
				'delete_' . $this->capability_type,
141
				'edit_' . $this->capability_type . 's',
142
				'edit_others_' . $this->capability_type . 's',
143
				'publish_' . $this->capability_type . 's',
144
				'read_private_' . $this->capability_type . 's',
145
				'edit_' . $this->capability_type . 's',
146
			)
147
		);
148
149
		return $caps;

components/Templates/Templates.php 1 location

@@ 130-142 (lines=13) @@
127
	 *
128
	 * @return array
129
	 */
130
	public function get_capabilities( $caps ) {
131
132
		$caps = array_merge(
133
			$caps, array(
134
				'edit_' . $this->capability_type,
135
				'read_' . $this->capability_type,
136
				'delete_' . $this->capability_type,
137
				'edit_' . $this->capability_type . 's',
138
				'edit_others_' . $this->capability_type . 's',
139
				'publish_' . $this->capability_type . 's',
140
				'read_private_' . $this->capability_type . 's',
141
				'edit_' . $this->capability_type . 's',
142
			)
143
		);
144
145
		return $caps;