Completed
Push — master ( ec7df5...df6338 )
by Stephanie
03:50
created
classes/helpers/FrmStylesHelper.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,6 +84,7 @@  discard block
 block discarded – undo
84 84
 	/**
85 85
 	 * @deprecated 3.02.03
86 86
 	 * @codeCoverageIgnore
87
+	 * @return string
87 88
 	 */
88 89
 	public static function get_form_for_page() {
89 90
 		_deprecated_function( __METHOD__, '3.02.03' );
@@ -212,7 +213,7 @@  discard block
 block discarded – undo
212 213
 
213 214
     /**
214 215
      * @since 2.0
215
-     * @return The class for this icon
216
+     * @return string class for this icon
216 217
      */
217 218
 	public static function icon_key_to_class( $key, $icon = '+', $type = 'arrow' ) {
218 219
 		if ( 'arrow' == $type && is_numeric( $key ) ) {
@@ -388,6 +389,7 @@  discard block
 block discarded – undo
388 389
 
389 390
 	/**
390 391
 	 * @since 2.3
392
+	 * @param string $default
391 393
 	 */
392 394
 	private static function get_color_output( $default, &$color ) {
393 395
 		$color = trim( $color );
Please login to merge, or discard this patch.
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -5,39 +5,39 @@  discard block
 block discarded – undo
5 5
 	 * @deprecated 3.02.03
6 6
 	 * @codeCoverageIgnore
7 7
 	 */
8
-    public static function jquery_themes() {
8
+	public static function jquery_themes() {
9 9
 		_deprecated_function( __METHOD__, '3.02.03', 'FrmProStylesController::jquery_themes' );
10 10
 
11
-        $themes = array(
12
-            'ui-lightness'  => 'UI Lightness',
13
-            'ui-darkness'   => 'UI Darkness',
14
-            'smoothness'    => 'Smoothness',
15
-            'start'         => 'Start',
16
-            'redmond'       => 'Redmond',
17
-            'sunny'         => 'Sunny',
18
-            'overcast'      => 'Overcast',
19
-            'le-frog'       => 'Le Frog',
20
-            'flick'         => 'Flick',
11
+		$themes = array(
12
+			'ui-lightness'  => 'UI Lightness',
13
+			'ui-darkness'   => 'UI Darkness',
14
+			'smoothness'    => 'Smoothness',
15
+			'start'         => 'Start',
16
+			'redmond'       => 'Redmond',
17
+			'sunny'         => 'Sunny',
18
+			'overcast'      => 'Overcast',
19
+			'le-frog'       => 'Le Frog',
20
+			'flick'         => 'Flick',
21 21
 			'pepper-grinder' => 'Pepper Grinder',
22
-            'eggplant'      => 'Eggplant',
23
-            'dark-hive'     => 'Dark Hive',
24
-            'cupertino'     => 'Cupertino',
25
-            'south-street'  => 'South Street',
26
-            'blitzer'       => 'Blitzer',
27
-            'humanity'      => 'Humanity',
28
-            'hot-sneaks'    => 'Hot Sneaks',
29
-            'excite-bike'   => 'Excite Bike',
30
-            'vader'         => 'Vader',
31
-            'dot-luv'       => 'Dot Luv',
32
-            'mint-choc'     => 'Mint Choc',
33
-            'black-tie'     => 'Black Tie',
34
-            'trontastic'    => 'Trontastic',
35
-            'swanky-purse'  => 'Swanky Purse',
36
-        );
22
+			'eggplant'      => 'Eggplant',
23
+			'dark-hive'     => 'Dark Hive',
24
+			'cupertino'     => 'Cupertino',
25
+			'south-street'  => 'South Street',
26
+			'blitzer'       => 'Blitzer',
27
+			'humanity'      => 'Humanity',
28
+			'hot-sneaks'    => 'Hot Sneaks',
29
+			'excite-bike'   => 'Excite Bike',
30
+			'vader'         => 'Vader',
31
+			'dot-luv'       => 'Dot Luv',
32
+			'mint-choc'     => 'Mint Choc',
33
+			'black-tie'     => 'Black Tie',
34
+			'trontastic'    => 'Trontastic',
35
+			'swanky-purse'  => 'Swanky Purse',
36
+		);
37 37
 
38 38
 		$themes = apply_filters( 'frm_jquery_themes', $themes );
39
-        return $themes;
40
-    }
39
+		return $themes;
40
+	}
41 41
 
42 42
 	/**
43 43
 	 * @deprecated 3.02.03
@@ -46,40 +46,40 @@  discard block
 block discarded – undo
46 46
 	public static function jquery_css_url( $theme_css ) {
47 47
 		_deprecated_function( __METHOD__, '3.02.03', 'FrmProStylesController::jquery_css_url' );
48 48
 
49
-        if ( $theme_css == -1 ) {
50
-            return;
51
-        }
49
+		if ( $theme_css == -1 ) {
50
+			return;
51
+		}
52 52
 
53
-        if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) {
54
-            $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css';
53
+		if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) {
54
+			$css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css';
55 55
 		} elseif ( preg_match( '/^http.?:\/\/.*\..*$/', $theme_css ) ) {
56
-            $css_file = $theme_css;
57
-        } else {
58
-            $uploads = self::get_upload_base();
56
+			$css_file = $theme_css;
57
+		} else {
58
+			$uploads = self::get_upload_base();
59 59
 			$file_path = '/formidable/css/' . $theme_css . '/jquery-ui.css';
60 60
 			if ( file_exists( $uploads['basedir'] . $file_path ) ) {
61
-                $css_file = $uploads['baseurl'] . $file_path;
62
-            } else {
61
+				$css_file = $uploads['baseurl'] . $file_path;
62
+			} else {
63 63
 				$css_file = FrmAppHelper::jquery_ui_base_url() . '/themes/' . $theme_css . '/jquery-ui.min.css';
64
-            }
65
-        }
64
+			}
65
+		}
66 66
 
67
-        return $css_file;
68
-    }
67
+		return $css_file;
68
+	}
69 69
 
70 70
 	/**
71 71
 	 * @deprecated 3.02.03
72 72
 	 * @codeCoverageIgnore
73 73
 	 */
74
-    public static function enqueue_jquery_css() {
74
+	public static function enqueue_jquery_css() {
75 75
 		_deprecated_function( __METHOD__, '3.02.03', 'FrmProStylesController::enqueue_jquery_css' );
76 76
 
77 77
 		$form = self::get_form_for_page();
78 78
 		$theme_css = FrmStylesController::get_style_val( 'theme_css', $form );
79
-        if ( $theme_css != -1 ) {
79
+		if ( $theme_css != -1 ) {
80 80
 			wp_enqueue_style( 'jquery-theme', self::jquery_css_url( $theme_css ), array(), FrmAppHelper::plugin_version() );
81
-        }
82
-    }
81
+		}
82
+	}
83 83
 
84 84
 	/**
85 85
 	 * @deprecated 3.02.03
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 			<a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=custom_css' ) ); ?>" class="nav-tab <?php echo ( 'custom_css' == $active ) ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Custom CSS', 'formidable' ); ?></a>
119 119
         </h2>
120 120
 <?php
121
-    }
121
+	}
122 122
 
123 123
 	/**
124 124
 	 * @since 2.05
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
 		);
211 211
 	}
212 212
 
213
-    /**
214
-     * @since 2.0
215
-     * @return The class for this icon
216
-     */
213
+	/**
214
+	 * @since 2.0
215
+	 * @return The class for this icon
216
+	 */
217 217
 	public static function icon_key_to_class( $key, $icon = '+', $type = 'arrow' ) {
218 218
 		if ( 'arrow' == $type && is_numeric( $key ) ) {
219 219
 			//frm_arrowup6_icon
@@ -232,20 +232,20 @@  discard block
 block discarded – undo
232 232
 			$class = 'frm_' . $plus[ $icon ];
233 233
 		}
234 234
 
235
-        if ( $key ) {
236
-            $class .= $key;
237
-        }
238
-        $class .= '_icon';
235
+		if ( $key ) {
236
+			$class .= $key;
237
+		}
238
+		$class .= '_icon';
239 239
 
240
-        return $class;
241
-    }
240
+		return $class;
241
+	}
242 242
 
243 243
 	public static function bs_icon_select( $style, $frm_style, $type = 'arrow' ) {
244 244
 		$function_name = $type . '_icons';
245 245
 		$icons = self::$function_name();
246 246
 		unset( $function_name );
247 247
 
248
-        $name = ( 'arrow' == $type ) ? 'collapse_icon' : 'repeat_icon';
248
+		$name = ( 'arrow' == $type ) ? 'collapse_icon' : 'repeat_icon';
249 249
 ?>
250 250
     	<select name="<?php echo esc_attr( $frm_style->get_field_name( $name ) ); ?>" id="frm_<?php echo esc_attr( $name ); ?>" class="frm_icon_font frm_multiselect hide-if-js">
251 251
             <?php foreach ( $icons as $key => $icon ) { ?>
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             </ul>
279 279
         </div>
280 280
 <?php
281
-    }
281
+	}
282 282
 
283 283
 	public static function hex2rgb( $hex ) {
284 284
 		$hex = str_replace( '#', '', $hex );
Please login to merge, or discard this patch.