Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions classes/controllers/FrmFormsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3570,6 +3570,7 @@ public static function landing_page_preview_option() {
if ( false === $dir || ! file_exists( $dir . 'landing-page-preview-option.php' ) ) {
$dir = self::get_form_views_path();
}

include $dir . 'landing-page-preview-option.php';
}

Expand Down
1 change: 1 addition & 0 deletions classes/controllers/FrmStylesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ public static function custom_css( $message = '', $extra_args = array() ) {
if ( $settings ) {
$textarea_params['class'] = 'hide-if-js';
}

include FrmAppHelper::plugin_path() . '/classes/views/styles/custom_css.php';
}

Expand Down
1 change: 1 addition & 0 deletions classes/helpers/FrmDashboardHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ public function get_youtube_video( $classes ) {
if ( null === $template['id'] ) {
return;
}

include FrmAppHelper::plugin_path() . '/classes/views/dashboard/templates/youtube-video.php';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BlankLineAfterClosingBraceSniff implements Sniff {
* @return array
*/
public function register() {
return array( T_VARIABLE, T_STRING );
return array( T_VARIABLE, T_STRING, T_INCLUDE, T_INCLUDE_ONCE, T_REQUIRE, T_REQUIRE_ONCE );
}

/**
Expand Down Expand Up @@ -101,6 +101,8 @@ public function process( File $phpcsFile, $stackPtr ) {
if ( $tokens[ $nextToken ]['code'] !== T_OPEN_PARENTHESIS ) {
return;
}
} elseif ( in_array( $tokens[ $stackPtr ]['code'], array( T_INCLUDE, T_INCLUDE_ONCE, T_REQUIRE, T_REQUIRE_ONCE ), true ) ) {
// Include/require statements are valid statement starts, no additional check needed.
}

// Find the first token on the current line.
Expand Down
Loading