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: 0 additions & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
'no_useless_else' => true,
'no_superfluous_elseif' => true,
'elseif' => true,
'phpdoc_add_missing_param_annotation' => true,
'no_extra_blank_lines' => true,
'no_trailing_whitespace' => true,
'no_whitespace_in_blank_line' => true,
Expand Down
2 changes: 2 additions & 0 deletions classes/helpers/FrmAppHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,8 @@ private static function allowed_html( $allowed ) {

/**
* @since 2.05.03
*
* @return array
*/
private static function safe_html() {
$allow_class = array(
Expand Down
3 changes: 3 additions & 0 deletions classes/helpers/FrmEntriesListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class FrmEntriesListHelper extends FrmListHelper {
*/
public $total_items = 0;

/**
* @param array $args
*/
public function __construct( $args ) {
parent::__construct( $args );
$this->screen->set_screen_reader_content(
Expand Down
3 changes: 3 additions & 0 deletions classes/helpers/FrmFormsListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class FrmFormsListHelper extends FrmListHelper {

public $total_items = 0;

/**
* @param array $args
*/
public function __construct( $args ) {
$this->status = self::get_param( array( 'param' => 'form_type' ) );

Expand Down
3 changes: 3 additions & 0 deletions classes/helpers/FrmListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ public function ajax_user_can() {
return current_user_can( 'administrator' );
}

/**
* @return array
*/
public function get_columns() {
return array();
}
Expand Down
3 changes: 3 additions & 0 deletions classes/models/FrmMigrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ private function migrate_data( $old_db_version ) {
}
}

/**
* @return bool
*/
public function uninstall() {
if ( ! current_user_can( 'administrator' ) ) {
$frm_settings = FrmAppHelper::get_settings();
Expand Down
3 changes: 3 additions & 0 deletions classes/models/FrmOnSubmitAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function form( $instance, $args = array() ) {
include FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/on_submit_settings.php';
}

/**
* @return array
*/
public function get_defaults() {
return array(
'success_action' => FrmOnSubmitHelper::get_default_action_type(),
Expand Down
3 changes: 3 additions & 0 deletions classes/models/FrmSpamCheckUseWPComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

class FrmSpamCheckUseWPComments extends FrmSpamCheck {

/**
* @return bool
*/
protected function check() {
$spam_comments = get_comments(
array(
Expand Down
3 changes: 3 additions & 0 deletions classes/models/FrmSpamCheckWPDisallowedWords.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

class FrmSpamCheckWPDisallowedWords extends FrmSpamCheck {

/**
* @return bool
*/
public function check() {
$mod_keys = trim( $this->get_disallowed_words() );

Expand Down
3 changes: 3 additions & 0 deletions classes/models/fields/FrmFieldNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ protected function add_extra_html_atts( $args, &$input_html ) {
$this->add_min_max( $args, $input_html );
}

/**
* @param array $args
*/
public function validate( $args ) {
$errors = array();

Expand Down
3 changes: 3 additions & 0 deletions classes/models/fields/FrmFieldText.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ protected function field_settings_for_type() {
);
}

/**
* @param array $args
*/
public function validate( $args ) {
$errors = parent::validate( $args );
$max_length = intval( FrmField::get_option( $this->field, 'max' ) );
Expand Down
3 changes: 3 additions & 0 deletions classes/models/fields/FrmFieldUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ protected function fill_default_atts( &$atts ) {
}
}

/**
* @param array $args
*/
public function validate( $args ) {
$value = $args['value'];

Expand Down
8 changes: 8 additions & 0 deletions classes/models/fields/FrmFieldUserID.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ protected function include_form_builder_file() {
return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-user-id.php';
}

/**
* @param array $args
*/
public function prepare_field_html( $args ) {
$args = $this->fill_display_field_values( $args );
$value = $this->get_field_value( $args );
Expand All @@ -71,6 +74,11 @@ protected function get_field_value( $args ) {
return is_numeric( $this->field['value'] ) || $posted_value || $updating ? $this->field['value'] : $user_ID;
}

/**
* @param array $args
*
* @return array
*/
public function validate( $args ) {
// phpcs:ignore Universal.Operators.StrictComparisons
if ( '' == $args['value'] ) {
Expand Down
Loading
Loading