| @@ -41,9 +41,9 @@ | ||
| 41 | 41 | /** |
| 42 | 42 | * @param array $atts |
| 43 | 43 | */ |
| 44 | 44 | public function __construct( $atts = array() ) { |
| 45 | - if ( empty( $this->plugin_slug ) ) { | |
| 45 | + if ( ! $this->plugin_slug ) { | |
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | add_action( 'plugins_loaded', array( $this, 'load_hooks' ), 50 ); |
| @@ -48,9 +48,9 @@ | ||
| 48 | 48 | |
| 49 | 49 | add_action( 'plugins_loaded', array( $this, 'load_hooks' ), 50 ); |
| 50 | 50 | add_action( 'admin_init', array( $this, 'redirect' ), 9999 ); |
| 51 | 51 | |
| 52 | - if ( empty( $this->plugin_file ) ) { | |
| 52 | + if ( ! $this->plugin_file ) { | |
| 53 | 53 | $this->plugin_file = $this->plugin_slug . '.php'; |
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
| @@ -346,9 +346,9 @@ | ||
| 346 | 346 | 'license' => array( |
| 347 | 347 | 'label' => __( 'Connect to FormidableForms.com', 'formidable' ), |
| 348 | 348 | 'description' => __( 'Create a connection to get plugin downloads.', 'formidable' ), |
| 349 | 349 | 'button_label' => __( 'Connect an Account', 'formidable' ), |
| 350 | - 'current' => empty( $pro_installed ), | |
| 350 | + 'current' => ! $pro_installed, | |
| 351 | 351 | 'complete' => $pro_installed, |
| 352 | 352 | 'num' => 1, |
| 353 | 353 | ), |
| 354 | 354 | 'plugin' => array( |
| @@ -461,9 +461,9 @@ | ||
| 461 | 461 | * |
| 462 | 462 | * @return void |
| 463 | 463 | */ |
| 464 | 464 | protected function step_top( $step ) { |
| 465 | - $section_class = empty( $step['current'] ) ? 'frm_grey' : ''; | |
| 465 | + $section_class = ! empty( $step['current'] ) ? '' : 'frm_grey'; | |
| 466 | 466 | |
| 467 | 467 | // phpcs:disable Generic.WhiteSpace.ScopeIndent |
| 468 | 468 | ?> |
| 469 | 469 | <section class="step step-install <?php echo esc_attr( $section_class ); ?>"> |
| @@ -774,11 +774,10 @@ | ||
| 774 | 774 | * @return array |
| 775 | 775 | */ |
| 776 | 776 | protected function previously_imported_forms() { |
| 777 | 777 | $imported = array(); |
| 778 | - $forms = $this->form_options(); | |
| 779 | 778 | |
| 780 | - foreach ( $forms as $form ) { | |
| 779 | + foreach ( $this->form_options() as $form ) { | |
| 781 | 780 | $was_imported = isset( $form['form'] ) ? FrmForm::get_id_by_key( $form['form'] ) : false; |
| 782 | 781 | |
| 783 | 782 | if ( $was_imported ) { |
| 784 | 783 | $imported[ $form['form'] ] = $was_imported; |