| @@ -227,13 +227,15 @@ | ||
| 227 | 227 | $args = array( |
| 228 | 228 | 'direction' => 'vertical', |
| 229 | 229 | ); |
| 230 | 230 | |
| 231 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 231 | 232 | ?> |
| 232 | 233 | <div class="frm-card-item frm-px-sm"> |
| 233 | 234 | <?php require FrmAppHelper::plugin_path() . '/classes/views/shared/get-free-templates-banner.php'; ?> |
| 234 | 235 | </div> |
| 235 | 236 | <?php |
| 237 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 236 | 238 | } |
| 237 | 239 | |
| 238 | 240 | /** |
| 239 | 241 | * Checks if the get free templates banner should be displayed. |
| @@ -255,10 +257,12 @@ | ||
| 255 | 257 | * |
| 256 | 258 | * @return bool |
| 257 | 259 | */ |
| 258 | 260 | private static function needs_free_plan( $template ) { |
| 261 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 259 | 262 | return self::needs_get_free_templates_banner() |
| 260 | 263 | && ! empty( $template['category_slugs'] ) |
| 261 | 264 | && in_array( 'free', $template['category_slugs'], true ) |
| 262 | 265 | && ! in_array( $template['id'], FrmFormTemplatesController::FREE_TEMPLATES_IDS, true ); |
| 266 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 263 | 267 | } |
| 264 | 268 | } |