Completed
Pull Request — develop (#1360)
by Zack
16:26
created
includes/extensions/duplicate-entry/class-duplicate-entry.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 *
88 88
 	 * @param array $file_paths List of template paths ordered
89 89
 	 *
90
-	 * @return array File paths, with duplicate field path added at index 117
90
+	 * @return string[] File paths, with duplicate field path added at index 117
91 91
 	 */
92 92
 	public function add_template_path( $file_paths ) {
93 93
 
@@ -193,7 +193,6 @@  discard block
 block discarded – undo
193 193
 	 * @since 2.5
194 194
 	 *
195 195
 	 * @param  array 	    $visibility_caps        Array of capabilities to display in field dropdown.
196
-	 * @param  string       $field_type  Type of field options to render (`field` or `widget`)
197 196
 	 * @param  string       $template_id Table slug
198 197
 	 * @param  float|string $field_id    GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by`
199 198
 	 * @param  string       $context     What context are we in? Example: `single` or `directory`
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	public static function get_duplicate_link( $entry, $view_id, $post_id = null ) {
261 261
 		self::getInstance()->set_entry( $entry );
262 262
 
263
-        $base = GravityView_API::directory_link( $post_id ? : $view_id, true );
263
+		$base = GravityView_API::directory_link( $post_id ? : $view_id, true );
264 264
 
265 265
 		if ( empty( $base ) ) {
266 266
 			gravityview()->log->error( 'Post ID does not exist: {post_id}', array( 'post_id' => $post_id ) );
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 			'action'	=> 'duplicate',
275 275
 			'entry_id'	=> $entry_slug,
276 276
 			'gvid' => $view_id,
277
-            'view_id' => $view_id,
277
+			'view_id' => $view_id,
278 278
 		), $base );
279 279
 
280 280
 		$url = wp_nonce_url( $actionurl, 'duplicate_'.$entry_slug, 'duplicate' );
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 		 * @since 2.5
470 470
 		 * @param  array $duplicated_entry The duplicated entry
471 471
 		 * @param  array $entry The original entry
472
-		*/
472
+		 */
473 473
 		do_action( 'gravityview/duplicate-entry/duplicated', $duplicated_entry, $entry );
474 474
 
475 475
 		gravityview()->log->debug( 'Duplicate response: {duplicate_response}', array( 'duplicate_response' => $duplicate_response ) );
Please login to merge, or discard this patch.