@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | $field_options = parent::field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ); |
48 | 48 | |
49 | 49 | // It's the parent field, not an input |
50 | - if( floor( $field_id ) === floatval( $field_id ) ) { |
|
50 | + if ( floor( $field_id ) === floatval( $field_id ) ) { |
|
51 | 51 | return $field_options; |
52 | 52 | } |
53 | 53 | |
54 | - if( $this->is_choice_value_enabled() ) { |
|
54 | + if ( $this->is_choice_value_enabled() ) { |
|
55 | 55 | |
56 | 56 | $desc = esc_html__( 'This input has a label and a value. What should be displayed?', 'gravityview' ); |
57 | 57 | $default = 'value'; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | - $field_options['choice_display'] = array( |
|
72 | + $field_options[ 'choice_display' ] = array( |
|
73 | 73 | 'type' => 'radio', |
74 | 74 | 'class' => 'vertical', |
75 | 75 | 'label' => __( 'What should be displayed:', 'gravityview' ), |
@@ -210,11 +210,11 @@ discard block |
||
210 | 210 | return; |
211 | 211 | } |
212 | 212 | |
213 | - if ( ! isset( $_REQUEST['_wpnonce'] ) ) { |
|
213 | + if ( ! isset( $_REQUEST[ '_wpnonce' ] ) ) { |
|
214 | 214 | return; |
215 | 215 | } |
216 | 216 | |
217 | - $verify_nonce = wp_verify_nonce( $_REQUEST['_wpnonce'], self::REVOKE_SUPPORT_QUERY_PARAM ); |
|
217 | + $verify_nonce = wp_verify_nonce( $_REQUEST[ '_wpnonce' ], self::REVOKE_SUPPORT_QUERY_PARAM ); |
|
218 | 218 | |
219 | 219 | if ( ! $verify_nonce ) { |
220 | 220 | $this->logging->log( 'Removing user failed: Nonce expired (Nonce value: ' . $verify_nonce . ')', __METHOD__, 'error' ); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * @return string |
307 | 307 | */ |
308 | 308 | public function get() { |
309 | - return (string) get_site_option( $this->option_name ); |
|
309 | + return (string)get_site_option( $this->option_name ); |
|
310 | 310 | } |
311 | 311 | |
312 | 312 | /** |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | $user_ids = get_users( $args ); |
131 | 131 | |
132 | - return empty( $user_ids ) ? false : (int) $user_ids[0]; |
|
132 | + return empty( $user_ids ) ? false : (int)$user_ids[ 0 ]; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | return false; |
154 | 154 | } |
155 | 155 | |
156 | - if ( time() > (int) $expiration ) { |
|
156 | + if ( time() > (int)$expiration ) { |
|
157 | 157 | return false; |
158 | 158 | } |
159 | 159 | |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | |
380 | 380 | $user = get_users( $args ); |
381 | 381 | |
382 | - return empty( $user ) ? null : $user[0]; |
|
382 | + return empty( $user ) ? null : $user[ 0 ]; |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | /** |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | $support_users = $this->get_all(); |
438 | 438 | |
439 | 439 | if ( $support_users ) { |
440 | - return $support_users[0]; |
|
440 | + return $support_users[ 0 ]; |
|
441 | 441 | } |
442 | 442 | |
443 | 443 | return null; |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | 'number' => 1, |
525 | 525 | ) ); |
526 | 526 | |
527 | - $reassign_id = empty( $admins ) ? null : $admins[0]->ID; |
|
527 | + $reassign_id = empty( $admins ) ? null : $admins[ 0 ]->ID; |
|
528 | 528 | |
529 | 529 | $this->logging->log( 'Reassign user ID: ' . var_export( $reassign_id, true ), __METHOD__, 'info' ); |
530 | 530 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | // autoload_classmap.php @generated by Composer |
4 | 4 | |
5 | -$vendorDir = dirname(dirname(__FILE__)); |
|
6 | -$baseDir = dirname($vendorDir); |
|
5 | +$vendorDir = dirname( dirname( __FILE__ ) ); |
|
6 | +$baseDir = dirname( $vendorDir ); |
|
7 | 7 | |
8 | 8 | return array( |
9 | 9 | 'ComposerAutoloaderInitb5638313a52df4893eb45c04efdaa356' => $vendorDir . '/trustedlogin/client/vendor/composer/autoload_real.php', |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | // autoload_psr4.php @generated by Composer |
4 | 4 | |
5 | -$vendorDir = dirname(dirname(__FILE__)); |
|
6 | -$baseDir = dirname($vendorDir); |
|
5 | +$vendorDir = dirname( dirname( __FILE__ ) ); |
|
6 | +$baseDir = dirname( $vendorDir ); |
|
7 | 7 | |
8 | 8 | return array( |
9 | - 'TrustedLogin\\' => array($baseDir . '/src', $vendorDir . '/trustedlogin/client/src'), |
|
10 | - 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), |
|
11 | - 'Katzgrau\\KLogger\\' => array($vendorDir . '/katzgrau/klogger/src'), |
|
12 | - 'KatzGrau\\KLogger\\' => array($baseDir . '/src'), |
|
9 | + 'TrustedLogin\\' => array( $baseDir . '/src', $vendorDir . '/trustedlogin/client/src' ), |
|
10 | + 'Psr\\Log\\' => array( $vendorDir . '/psr/log/Psr/Log' ), |
|
11 | + 'Katzgrau\\KLogger\\' => array( $vendorDir . '/katzgrau/klogger/src' ), |
|
12 | + 'KatzGrau\\KLogger\\' => array( $baseDir . '/src' ), |
|
13 | 13 | ); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | // autoload_files.php @generated by Composer |
4 | 4 | |
5 | -$vendorDir = dirname(dirname(__FILE__)); |
|
6 | -$baseDir = dirname($vendorDir); |
|
5 | +$vendorDir = dirname( dirname( __FILE__ ) ); |
|
6 | +$baseDir = dirname( $vendorDir ); |
|
7 | 7 | |
8 | 8 | return array( |
9 | 9 | '5255c38a0faeba867671b61dfda6d864' => $vendorDir . '/paragonie/random_compat/lib/random.php', |
@@ -6,48 +6,48 @@ discard block |
||
6 | 6 | |
7 | 7 | class ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d |
8 | 8 | { |
9 | - public static $files = array ( |
|
9 | + public static $files = array( |
|
10 | 10 | '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php', |
11 | 11 | '3109cb1a231dcd04bee1f9f620d46975' => __DIR__ . '/..' . '/paragonie/sodium_compat/autoload.php', |
12 | 12 | ); |
13 | 13 | |
14 | - public static $prefixLengthsPsr4 = array ( |
|
14 | + public static $prefixLengthsPsr4 = array( |
|
15 | 15 | 'T' => |
16 | - array ( |
|
16 | + array( |
|
17 | 17 | 'TrustedLogin\\' => 13, |
18 | 18 | ), |
19 | 19 | 'P' => |
20 | - array ( |
|
20 | + array( |
|
21 | 21 | 'Psr\\Log\\' => 8, |
22 | 22 | ), |
23 | 23 | 'K' => |
24 | - array ( |
|
24 | + array( |
|
25 | 25 | 'Katzgrau\\KLogger\\' => 17, |
26 | 26 | 'KatzGrau\\KLogger\\' => 17, |
27 | 27 | ), |
28 | 28 | ); |
29 | 29 | |
30 | - public static $prefixDirsPsr4 = array ( |
|
30 | + public static $prefixDirsPsr4 = array( |
|
31 | 31 | 'TrustedLogin\\' => |
32 | - array ( |
|
32 | + array( |
|
33 | 33 | 0 => __DIR__ . '/../..' . '/src', |
34 | 34 | 1 => __DIR__ . '/..' . '/trustedlogin/client/src', |
35 | 35 | ), |
36 | 36 | 'Psr\\Log\\' => |
37 | - array ( |
|
37 | + array( |
|
38 | 38 | 0 => __DIR__ . '/..' . '/psr/log/Psr/Log', |
39 | 39 | ), |
40 | 40 | 'Katzgrau\\KLogger\\' => |
41 | - array ( |
|
41 | + array( |
|
42 | 42 | 0 => __DIR__ . '/..' . '/katzgrau/klogger/src', |
43 | 43 | ), |
44 | 44 | 'KatzGrau\\KLogger\\' => |
45 | - array ( |
|
45 | + array( |
|
46 | 46 | 0 => __DIR__ . '/../..' . '/src', |
47 | 47 | ), |
48 | 48 | ); |
49 | 49 | |
50 | - public static $classMap = array ( |
|
50 | + public static $classMap = array( |
|
51 | 51 | 'ComposerAutoloaderInitb5638313a52df4893eb45c04efdaa356' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/autoload_real.php', |
52 | 52 | 'Composer\\Autoload\\ClassLoader' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/ClassLoader.php', |
53 | 53 | 'Composer\\Autoload\\ComposerStaticInitb5638313a52df4893eb45c04efdaa356' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/autoload_static.php', |
@@ -178,13 +178,13 @@ discard block |
||
178 | 178 | 'TypeError' => __DIR__ . '/..' . '/paragonie/random_compat/lib/error_polyfill.php', |
179 | 179 | ); |
180 | 180 | |
181 | - public static function getInitializer(ClassLoader $loader) |
|
181 | + public static function getInitializer( ClassLoader $loader ) |
|
182 | 182 | { |
183 | - return \Closure::bind(function () use ($loader) { |
|
183 | + return \Closure::bind( function() use ( $loader ) { |
|
184 | 184 | $loader->prefixLengthsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixLengthsPsr4; |
185 | 185 | $loader->prefixDirsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixDirsPsr4; |
186 | 186 | $loader->classMap = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$classMap; |
187 | 187 | |
188 | - }, null, ClassLoader::class); |
|
188 | + }, null, ClassLoader::class ); |
|
189 | 189 | } |
190 | 190 | } |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | { |
7 | 7 | private static $loader; |
8 | 8 | |
9 | - public static function loadClassLoader($class) |
|
9 | + public static function loadClassLoader( $class ) |
|
10 | 10 | { |
11 | - if ('Composer\Autoload\ClassLoader' === $class) { |
|
11 | + if ( 'Composer\Autoload\ClassLoader' === $class ) { |
|
12 | 12 | require __DIR__ . '/ClassLoader.php'; |
13 | 13 | } |
14 | 14 | } |
@@ -18,47 +18,47 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public static function getLoader() |
20 | 20 | { |
21 | - if (null !== self::$loader) { |
|
21 | + if ( null !== self::$loader ) { |
|
22 | 22 | return self::$loader; |
23 | 23 | } |
24 | 24 | |
25 | 25 | require __DIR__ . '/platform_check.php'; |
26 | 26 | |
27 | - spl_autoload_register(array('ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d', 'loadClassLoader'), true, true); |
|
28 | - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); |
|
29 | - spl_autoload_unregister(array('ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d', 'loadClassLoader')); |
|
27 | + spl_autoload_register( array( 'ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d', 'loadClassLoader' ), true, true ); |
|
28 | + self::$loader = $loader = new \Composer\Autoload\ClassLoader( \dirname( \dirname( __FILE__ ) ) ); |
|
29 | + spl_autoload_unregister( array( 'ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d', 'loadClassLoader' ) ); |
|
30 | 30 | |
31 | - $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
|
32 | - if ($useStaticLoader) { |
|
31 | + $useStaticLoader = PHP_VERSION_ID >= 50600 && ! defined( 'HHVM_VERSION' ) && ( ! function_exists( 'zend_loader_file_encoded' ) || ! zend_loader_file_encoded() ); |
|
32 | + if ( $useStaticLoader ) { |
|
33 | 33 | require __DIR__ . '/autoload_static.php'; |
34 | 34 | |
35 | - call_user_func(\Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::getInitializer($loader)); |
|
35 | + call_user_func( \Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::getInitializer( $loader ) ); |
|
36 | 36 | } else { |
37 | 37 | $map = require __DIR__ . '/autoload_namespaces.php'; |
38 | - foreach ($map as $namespace => $path) { |
|
39 | - $loader->set($namespace, $path); |
|
38 | + foreach ( $map as $namespace => $path ) { |
|
39 | + $loader->set( $namespace, $path ); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $map = require __DIR__ . '/autoload_psr4.php'; |
43 | - foreach ($map as $namespace => $path) { |
|
44 | - $loader->setPsr4($namespace, $path); |
|
43 | + foreach ( $map as $namespace => $path ) { |
|
44 | + $loader->setPsr4( $namespace, $path ); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | $classMap = require __DIR__ . '/autoload_classmap.php'; |
48 | - if ($classMap) { |
|
49 | - $loader->addClassMap($classMap); |
|
48 | + if ( $classMap ) { |
|
49 | + $loader->addClassMap( $classMap ); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | - $loader->register(true); |
|
53 | + $loader->register( true ); |
|
54 | 54 | |
55 | - if ($useStaticLoader) { |
|
55 | + if ( $useStaticLoader ) { |
|
56 | 56 | $includeFiles = Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$files; |
57 | 57 | } else { |
58 | 58 | $includeFiles = require __DIR__ . '/autoload_files.php'; |
59 | 59 | } |
60 | - foreach ($includeFiles as $fileIdentifier => $file) { |
|
61 | - composerRequire984ed95bef2b0e3d4eeb0208a88dc67d($fileIdentifier, $file); |
|
60 | + foreach ( $includeFiles as $fileIdentifier => $file ) { |
|
61 | + composerRequire984ed95bef2b0e3d4eeb0208a88dc67d( $fileIdentifier, $file ); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return $loader; |
@@ -70,10 +70,10 @@ discard block |
||
70 | 70 | * @param string $file |
71 | 71 | * @return void |
72 | 72 | */ |
73 | -function composerRequire984ed95bef2b0e3d4eeb0208a88dc67d($fileIdentifier, $file) |
|
73 | +function composerRequire984ed95bef2b0e3d4eeb0208a88dc67d( $fileIdentifier, $file ) |
|
74 | 74 | { |
75 | - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
|
76 | - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
|
75 | + if ( empty( $GLOBALS[ '__composer_autoload_files' ][ $fileIdentifier ] ) ) { |
|
76 | + $GLOBALS[ '__composer_autoload_files' ][ $fileIdentifier ] = true; |
|
77 | 77 | |
78 | 78 | require $file; |
79 | 79 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | return; |
25 | 25 | } |
26 | 26 | |
27 | - $this->widget_description = __('Display a Gravity Forms form.', 'gravityview' ); |
|
27 | + $this->widget_description = __( 'Display a Gravity Forms form.', 'gravityview' ); |
|
28 | 28 | |
29 | 29 | $default_values = array( |
30 | 30 | 'header' => 1, |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | add_filter( 'gravityview/widget/hide_until_searched/allowlist', array( $this, 'add_to_allowlist' ) ); |
67 | 67 | |
68 | - parent::__construct( __( 'Gravity Forms', 'gravityview' ) , 'gravityforms', $default_values, $settings ); |
|
68 | + parent::__construct( __( 'Gravity Forms', 'gravityview' ), 'gravityforms', $default_values, $settings ); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | function add_to_allowlist( $allowlist ) { |
110 | 110 | |
111 | - $allowlist[] = 'gravityforms'; |
|
111 | + $allowlist[ ] = 'gravityforms'; |
|
112 | 112 | |
113 | 113 | return $allowlist; |
114 | 114 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @param string $content |
119 | 119 | * @param string $context |
120 | 120 | */ |
121 | - public function render_frontend( $widget_args, $content = '', $context = '') { |
|
121 | + public function render_frontend( $widget_args, $content = '', $context = '' ) { |
|
122 | 122 | |
123 | 123 | if ( ! $this->pre_render_frontend() ) { |
124 | 124 | return; |