Completed
Pull Request — develop (#1383)
by Gennady
34:43 queued 14:42
created
future/includes/class-gv-renderer.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 			apply_filters( 'gravityview_directory_endpoint', 'entry' ),
48 48
 		);
49 49
 
50
-		foreach( get_post_types() as $post_type ) {
50
+		foreach ( get_post_types() as $post_type ) {
51 51
 			if ( $slug = \GV\Utils::get( get_post_type_object( $post_type )->rewrite, 'slug' ) ) {
52
-				$reserved_slugs[] = $slug;
52
+				$reserved_slugs[ ] = $slug;
53 53
 			}
54 54
 		}
55 55
 
@@ -82,8 +82,7 @@  discard block
 block discarded – undo
82 82
 				$tab = __( 'Edit Entry', 'gravityview' );
83 83
 				$context = 'edit';
84 84
 				break;
85
-			case ( $gravityview->request->is_entry( $gravityview->view->form ? $gravityview->view->form->ID : 0 ) ):
86
-				$tab = __( 'Single Entry', 'gravityview' );
85
+			case ( $gravityview->request->is_entry( $gravityview->view->form ? $gravityview->view->form->ID : 0 ) ) : $tab = __( 'Single Entry', 'gravityview' );
87 86
 				$context = 'single';
88 87
 				break;
89 88
 			default:
@@ -103,7 +102,7 @@  discard block
 block discarded – undo
103 102
 		$action_text = sprintf( esc_html__( 'Add fields to %s', 'gravityview' ), $tab );
104 103
 		$message = esc_html__( 'You can only see this message because you are able to edit this View.', 'gravityview' );
105 104
 
106
-		$image =  sprintf( '<img alt="%s" src="%s" style="margin-top: 10px;" />', $tab, esc_url( plugins_url( sprintf( 'assets/images/tab-%s.png', $context ), GRAVITYVIEW_FILE ) ) );
105
+		$image = sprintf( '<img alt="%s" src="%s" style="margin-top: 10px;" />', $tab, esc_url( plugins_url( sprintf( 'assets/images/tab-%s.png', $context ), GRAVITYVIEW_FILE ) ) );
107 106
 		$output = sprintf( '<h3>%s <strong><a href="%s">%s</a></strong></h3><p>%s</p>', $title, esc_url( $edit_link ), $action_text, $message );
108 107
 
109 108
 		echo \GVCommon::generate_notice( $output . $image, 'gv-error error', 'edit_gravityview', $gravityview->view->ID );
Please login to merge, or discard this patch.