PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/helpers/FrmFormMigratorsHelper.php +0 -25 6.35.0 View file →
@@ -4,11 +4,8 @@
4 4 }
5 5
6 6 class FrmFormMigratorsHelper {
7 7
8 - /**
9 - * @return bool
10 - */
11 8 private static function is_dismissed( $form, $dismissed = null ) {
12 9 if ( $dismissed === null ) {
13 10 $dismissed = get_option( 'frm_dismissed' );
14 11 }
@@ -19,11 +16,8 @@
19 16
20 17 return false;
21 18 }
22 19
23 - /**
24 - * @return void
25 - */
26 20 public static function maybe_show_download_link() {
27 21 $forms = self::import_links();
28 22 foreach ( $forms as $form ) {
29 23 if ( ! self::is_dismissed( $form ) ) {
@@ -37,10 +31,8 @@
37 31 }
38 32
39 33 /**
40 34 * @since 4.05
41 - *
42 - * @return void
43 35 */
44 36 public static function maybe_add_to_inbox() {
45 37 $inbox = new FrmInbox();
46 38 $forms = self::import_links();
@@ -58,11 +50,8 @@
58 50 );
59 51 }
60 52 }
61 53
62 - /**
63 - * @return array
64 - */
65 54 private static function import_links() {
66 55 if ( ! current_user_can( 'activate_plugins' ) ) {
67 56 return array();
68 57 }
@@ -82,11 +71,8 @@
82 71 }
83 72 return $forms;
84 73 }
85 74
86 - /**
87 - * @return string[][]
88 - */
89 75 private static function importable_forms() {
90 76 return array(
91 77 'gf' => array(
92 78 'class' => 'FrmGravityImporter',
@@ -123,14 +109,8 @@
123 109 </div>
124 110 <?php
125 111 }
126 112
127 - /**
128 - * @param array $install
129 - * @param string $label
130 - *
131 - * @return void
132 - */
133 113 private static function install_button( $install, $label = '' ) {
134 114 $primary = 'button-secondary frm-button-secondary ';
135 115
136 116 if ( empty( $label ) ) {
@@ -160,11 +140,8 @@
160 140 </a>
161 141 <?php
162 142 }
163 143
164 - /**
165 - * @return void
166 - */
167 144 public static function dismiss_migrator() {
168 145 check_ajax_referer( 'frm_ajax', 'nonce' );
169 146 $dismissed = get_option( 'frm_dismissed' );
170 147 if ( empty( $dismissed ) ) {
@@ -176,10 +153,8 @@
176 153 }
177 154
178 155 /**
179 156 * @deprecated 4.05
180 - *
181 - * @return void
182 157 */
183 158 public static function notification_count() {
184 159 _deprecated_function( __METHOD__, '4.05' );
185 160 }