public static function check( array $fields, array $data ) {
		$dependency = new static( $data );

		foreach ( $fields as $field ) {
			if ( ! $field->get_option( 'deps' ) ) {
				continue;
			}

			$satisfied = $dependency->apply(
				$deps = $field->get_option( 'deps' )
			);

			$field->set_option( 'row_attributes',
				$field->get_option( 'row_attributes' ) + [
					'data-deps'      => esc_attr( json_encode( $deps, JSON_HEX_APOS ) ),
					'data-satisfied' => $satisfied ? 'true' : 'false',
				]
			);

			$field->set_option( 'active', $satisfied );
		}
	}
public static function check( array $fields, array $data ) {
		$dependency = new static( $data );

		foreach ( $fields as $field ) {
			if ( ! $field->get_option( 'deps' ) ) {
				continue;
			}

			$satisfied = $dependency->apply(
				$deps = $field->get_option( 'deps' )
			);

			$field->set_option( 'row_attributes',
				$field->get_option( 'row_attributes' ) + [
					'data-deps'      => esc_attr( json_encode( $deps, JSON_HEX_APOS ) ),
					'data-satisfied' => $satisfied ? 'true' : 'false',
				]
			);

			$field->set_option( 'active', $satisfied );
		}
	}
public static function check ( array $ fields , array $ data ) { $ dependency = new static ( $ data ) ; foreach ( $ fields as $ field ) { if ( ! $ field -> get_option ( 'deps' ) ) { continue ; } $ satisfied = $ dependency -> apply ( $ deps = $ field -> get_option ( 'deps' ) ) ; $ field -> set_option ( 'row_attributes' , $ field -> get_option ( 'row_attributes' ) + [ 'data-deps' => esc_attr ( json_encode ( $ deps , JSON_HEX_APOS ) ) , 'data-satisfied' => $ satisfied ? 'true' : 'false' , ] ) ; $ field -> set_option ( 'active' , $ satisfied ) ; } }
Check the fields dependencies.

@param \WPLibs\Form\Contracts\Field[] $fields
@param array                          $data
@return void
Check the fields dependencies .