Code Duplication    Length = 12-12 lines in 2 locations

classes/controllers/FrmAppController.php 2 locations

@@ 173-184 (lines=12) @@
170
171
		$views_installed = is_callable( 'FrmProAppHelper::views_is_installed' ) ? FrmProAppHelper::views_is_installed() : FrmAppHelper::pro_is_installed();
172
173
		if ( ! $views_installed ) {
174
			$nav_items[] = array(
175
				'link'    => admin_url( 'admin.php?page=formidable-views&frm-full=1&form=' . absint( $id ) ),
176
				'label'   => __( 'Views', 'formidable' ),
177
				'current' => array(),
178
				'page'    => 'formidable-views',
179
				'permission' => 'frm_view_entries',
180
				'atts'    => array(
181
					'class' => 'frm_noallow',
182
				),
183
			);
184
		}
185
186
		// Let people know reports and views exist.
187
		if ( ! FrmAppHelper::pro_is_installed() ) {
@@ 187-198 (lines=12) @@
184
		}
185
186
		// Let people know reports and views exist.
187
		if ( ! FrmAppHelper::pro_is_installed() ) {
188
			$nav_items[] = array(
189
				'link'    => admin_url( 'admin.php?page=formidable&frm_action=lite-reports&frm-full=1&form=' . absint( $id ) ),
190
				'label'   => __( 'Reports', 'formidable' ),
191
				'current' => array( 'reports' ),
192
				'page'    => 'formidable',
193
				'permission' => 'frm_view_entries',
194
				'atts'    => array(
195
					'class' => 'frm_noallow',
196
				),
197
			);
198
		}
199
200
		$nav_args = array(
201
			'form_id' => $id,