Code Duplication    Length = 16-16 lines in 2 locations

classes/Pods.php 2 locations

@@ 3244-3259 (lines=16) @@
3241
	 * @since 2.0
3242
	 * @link  https://pods.io/docs/delete/
3243
	 */
3244
	public function delete( $id = null ) {
3245
3246
		if ( null === $id ) {
3247
			$id = $this->id();
3248
		}
3249
3250
		$id = (int) $this->do_hook( 'delete', $id );
3251
3252
		if ( empty( $id ) ) {
3253
			return false;
3254
		}
3255
3256
		$params = array(
3257
			'pod' => $this->pod,
3258
			'id'  => $id
3259
		);
3260
3261
		return $this->api->delete_pod_item( $params );
3262
	}
@@ 3299-3314 (lines=16) @@
3296
	 * @since 2.0
3297
	 * @link  https://pods.io/docs/duplicate/
3298
	 */
3299
	public function duplicate( $id = null ) {
3300
3301
		if ( null === $id ) {
3302
			$id = $this->id();
3303
		}
3304
3305
		$id = (int) $this->do_hook( 'duplicate', $id );
3306
3307
		if ( empty( $id ) ) {
3308
			return false;
3309
		}
3310
3311
		$params = array(
3312
			'pod' => $this->pod,
3313
			'id'  => $id
3314
		);
3315
3316
		return $this->api->duplicate_pod_item( $params );
3317
	}