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