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/models/FrmCreateFile.php +0 -27 6.35.0 View file →
@@ -27,10 +27,8 @@
27 27 }
28 28
29 29 /**
30 30 * @since 3.0
31 - *
32 - * @return void
33 31 */
34 32 private function set_new_file_path( $atts ) {
35 33 if ( isset( $atts['new_file_path'] ) ) {
36 34 $this->new_file_path = $atts['new_file_path'] . '/' . $this->file_name;
@@ -38,13 +36,8 @@
38 36 $this->new_file_path = $this->uploads['basedir'] . '/' . $this->folder_name . '/' . $this->file_name;
39 37 }
40 38 }
41 39
42 - /**
43 - * @param string $file_content
44 - *
45 - * @return void
46 - */
47 40 public function create_file( $file_content ) {
48 41 if ( $this->has_permission ) {
49 42 $dirs_exist = true;
50 43
@@ -60,10 +53,8 @@
60 53 }
61 54
62 55 /**
63 56 * @since 3.0
64 - *
65 - * @return void
66 57 */
67 58 public function append_file( $file_content ) {
68 59 if ( $this->has_permission ) {
69 60
@@ -82,10 +73,8 @@
82 73 *
83 74 * @since 3.0
84 75 *
85 76 * @param array $file_names And array of file paths
86 - *
87 - * @return void
88 77 */
89 78 public function combine_files( $file_names ) {
90 79 if ( $this->has_permission ) {
91 80 $content = '';
@@ -122,10 +111,8 @@
122 111 }
123 112
124 113 /**
125 114 * @since 3.0
126 - *
127 - * @return void
128 115 */
129 116 private function check_permission() {
130 117 $creds = $this->get_creds();
131 118
@@ -136,13 +123,8 @@
136 123 $this->has_permission = false;
137 124 }
138 125 }
139 126
140 - /**
141 - * @param true $dirs_exist
142 - *
143 - * @return void
144 - */
145 127 private function create_directories( &$dirs_exist ) {
146 128 global $wp_filesystem;
147 129
148 130 $needed_dirs = $this->get_needed_dirs();
@@ -156,11 +138,8 @@
156 138 }
157 139 }
158 140 }
159 141
160 - /**
161 - * @return string[]
162 - */
163 142 private function get_needed_dirs() {
164 143 $dir_names = explode( '/', $this->folder_name );
165 144 $needed_dirs = array();
166 145
@@ -187,11 +166,8 @@
187 166
188 167 return $creds;
189 168 }
190 169
191 - /**
192 - * @param string $type
193 - */
194 170 private function get_ftp_creds( $type ) {
195 171 $credentials = get_option(
196 172 'ftp_credentials',
197 173 array(
@@ -246,11 +222,8 @@
246 222
247 223 return false;
248 224 }
249 225
250 - /**
251 - * @return void
252 - */
253 226 private function show_error_message() {
254 227 if ( ! empty( $this->error_message ) ) {
255 228 echo '<div class="message">' . esc_html( $this->error_message ) . '</div>';
256 229 }