Completed
Push — develop ( 1b0bc5...954aba )
by
unknown
20:01 queued 12s
created
vendor/composer/autoload_static.php 3 patches
Indentation   +176 added lines, -176 removed lines patch added patch discarded remove patch
@@ -6,185 +6,185 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d
8 8
 {
9
-    public static $files = array (
10
-        '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
11
-        '3109cb1a231dcd04bee1f9f620d46975' => __DIR__ . '/..' . '/paragonie/sodium_compat/autoload.php',
12
-    );
9
+	public static $files = array (
10
+		'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
11
+		'3109cb1a231dcd04bee1f9f620d46975' => __DIR__ . '/..' . '/paragonie/sodium_compat/autoload.php',
12
+	);
13 13
 
14
-    public static $prefixLengthsPsr4 = array (
15
-        'T' => 
16
-        array (
17
-            'TrustedLogin\\' => 13,
18
-        ),
19
-        'P' => 
20
-        array (
21
-            'Psr\\Log\\' => 8,
22
-        ),
23
-        'K' => 
24
-        array (
25
-            'Katzgrau\\KLogger\\' => 17,
26
-            'KatzGrau\\KLogger\\' => 17,
27
-        ),
28
-    );
14
+	public static $prefixLengthsPsr4 = array (
15
+		'T' => 
16
+		array (
17
+			'TrustedLogin\\' => 13,
18
+		),
19
+		'P' => 
20
+		array (
21
+			'Psr\\Log\\' => 8,
22
+		),
23
+		'K' => 
24
+		array (
25
+			'Katzgrau\\KLogger\\' => 17,
26
+			'KatzGrau\\KLogger\\' => 17,
27
+		),
28
+	);
29 29
 
30
-    public static $prefixDirsPsr4 = array (
31
-        'TrustedLogin\\' => 
32
-        array (
33
-            0 => __DIR__ . '/../..' . '/src',
34
-            1 => __DIR__ . '/..' . '/trustedlogin/client/src',
35
-        ),
36
-        'Psr\\Log\\' => 
37
-        array (
38
-            0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
39
-        ),
40
-        'Katzgrau\\KLogger\\' => 
41
-        array (
42
-            0 => __DIR__ . '/..' . '/katzgrau/klogger/src',
43
-        ),
44
-        'KatzGrau\\KLogger\\' => 
45
-        array (
46
-            0 => __DIR__ . '/../..' . '/src',
47
-        ),
48
-    );
30
+	public static $prefixDirsPsr4 = array (
31
+		'TrustedLogin\\' => 
32
+		array (
33
+			0 => __DIR__ . '/../..' . '/src',
34
+			1 => __DIR__ . '/..' . '/trustedlogin/client/src',
35
+		),
36
+		'Psr\\Log\\' => 
37
+		array (
38
+			0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
39
+		),
40
+		'Katzgrau\\KLogger\\' => 
41
+		array (
42
+			0 => __DIR__ . '/..' . '/katzgrau/klogger/src',
43
+		),
44
+		'KatzGrau\\KLogger\\' => 
45
+		array (
46
+			0 => __DIR__ . '/../..' . '/src',
47
+		),
48
+	);
49 49
 
50
-    public static $classMap = array (
51
-        'ComposerAutoloaderInitb5638313a52df4893eb45c04efdaa356' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/autoload_real.php',
52
-        'Composer\\Autoload\\ClassLoader' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/ClassLoader.php',
53
-        'Composer\\Autoload\\ComposerStaticInitb5638313a52df4893eb45c04efdaa356' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/autoload_static.php',
54
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
55
-        'Error' => __DIR__ . '/..' . '/paragonie/random_compat/lib/error_polyfill.php',
56
-        'Katzgrau\\KLogger\\Logger' => __DIR__ . '/..' . '/katzgrau/klogger/src/Logger.php',
57
-        'Katzgrau\\KLogger\\TrustedLogin_Logger' => __DIR__ . '/..' . '/trustedlogin/client/vendor/TrustedLogin/katzgrau/klogger/src/Logger.php',
58
-        'LoggerTest' => __DIR__ . '/..' . '/katzgrau/klogger/tests/LoggerTest.php',
59
-        'ParagonIE\\Sodium\\Compat' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Compat.php',
60
-        'ParagonIE\\Sodium\\Core\\BLAKE2b' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/BLAKE2b.php',
61
-        'ParagonIE\\Sodium\\Core\\ChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/ChaCha20.php',
62
-        'ParagonIE\\Sodium\\Core\\ChaCha20\\Ctx' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/ChaCha20/Ctx.php',
63
-        'ParagonIE\\Sodium\\Core\\ChaCha20\\IetfCtx' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/ChaCha20/IetfCtx.php',
64
-        'ParagonIE\\Sodium\\Core\\Curve25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519.php',
65
-        'ParagonIE\\Sodium\\Core\\Curve25519\\Fe' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Fe.php',
66
-        'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\Cached' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/Cached.php',
67
-        'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\P1p1' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/P1p1.php',
68
-        'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\P2' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/P2.php',
69
-        'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\P3' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/P3.php',
70
-        'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\Precomp' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/Precomp.php',
71
-        'ParagonIE\\Sodium\\Core\\Curve25519\\H' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/H.php',
72
-        'ParagonIE\\Sodium\\Core\\Ed25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Ed25519.php',
73
-        'ParagonIE\\Sodium\\Core\\HChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/HChaCha20.php',
74
-        'ParagonIE\\Sodium\\Core\\HSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/HSalsa20.php',
75
-        'ParagonIE\\Sodium\\Core\\Poly1305' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Poly1305.php',
76
-        'ParagonIE\\Sodium\\Core\\Poly1305\\State' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Poly1305/State.php',
77
-        'ParagonIE\\Sodium\\Core\\Salsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Salsa20.php',
78
-        'ParagonIE\\Sodium\\Core\\SipHash' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/SipHash.php',
79
-        'ParagonIE\\Sodium\\Core\\Util' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Util.php',
80
-        'ParagonIE\\Sodium\\Core\\X25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/X25519.php',
81
-        'ParagonIE\\Sodium\\Core\\XChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/XChaCha20.php',
82
-        'ParagonIE\\Sodium\\Core\\Xsalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Xsalsa20.php',
83
-        'ParagonIE\\Sodium\\Crypto' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Crypto.php',
84
-        'ParagonIE\\Sodium\\File' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/File.php',
85
-        'ParagonIE_Sodium_Compat' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Compat.php',
86
-        'ParagonIE_Sodium_Core32_BLAKE2b' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/BLAKE2b.php',
87
-        'ParagonIE_Sodium_Core32_ChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/ChaCha20.php',
88
-        'ParagonIE_Sodium_Core32_ChaCha20_Ctx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/ChaCha20/Ctx.php',
89
-        'ParagonIE_Sodium_Core32_ChaCha20_IetfCtx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/ChaCha20/IetfCtx.php',
90
-        'ParagonIE_Sodium_Core32_Curve25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519.php',
91
-        'ParagonIE_Sodium_Core32_Curve25519_Fe' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Fe.php',
92
-        'ParagonIE_Sodium_Core32_Curve25519_Ge_Cached' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Cached.php',
93
-        'ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php',
94
-        'ParagonIE_Sodium_Core32_Curve25519_Ge_P2' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P2.php',
95
-        'ParagonIE_Sodium_Core32_Curve25519_Ge_P3' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P3.php',
96
-        'ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php',
97
-        'ParagonIE_Sodium_Core32_Curve25519_H' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/H.php',
98
-        'ParagonIE_Sodium_Core32_Ed25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Ed25519.php',
99
-        'ParagonIE_Sodium_Core32_HChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/HChaCha20.php',
100
-        'ParagonIE_Sodium_Core32_HSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/HSalsa20.php',
101
-        'ParagonIE_Sodium_Core32_Int32' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Int32.php',
102
-        'ParagonIE_Sodium_Core32_Int64' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Int64.php',
103
-        'ParagonIE_Sodium_Core32_Poly1305' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Poly1305.php',
104
-        'ParagonIE_Sodium_Core32_Poly1305_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Poly1305/State.php',
105
-        'ParagonIE_Sodium_Core32_Salsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Salsa20.php',
106
-        'ParagonIE_Sodium_Core32_SecretStream_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/SecretStream/State.php',
107
-        'ParagonIE_Sodium_Core32_SipHash' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/SipHash.php',
108
-        'ParagonIE_Sodium_Core32_Util' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Util.php',
109
-        'ParagonIE_Sodium_Core32_X25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/X25519.php',
110
-        'ParagonIE_Sodium_Core32_XChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/XChaCha20.php',
111
-        'ParagonIE_Sodium_Core32_XSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/XSalsa20.php',
112
-        'ParagonIE_Sodium_Core_BLAKE2b' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/BLAKE2b.php',
113
-        'ParagonIE_Sodium_Core_Base64_Common' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Base64/Common.php',
114
-        'ParagonIE_Sodium_Core_Base64_Original' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Base64/Original.php',
115
-        'ParagonIE_Sodium_Core_Base64_UrlSafe' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Base64/UrlSafe.php',
116
-        'ParagonIE_Sodium_Core_ChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/ChaCha20.php',
117
-        'ParagonIE_Sodium_Core_ChaCha20_Ctx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php',
118
-        'ParagonIE_Sodium_Core_ChaCha20_IetfCtx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/ChaCha20/IetfCtx.php',
119
-        'ParagonIE_Sodium_Core_Curve25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519.php',
120
-        'ParagonIE_Sodium_Core_Curve25519_Fe' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Fe.php',
121
-        'ParagonIE_Sodium_Core_Curve25519_Ge_Cached' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/Cached.php',
122
-        'ParagonIE_Sodium_Core_Curve25519_Ge_P1p1' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/P1p1.php',
123
-        'ParagonIE_Sodium_Core_Curve25519_Ge_P2' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/P2.php',
124
-        'ParagonIE_Sodium_Core_Curve25519_Ge_P3' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/P3.php',
125
-        'ParagonIE_Sodium_Core_Curve25519_Ge_Precomp' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/Precomp.php',
126
-        'ParagonIE_Sodium_Core_Curve25519_H' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/H.php',
127
-        'ParagonIE_Sodium_Core_Ed25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Ed25519.php',
128
-        'ParagonIE_Sodium_Core_HChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/HChaCha20.php',
129
-        'ParagonIE_Sodium_Core_HSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/HSalsa20.php',
130
-        'ParagonIE_Sodium_Core_Poly1305' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Poly1305.php',
131
-        'ParagonIE_Sodium_Core_Poly1305_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Poly1305/State.php',
132
-        'ParagonIE_Sodium_Core_Ristretto255' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Ristretto255.php',
133
-        'ParagonIE_Sodium_Core_Salsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Salsa20.php',
134
-        'ParagonIE_Sodium_Core_SecretStream_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/SecretStream/State.php',
135
-        'ParagonIE_Sodium_Core_SipHash' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/SipHash.php',
136
-        'ParagonIE_Sodium_Core_Util' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Util.php',
137
-        'ParagonIE_Sodium_Core_X25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/X25519.php',
138
-        'ParagonIE_Sodium_Core_XChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/XChaCha20.php',
139
-        'ParagonIE_Sodium_Core_XSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/XSalsa20.php',
140
-        'ParagonIE_Sodium_Crypto' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Crypto.php',
141
-        'ParagonIE_Sodium_Crypto32' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Crypto32.php',
142
-        'ParagonIE_Sodium_File' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/File.php',
143
-        'Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/AbstractLogger.php',
144
-        'Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/Psr/Log/InvalidArgumentException.php',
145
-        'Psr\\Log\\LogLevel' => __DIR__ . '/..' . '/psr/log/Psr/Log/LogLevel.php',
146
-        'Psr\\Log\\LoggerAwareInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerAwareInterface.php',
147
-        'Psr\\Log\\LoggerAwareTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerAwareTrait.php',
148
-        'Psr\\Log\\LoggerInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerInterface.php',
149
-        'Psr\\Log\\LoggerTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerTrait.php',
150
-        'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php',
151
-        'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/DummyTest.php',
152
-        'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
153
-        'Psr\\Log\\Test\\TestLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/TestLogger.php',
154
-        'SodiumException' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/SodiumException.php',
155
-        'SplFixedArray' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/PHP52/SplFixedArray.php',
156
-        'TrustedLoginAJAXTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-ajax.php',
157
-        'TrustedLoginConfigTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-config.php',
158
-        'TrustedLoginUsersTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-users.php',
159
-        'TrustedLogin\\Admin' => __DIR__ . '/..' . '/trustedlogin/client/src/Admin.php',
160
-        'TrustedLogin\\Ajax' => __DIR__ . '/..' . '/trustedlogin/client/src/Ajax.php',
161
-        'TrustedLogin\\Client' => __DIR__ . '/..' . '/trustedlogin/client/src/Client.php',
162
-        'TrustedLogin\\Config' => __DIR__ . '/..' . '/trustedlogin/client/src/Config.php',
163
-        'TrustedLogin\\Cron' => __DIR__ . '/..' . '/trustedlogin/client/src/Cron.php',
164
-        'TrustedLogin\\Encryption' => __DIR__ . '/..' . '/trustedlogin/client/src/Encryption.php',
165
-        'TrustedLogin\\Endpoint' => __DIR__ . '/..' . '/trustedlogin/client/src/Endpoint.php',
166
-        'TrustedLogin\\Envelope' => __DIR__ . '/..' . '/trustedlogin/client/src/Envelope.php',
167
-        'TrustedLogin\\Logging' => __DIR__ . '/..' . '/trustedlogin/client/src/Logging.php',
168
-        'TrustedLogin\\Remote' => __DIR__ . '/..' . '/trustedlogin/client/src/Remote.php',
169
-        'TrustedLogin\\SecurityChecks' => __DIR__ . '/..' . '/trustedlogin/client/src/SecurityChecks.php',
170
-        'TrustedLogin\\SiteAccess' => __DIR__ . '/..' . '/trustedlogin/client/src/SiteAccess.php',
171
-        'TrustedLogin\\SupportRole' => __DIR__ . '/..' . '/trustedlogin/client/src/SupportRole.php',
172
-        'TrustedLogin\\SupportUser' => __DIR__ . '/..' . '/trustedlogin/client/src/SupportUser.php',
173
-        'TrustedLogin\\TrustedLoginClientTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-client.php',
174
-        'TrustedLogin\\TrustedLoginEncryptionTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-encryption.php',
175
-        'TrustedLogin\\TrustedLoginLoggingTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-logging.php',
176
-        'TrustedLogin\\TrustedLoginRemoteTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-remote.php',
177
-        'TrustedLogin\\TrustedLoginSiteAccessTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-siteaccess.php',
178
-        'TypeError' => __DIR__ . '/..' . '/paragonie/random_compat/lib/error_polyfill.php',
179
-    );
50
+	public static $classMap = array (
51
+		'ComposerAutoloaderInitb5638313a52df4893eb45c04efdaa356' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/autoload_real.php',
52
+		'Composer\\Autoload\\ClassLoader' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/ClassLoader.php',
53
+		'Composer\\Autoload\\ComposerStaticInitb5638313a52df4893eb45c04efdaa356' => __DIR__ . '/..' . '/trustedlogin/client/vendor/composer/autoload_static.php',
54
+		'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
55
+		'Error' => __DIR__ . '/..' . '/paragonie/random_compat/lib/error_polyfill.php',
56
+		'Katzgrau\\KLogger\\Logger' => __DIR__ . '/..' . '/katzgrau/klogger/src/Logger.php',
57
+		'Katzgrau\\KLogger\\TrustedLogin_Logger' => __DIR__ . '/..' . '/trustedlogin/client/vendor/TrustedLogin/katzgrau/klogger/src/Logger.php',
58
+		'LoggerTest' => __DIR__ . '/..' . '/katzgrau/klogger/tests/LoggerTest.php',
59
+		'ParagonIE\\Sodium\\Compat' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Compat.php',
60
+		'ParagonIE\\Sodium\\Core\\BLAKE2b' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/BLAKE2b.php',
61
+		'ParagonIE\\Sodium\\Core\\ChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/ChaCha20.php',
62
+		'ParagonIE\\Sodium\\Core\\ChaCha20\\Ctx' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/ChaCha20/Ctx.php',
63
+		'ParagonIE\\Sodium\\Core\\ChaCha20\\IetfCtx' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/ChaCha20/IetfCtx.php',
64
+		'ParagonIE\\Sodium\\Core\\Curve25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519.php',
65
+		'ParagonIE\\Sodium\\Core\\Curve25519\\Fe' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Fe.php',
66
+		'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\Cached' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/Cached.php',
67
+		'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\P1p1' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/P1p1.php',
68
+		'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\P2' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/P2.php',
69
+		'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\P3' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/P3.php',
70
+		'ParagonIE\\Sodium\\Core\\Curve25519\\Ge\\Precomp' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/Precomp.php',
71
+		'ParagonIE\\Sodium\\Core\\Curve25519\\H' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Curve25519/H.php',
72
+		'ParagonIE\\Sodium\\Core\\Ed25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Ed25519.php',
73
+		'ParagonIE\\Sodium\\Core\\HChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/HChaCha20.php',
74
+		'ParagonIE\\Sodium\\Core\\HSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/HSalsa20.php',
75
+		'ParagonIE\\Sodium\\Core\\Poly1305' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Poly1305.php',
76
+		'ParagonIE\\Sodium\\Core\\Poly1305\\State' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Poly1305/State.php',
77
+		'ParagonIE\\Sodium\\Core\\Salsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Salsa20.php',
78
+		'ParagonIE\\Sodium\\Core\\SipHash' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/SipHash.php',
79
+		'ParagonIE\\Sodium\\Core\\Util' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Util.php',
80
+		'ParagonIE\\Sodium\\Core\\X25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/X25519.php',
81
+		'ParagonIE\\Sodium\\Core\\XChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/XChaCha20.php',
82
+		'ParagonIE\\Sodium\\Core\\Xsalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Core/Xsalsa20.php',
83
+		'ParagonIE\\Sodium\\Crypto' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/Crypto.php',
84
+		'ParagonIE\\Sodium\\File' => __DIR__ . '/..' . '/paragonie/sodium_compat/namespaced/File.php',
85
+		'ParagonIE_Sodium_Compat' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Compat.php',
86
+		'ParagonIE_Sodium_Core32_BLAKE2b' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/BLAKE2b.php',
87
+		'ParagonIE_Sodium_Core32_ChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/ChaCha20.php',
88
+		'ParagonIE_Sodium_Core32_ChaCha20_Ctx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/ChaCha20/Ctx.php',
89
+		'ParagonIE_Sodium_Core32_ChaCha20_IetfCtx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/ChaCha20/IetfCtx.php',
90
+		'ParagonIE_Sodium_Core32_Curve25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519.php',
91
+		'ParagonIE_Sodium_Core32_Curve25519_Fe' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Fe.php',
92
+		'ParagonIE_Sodium_Core32_Curve25519_Ge_Cached' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Cached.php',
93
+		'ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php',
94
+		'ParagonIE_Sodium_Core32_Curve25519_Ge_P2' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P2.php',
95
+		'ParagonIE_Sodium_Core32_Curve25519_Ge_P3' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P3.php',
96
+		'ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php',
97
+		'ParagonIE_Sodium_Core32_Curve25519_H' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Curve25519/H.php',
98
+		'ParagonIE_Sodium_Core32_Ed25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Ed25519.php',
99
+		'ParagonIE_Sodium_Core32_HChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/HChaCha20.php',
100
+		'ParagonIE_Sodium_Core32_HSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/HSalsa20.php',
101
+		'ParagonIE_Sodium_Core32_Int32' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Int32.php',
102
+		'ParagonIE_Sodium_Core32_Int64' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Int64.php',
103
+		'ParagonIE_Sodium_Core32_Poly1305' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Poly1305.php',
104
+		'ParagonIE_Sodium_Core32_Poly1305_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Poly1305/State.php',
105
+		'ParagonIE_Sodium_Core32_Salsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Salsa20.php',
106
+		'ParagonIE_Sodium_Core32_SecretStream_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/SecretStream/State.php',
107
+		'ParagonIE_Sodium_Core32_SipHash' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/SipHash.php',
108
+		'ParagonIE_Sodium_Core32_Util' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/Util.php',
109
+		'ParagonIE_Sodium_Core32_X25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/X25519.php',
110
+		'ParagonIE_Sodium_Core32_XChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/XChaCha20.php',
111
+		'ParagonIE_Sodium_Core32_XSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core32/XSalsa20.php',
112
+		'ParagonIE_Sodium_Core_BLAKE2b' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/BLAKE2b.php',
113
+		'ParagonIE_Sodium_Core_Base64_Common' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Base64/Common.php',
114
+		'ParagonIE_Sodium_Core_Base64_Original' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Base64/Original.php',
115
+		'ParagonIE_Sodium_Core_Base64_UrlSafe' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Base64/UrlSafe.php',
116
+		'ParagonIE_Sodium_Core_ChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/ChaCha20.php',
117
+		'ParagonIE_Sodium_Core_ChaCha20_Ctx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php',
118
+		'ParagonIE_Sodium_Core_ChaCha20_IetfCtx' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/ChaCha20/IetfCtx.php',
119
+		'ParagonIE_Sodium_Core_Curve25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519.php',
120
+		'ParagonIE_Sodium_Core_Curve25519_Fe' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Fe.php',
121
+		'ParagonIE_Sodium_Core_Curve25519_Ge_Cached' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/Cached.php',
122
+		'ParagonIE_Sodium_Core_Curve25519_Ge_P1p1' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/P1p1.php',
123
+		'ParagonIE_Sodium_Core_Curve25519_Ge_P2' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/P2.php',
124
+		'ParagonIE_Sodium_Core_Curve25519_Ge_P3' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/P3.php',
125
+		'ParagonIE_Sodium_Core_Curve25519_Ge_Precomp' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/Ge/Precomp.php',
126
+		'ParagonIE_Sodium_Core_Curve25519_H' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Curve25519/H.php',
127
+		'ParagonIE_Sodium_Core_Ed25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Ed25519.php',
128
+		'ParagonIE_Sodium_Core_HChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/HChaCha20.php',
129
+		'ParagonIE_Sodium_Core_HSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/HSalsa20.php',
130
+		'ParagonIE_Sodium_Core_Poly1305' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Poly1305.php',
131
+		'ParagonIE_Sodium_Core_Poly1305_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Poly1305/State.php',
132
+		'ParagonIE_Sodium_Core_Ristretto255' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Ristretto255.php',
133
+		'ParagonIE_Sodium_Core_Salsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Salsa20.php',
134
+		'ParagonIE_Sodium_Core_SecretStream_State' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/SecretStream/State.php',
135
+		'ParagonIE_Sodium_Core_SipHash' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/SipHash.php',
136
+		'ParagonIE_Sodium_Core_Util' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/Util.php',
137
+		'ParagonIE_Sodium_Core_X25519' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/X25519.php',
138
+		'ParagonIE_Sodium_Core_XChaCha20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/XChaCha20.php',
139
+		'ParagonIE_Sodium_Core_XSalsa20' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Core/XSalsa20.php',
140
+		'ParagonIE_Sodium_Crypto' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Crypto.php',
141
+		'ParagonIE_Sodium_Crypto32' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/Crypto32.php',
142
+		'ParagonIE_Sodium_File' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/File.php',
143
+		'Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/AbstractLogger.php',
144
+		'Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/Psr/Log/InvalidArgumentException.php',
145
+		'Psr\\Log\\LogLevel' => __DIR__ . '/..' . '/psr/log/Psr/Log/LogLevel.php',
146
+		'Psr\\Log\\LoggerAwareInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerAwareInterface.php',
147
+		'Psr\\Log\\LoggerAwareTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerAwareTrait.php',
148
+		'Psr\\Log\\LoggerInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerInterface.php',
149
+		'Psr\\Log\\LoggerTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerTrait.php',
150
+		'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php',
151
+		'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/DummyTest.php',
152
+		'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
153
+		'Psr\\Log\\Test\\TestLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/TestLogger.php',
154
+		'SodiumException' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/SodiumException.php',
155
+		'SplFixedArray' => __DIR__ . '/..' . '/paragonie/sodium_compat/src/PHP52/SplFixedArray.php',
156
+		'TrustedLoginAJAXTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-ajax.php',
157
+		'TrustedLoginConfigTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-config.php',
158
+		'TrustedLoginUsersTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-users.php',
159
+		'TrustedLogin\\Admin' => __DIR__ . '/..' . '/trustedlogin/client/src/Admin.php',
160
+		'TrustedLogin\\Ajax' => __DIR__ . '/..' . '/trustedlogin/client/src/Ajax.php',
161
+		'TrustedLogin\\Client' => __DIR__ . '/..' . '/trustedlogin/client/src/Client.php',
162
+		'TrustedLogin\\Config' => __DIR__ . '/..' . '/trustedlogin/client/src/Config.php',
163
+		'TrustedLogin\\Cron' => __DIR__ . '/..' . '/trustedlogin/client/src/Cron.php',
164
+		'TrustedLogin\\Encryption' => __DIR__ . '/..' . '/trustedlogin/client/src/Encryption.php',
165
+		'TrustedLogin\\Endpoint' => __DIR__ . '/..' . '/trustedlogin/client/src/Endpoint.php',
166
+		'TrustedLogin\\Envelope' => __DIR__ . '/..' . '/trustedlogin/client/src/Envelope.php',
167
+		'TrustedLogin\\Logging' => __DIR__ . '/..' . '/trustedlogin/client/src/Logging.php',
168
+		'TrustedLogin\\Remote' => __DIR__ . '/..' . '/trustedlogin/client/src/Remote.php',
169
+		'TrustedLogin\\SecurityChecks' => __DIR__ . '/..' . '/trustedlogin/client/src/SecurityChecks.php',
170
+		'TrustedLogin\\SiteAccess' => __DIR__ . '/..' . '/trustedlogin/client/src/SiteAccess.php',
171
+		'TrustedLogin\\SupportRole' => __DIR__ . '/..' . '/trustedlogin/client/src/SupportRole.php',
172
+		'TrustedLogin\\SupportUser' => __DIR__ . '/..' . '/trustedlogin/client/src/SupportUser.php',
173
+		'TrustedLogin\\TrustedLoginClientTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-client.php',
174
+		'TrustedLogin\\TrustedLoginEncryptionTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-encryption.php',
175
+		'TrustedLogin\\TrustedLoginLoggingTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-logging.php',
176
+		'TrustedLogin\\TrustedLoginRemoteTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-remote.php',
177
+		'TrustedLogin\\TrustedLoginSiteAccessTest' => __DIR__ . '/..' . '/trustedlogin/client/tests/test-siteaccess.php',
178
+		'TypeError' => __DIR__ . '/..' . '/paragonie/random_compat/lib/error_polyfill.php',
179
+	);
180 180
 
181
-    public static function getInitializer(ClassLoader $loader)
182
-    {
183
-        return \Closure::bind(function () use ($loader) {
184
-            $loader->prefixLengthsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixLengthsPsr4;
185
-            $loader->prefixDirsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixDirsPsr4;
186
-            $loader->classMap = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$classMap;
181
+	public static function getInitializer(ClassLoader $loader)
182
+	{
183
+		return \Closure::bind(function () use ($loader) {
184
+			$loader->prefixLengthsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixLengthsPsr4;
185
+			$loader->prefixDirsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixDirsPsr4;
186
+			$loader->classMap = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$classMap;
187 187
 
188
-        }, null, ClassLoader::class);
189
-    }
188
+		}, null, ClassLoader::class);
189
+	}
190 190
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -6,48 +6,48 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 namespace Composer\Autoload;
6 6
 
7
-class ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d
8
-{
7
+class ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d {
9 8
     public static $files = array (
10 9
         '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
11 10
         '3109cb1a231dcd04bee1f9f620d46975' => __DIR__ . '/..' . '/paragonie/sodium_compat/autoload.php',
@@ -178,8 +177,7 @@  discard block
 block discarded – undo
178 177
         'TypeError' => __DIR__ . '/..' . '/paragonie/random_compat/lib/error_polyfill.php',
179 178
     );
180 179
 
181
-    public static function getInitializer(ClassLoader $loader)
182
-    {
180
+    public static function getInitializer(ClassLoader $loader) {
183 181
         return \Closure::bind(function () use ($loader) {
184 182
             $loader->prefixLengthsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixLengthsPsr4;
185 183
             $loader->prefixDirsPsr4 = ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$prefixDirsPsr4;
Please login to merge, or discard this patch.
vendor/composer/autoload_real.php 3 patches
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -4,65 +4,65 @@  discard block
 block discarded – undo
4 4
 
5 5
 class ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d
6 6
 {
7
-    private static $loader;
7
+	private static $loader;
8 8
 
9
-    public static function loadClassLoader($class)
10
-    {
11
-        if ('Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
13
-        }
14
-    }
9
+	public static function loadClassLoader($class)
10
+	{
11
+		if ('Composer\Autoload\ClassLoader' === $class) {
12
+			require __DIR__ . '/ClassLoader.php';
13
+		}
14
+	}
15 15
 
16
-    /**
17
-     * @return \Composer\Autoload\ClassLoader
18
-     */
19
-    public static function getLoader()
20
-    {
21
-        if (null !== self::$loader) {
22
-            return self::$loader;
23
-        }
16
+	/**
17
+	 * @return \Composer\Autoload\ClassLoader
18
+	 */
19
+	public static function getLoader()
20
+	{
21
+		if (null !== self::$loader) {
22
+			return self::$loader;
23
+		}
24 24
 
25
-        require __DIR__ . '/platform_check.php';
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) {
33
-            require __DIR__ . '/autoload_static.php';
31
+		$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
+		if ($useStaticLoader) {
33
+			require __DIR__ . '/autoload_static.php';
34 34
 
35
-            call_user_func(\Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::getInitializer($loader));
36
-        } else {
37
-            $map = require __DIR__ . '/autoload_namespaces.php';
38
-            foreach ($map as $namespace => $path) {
39
-                $loader->set($namespace, $path);
40
-            }
35
+			call_user_func(\Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::getInitializer($loader));
36
+		} else {
37
+			$map = require __DIR__ . '/autoload_namespaces.php';
38
+			foreach ($map as $namespace => $path) {
39
+				$loader->set($namespace, $path);
40
+			}
41 41
 
42
-            $map = require __DIR__ . '/autoload_psr4.php';
43
-            foreach ($map as $namespace => $path) {
44
-                $loader->setPsr4($namespace, $path);
45
-            }
42
+			$map = require __DIR__ . '/autoload_psr4.php';
43
+			foreach ($map as $namespace => $path) {
44
+				$loader->setPsr4($namespace, $path);
45
+			}
46 46
 
47
-            $classMap = require __DIR__ . '/autoload_classmap.php';
48
-            if ($classMap) {
49
-                $loader->addClassMap($classMap);
50
-            }
51
-        }
47
+			$classMap = require __DIR__ . '/autoload_classmap.php';
48
+			if ($classMap) {
49
+				$loader->addClassMap($classMap);
50
+			}
51
+		}
52 52
 
53
-        $loader->register(true);
53
+		$loader->register(true);
54 54
 
55
-        if ($useStaticLoader) {
56
-            $includeFiles = Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$files;
57
-        } else {
58
-            $includeFiles = require __DIR__ . '/autoload_files.php';
59
-        }
60
-        foreach ($includeFiles as $fileIdentifier => $file) {
61
-            composerRequire984ed95bef2b0e3d4eeb0208a88dc67d($fileIdentifier, $file);
62
-        }
55
+		if ($useStaticLoader) {
56
+			$includeFiles = Composer\Autoload\ComposerStaticInit984ed95bef2b0e3d4eeb0208a88dc67d::$files;
57
+		} else {
58
+			$includeFiles = require __DIR__ . '/autoload_files.php';
59
+		}
60
+		foreach ($includeFiles as $fileIdentifier => $file) {
61
+			composerRequire984ed95bef2b0e3d4eeb0208a88dc67d($fileIdentifier, $file);
62
+		}
63 63
 
64
-        return $loader;
65
-    }
64
+		return $loader;
65
+	}
66 66
 }
67 67
 
68 68
 /**
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
  */
73 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
-        require $file;
79
-    }
78
+		require $file;
79
+	}
80 80
 }
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 // autoload_real.php @generated by Composer
4 4
 
5
-class ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d
6
-{
5
+class ComposerAutoloaderInit984ed95bef2b0e3d4eeb0208a88dc67d {
7 6
     private static $loader;
8 7
 
9
-    public static function loadClassLoader($class)
10
-    {
8
+    public static function loadClassLoader($class) {
11 9
         if ('Composer\Autoload\ClassLoader' === $class) {
12 10
             require __DIR__ . '/ClassLoader.php';
13 11
         }
@@ -16,8 +14,7 @@  discard block
 block discarded – undo
16 14
     /**
17 15
      * @return \Composer\Autoload\ClassLoader
18 16
      */
19
-    public static function getLoader()
20
-    {
17
+    public static function getLoader() {
21 18
         if (null !== self::$loader) {
22 19
             return self::$loader;
23 20
         }
@@ -70,8 +67,7 @@  discard block
 block discarded – undo
70 67
  * @param string $file
71 68
  * @return void
72 69
  */
73
-function composerRequire984ed95bef2b0e3d4eeb0208a88dc67d($fileIdentifier, $file)
74
-{
70
+function composerRequire984ed95bef2b0e3d4eeb0208a88dc67d($fileIdentifier, $file) {
75 71
     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76 72
         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
77 73
 
Please login to merge, or discard this patch.
vendor/composer/installed.php 1 patch
Indentation   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -1,70 +1,70 @@
 block discarded – undo
1 1
 <?php return array(
2
-    'root' => array(
3
-        'pretty_version' => 'dev-develop',
4
-        'version' => 'dev-develop',
5
-        'type' => 'wordpress-plugin',
6
-        'install_path' => __DIR__ . '/../../',
7
-        'aliases' => array(),
8
-        'reference' => '863c13683df548e907875904b7532d599446ed18',
9
-        'name' => 'gravityview/gravityview',
10
-        'dev' => false,
11
-    ),
12
-    'versions' => array(
13
-        'gravityview/gravityview' => array(
14
-            'pretty_version' => 'dev-develop',
15
-            'version' => 'dev-develop',
16
-            'type' => 'wordpress-plugin',
17
-            'install_path' => __DIR__ . '/../../',
18
-            'aliases' => array(),
19
-            'reference' => '863c13683df548e907875904b7532d599446ed18',
20
-            'dev_requirement' => false,
21
-        ),
22
-        'katzgrau/klogger' => array(
23
-            'pretty_version' => 'dev-master',
24
-            'version' => 'dev-master',
25
-            'type' => 'library',
26
-            'install_path' => __DIR__ . '/../katzgrau/klogger',
27
-            'aliases' => array(
28
-                0 => '9999999-dev',
29
-            ),
30
-            'reference' => 'de2d3ab6777a393a9879e0496ebb8e0644066e3f',
31
-            'dev_requirement' => false,
32
-        ),
33
-        'paragonie/random_compat' => array(
34
-            'pretty_version' => 'v2.0.20',
35
-            'version' => '2.0.20.0',
36
-            'type' => 'library',
37
-            'install_path' => __DIR__ . '/../paragonie/random_compat',
38
-            'aliases' => array(),
39
-            'reference' => '0f1f60250fccffeaf5dda91eea1c018aed1adc2a',
40
-            'dev_requirement' => false,
41
-        ),
42
-        'paragonie/sodium_compat' => array(
43
-            'pretty_version' => 'v1.17.0',
44
-            'version' => '1.17.0.0',
45
-            'type' => 'library',
46
-            'install_path' => __DIR__ . '/../paragonie/sodium_compat',
47
-            'aliases' => array(),
48
-            'reference' => 'c59cac21abbcc0df06a3dd18076450ea4797b321',
49
-            'dev_requirement' => false,
50
-        ),
51
-        'psr/log' => array(
52
-            'pretty_version' => '1.1.4',
53
-            'version' => '1.1.4.0',
54
-            'type' => 'library',
55
-            'install_path' => __DIR__ . '/../psr/log',
56
-            'aliases' => array(),
57
-            'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
58
-            'dev_requirement' => false,
59
-        ),
60
-        'trustedlogin/client' => array(
61
-            'pretty_version' => 'dev-main',
62
-            'version' => 'dev-main',
63
-            'type' => 'library',
64
-            'install_path' => __DIR__ . '/../trustedlogin/client',
65
-            'aliases' => array(),
66
-            'reference' => '8c0be03dac771f157625ee6029e3850a199f6310',
67
-            'dev_requirement' => false,
68
-        ),
69
-    ),
2
+	'root' => array(
3
+		'pretty_version' => 'dev-develop',
4
+		'version' => 'dev-develop',
5
+		'type' => 'wordpress-plugin',
6
+		'install_path' => __DIR__ . '/../../',
7
+		'aliases' => array(),
8
+		'reference' => '863c13683df548e907875904b7532d599446ed18',
9
+		'name' => 'gravityview/gravityview',
10
+		'dev' => false,
11
+	),
12
+	'versions' => array(
13
+		'gravityview/gravityview' => array(
14
+			'pretty_version' => 'dev-develop',
15
+			'version' => 'dev-develop',
16
+			'type' => 'wordpress-plugin',
17
+			'install_path' => __DIR__ . '/../../',
18
+			'aliases' => array(),
19
+			'reference' => '863c13683df548e907875904b7532d599446ed18',
20
+			'dev_requirement' => false,
21
+		),
22
+		'katzgrau/klogger' => array(
23
+			'pretty_version' => 'dev-master',
24
+			'version' => 'dev-master',
25
+			'type' => 'library',
26
+			'install_path' => __DIR__ . '/../katzgrau/klogger',
27
+			'aliases' => array(
28
+				0 => '9999999-dev',
29
+			),
30
+			'reference' => 'de2d3ab6777a393a9879e0496ebb8e0644066e3f',
31
+			'dev_requirement' => false,
32
+		),
33
+		'paragonie/random_compat' => array(
34
+			'pretty_version' => 'v2.0.20',
35
+			'version' => '2.0.20.0',
36
+			'type' => 'library',
37
+			'install_path' => __DIR__ . '/../paragonie/random_compat',
38
+			'aliases' => array(),
39
+			'reference' => '0f1f60250fccffeaf5dda91eea1c018aed1adc2a',
40
+			'dev_requirement' => false,
41
+		),
42
+		'paragonie/sodium_compat' => array(
43
+			'pretty_version' => 'v1.17.0',
44
+			'version' => '1.17.0.0',
45
+			'type' => 'library',
46
+			'install_path' => __DIR__ . '/../paragonie/sodium_compat',
47
+			'aliases' => array(),
48
+			'reference' => 'c59cac21abbcc0df06a3dd18076450ea4797b321',
49
+			'dev_requirement' => false,
50
+		),
51
+		'psr/log' => array(
52
+			'pretty_version' => '1.1.4',
53
+			'version' => '1.1.4.0',
54
+			'type' => 'library',
55
+			'install_path' => __DIR__ . '/../psr/log',
56
+			'aliases' => array(),
57
+			'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
58
+			'dev_requirement' => false,
59
+		),
60
+		'trustedlogin/client' => array(
61
+			'pretty_version' => 'dev-main',
62
+			'version' => 'dev-main',
63
+			'type' => 'library',
64
+			'install_path' => __DIR__ . '/../trustedlogin/client',
65
+			'aliases' => array(),
66
+			'reference' => '8c0be03dac771f157625ee6029e3850a199f6310',
67
+			'dev_requirement' => false,
68
+		),
69
+	),
70 70
 );
Please login to merge, or discard this patch.
includes/widgets/class-gravityview-widget-gravityforms.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
class-gravityview-plugin-hooks-gravity-forms-dropbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 		}
53 53
 
54 54
 		// The image source has ?raw=1; don't check for valid image extensions.
55
-		$image_atts['validate_src'] = false;
55
+		$image_atts[ 'validate_src' ] = false;
56 56
 
57 57
 		return $image_atts;
58 58
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-fileupload.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
 
27 27
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
28 28
 
29
-		unset( $field_options['search_filter'] );
29
+		unset( $field_options[ 'search_filter' ] );
30 30
 
31
-		if( 'edit' === $context ) {
31
+		if ( 'edit' === $context ) {
32 32
 			return $field_options;
33 33
 		}
34 34
 
35
-		$add_options['link_to_file'] = array(
35
+		$add_options[ 'link_to_file' ] = array(
36 36
 			'type' => 'checkbox',
37 37
 			'label' => __( 'Display as a Link:', 'gravityview' ),
38
-			'desc' => __('Display the uploaded files as links, rather than embedded content.', 'gravityview'),
38
+			'desc' => __( 'Display the uploaded files as links, rather than embedded content.', 'gravityview' ),
39 39
 			'value' => false,
40 40
 			'merge_tags' => false,
41 41
 		);
42 42
 
43
-		$add_options['image_width'] = array(
43
+		$add_options[ 'image_width' ] = array(
44 44
 			'type' => 'text',
45 45
 			'label' => __( 'Custom Width:', 'gravityview' ),
46 46
 			'desc' => __( 'Override the default image width (250).', 'gravityview' ),
@@ -158,14 +158,14 @@  discard block
 block discarded – undo
158 158
 			$base_id = null;
159 159
 
160 160
 			$is_single = gravityview_get_context() === 'single';
161
-			$lightbox = ! empty( $gravityview_view->atts['lightbox'] );
161
+			$lightbox = ! empty( $gravityview_view->atts[ 'lightbox' ] );
162 162
 			$field_compat = $gravityview_view->getCurrentField();
163 163
 		}
164 164
 
165 165
 		$output_arr = array();
166 166
 
167 167
 		// Get an array of file paths for the field.
168
-		$file_paths = \GV\Utils::get( $field , 'multipleFiles' ) ? json_decode( $value ) : array( $value );
168
+		$file_paths = \GV\Utils::get( $field, 'multipleFiles' ) ? json_decode( $value ) : array( $value );
169 169
 
170 170
 		// The $value JSON was probably truncated; let's check lead_detail_long.
171 171
 		if ( ! is_array( $file_paths ) ) {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 			$rendered = null;
186 186
 
187 187
 			// If the site is HTTPS, use HTTPS
188
-			if ( function_exists('set_url_scheme') ) {
188
+			if ( function_exists( 'set_url_scheme' ) ) {
189 189
 				$file_path = set_url_scheme( $file_path );
190 190
 			}
191 191
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 			$file_path_info = pathinfo( $file_path );
197 197
 
198 198
 			// If pathinfo() gave us the extension of the file, run the switch statement using that.
199
-			$extension = empty( $file_path_info['extension'] ) ? NULL : strtolower( $file_path_info['extension'] );
199
+			$extension = empty( $file_path_info[ 'extension' ] ) ? NULL : strtolower( $file_path_info[ 'extension' ] );
200 200
 
201 201
 			/**
202 202
 			 * @filter `gravityview/fields/fileupload/extension` Modify the file extension before it's used in display logic
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 			 */
207 207
 			$extension = apply_filters( 'gravityview/fields/fileupload/extension', $extension, $file_path );
208 208
 
209
-			$basename = $file_path_info['basename'];
209
+			$basename = $file_path_info[ 'basename' ];
210 210
 
211 211
 			// Get the secure download URL
212 212
 			$is_secure = false;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 					 */
247 247
 					$audio_settings = apply_filters( 'gravityview_audio_settings', array(
248 248
 						'src' => $insecure_file_path, // Needs to be insecure path so WP can parse extension
249
-						'class' => 'wp-audio-shortcode gv-audio gv-field-id-'.$field_settings['id']
249
+						'class' => 'wp-audio-shortcode gv-audio gv-field-id-' . $field_settings[ 'id' ]
250 250
 					), $context );
251 251
 
252 252
 					/**
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 					 */
276 276
 					$video_settings = apply_filters( 'gravityview_video_settings', array(
277 277
 						'src' => $insecure_file_path, // Needs to be insecure path so WP can parse extension
278
-						'class' => 'wp-video-shortcode gv-video gv-field-id-'.$field_settings['id']
278
+						'class' => 'wp-video-shortcode gv-video gv-field-id-' . $field_settings[ 'id' ]
279 279
 					), $context );
280 280
 
281 281
 					/**
@@ -299,20 +299,20 @@  discard block
 block discarded – undo
299 299
 					$file_path = add_query_arg( array( 'gv-iframe' => 'true' ), $file_path );
300 300
 				}
301 301
 
302
-				$field_settings['link_to_file'] = true;
302
+				$field_settings[ 'link_to_file' ] = true;
303 303
 
304 304
 			// Images
305 305
 			} else if ( in_array( $extension, GravityView_Image::get_image_extensions() ) ) {
306 306
 				$width = \GV\Utils::get( $field_settings, 'image_width', 250 );
307 307
 				$image_atts = array(
308 308
 					'src'   => $file_path,
309
-					'class' => 'gv-image gv-field-id-' . $field_settings['id'],
310
-					'alt'   => $field_settings['label'],
311
-					'width' => ( $is_single ? null : ( $width ? $width: 250 ) )
309
+					'class' => 'gv-image gv-field-id-' . $field_settings[ 'id' ],
310
+					'alt'   => $field_settings[ 'label' ],
311
+					'width' => ( $is_single ? null : ( $width ? $width : 250 ) )
312 312
 				);
313 313
 
314 314
 				if ( $is_secure ) {
315
-					$image_atts['validate_src'] = false;
315
+					$image_atts[ 'validate_src' ] = false;
316 316
 				}
317 317
 
318 318
 				/**
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 
334 334
 				unset( $gv_entry );
335 335
 
336
-				if ( $lightbox && empty( $field_settings['show_as_link'] ) ) {
336
+				if ( $lightbox && empty( $field_settings[ 'show_as_link' ] ) ) {
337 337
 
338 338
 					$lightbox_link_atts = array(
339 339
 						'rel'   => sprintf( "%s-%s", $gv_class, $entry_slug ),
@@ -348,13 +348,13 @@  discard block
 block discarded – undo
348 348
 				}
349 349
 
350 350
 				// Show as link should render the image regardless.
351
-				if ( ! empty( $field_settings['show_as_link'] ) ) {
351
+				if ( ! empty( $field_settings[ 'show_as_link' ] ) ) {
352 352
 					$text = $rendered;
353 353
 				}
354 354
 			}
355 355
 			// For all other non-media file types (ZIP, for example), always show as a link regardless of setting.
356 356
 			else {
357
-				$field_settings['link_to_file'] = true;
357
+				$field_settings[ 'link_to_file' ] = true;
358 358
 				$disable_lightbox = true;
359 359
 			}
360 360
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 			$disable_wrapped_link = apply_filters( 'gravityview/fields/fileupload/disable_link', false, $field_compat, $context );
371 371
 
372 372
 			// Output textualized content where
373
-			if ( ! $disable_wrapped_link && ( ! empty( $field_settings['link_to_file'] ) || ! empty( $field_settings['show_as_link'] ) ) ) {
373
+			if ( ! $disable_wrapped_link && ( ! empty( $field_settings[ 'link_to_file' ] ) || ! empty( $field_settings[ 'show_as_link' ] ) ) ) {
374 374
 				/**
375 375
 				 * Modify the link text (defaults to the file name)
376 376
 				 *
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 				 */
384 384
 				$content = apply_filters( 'gravityview/fields/fileupload/link_content', $text, $field_compat, $context );
385 385
 
386
-				if ( empty( $field_settings['show_as_link'] ) ) {
386
+				if ( empty( $field_settings[ 'show_as_link' ] ) ) {
387 387
 					/**
388 388
 					 * @filter `gravityview/fields/fileupload/link_atts` Modify the link attributes for a file upload field
389 389
 					 * @since 2.0 Added $context
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 				$content = empty( $rendered ) ? $text : $rendered;
405 405
 			}
406 406
 
407
-			$output_arr[] = array(
407
+			$output_arr[ ] = array(
408 408
 				'file_path' => $file_path,
409 409
 				'content' => $content
410 410
 			);
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-chainedselect.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 }
20 20
 
21 21
 // Make sure that there are choices to display
22
-if( empty( $search_field['choices'] ) ) {
22
+if ( empty( $search_field[ 'choices' ] ) ) {
23 23
 	gravityview()->log->debug( 'search-field-chainedselect.php - No choices for field' );
24 24
 	return;
25 25
 }
26 26
 
27 27
 $form = \GV\GF_Form::from_form( $gravityview_view->getForm() );
28 28
 
29
-$field = \GV\GF_Field::by_id( $form, $search_field['key'] );
29
+$field = \GV\GF_Field::by_id( $form, $search_field[ 'key' ] );
30 30
 
31 31
 /** @var GF_Chained_Field_Select $gf_field */
32 32
 $gf_field = $field->field;
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 $gf_field->chainedSelectsAlignment = $gravityview_view->search_layout;
53 53
 ?>
54 54
 <div class="gv-search-box gv-search-field-chainedselect">
55
-	<?php if( ! gv_empty( $search_field['label'], false, false ) ) { ?>
56
-		<label for="search-box-<?php echo esc_attr( $search_field['name'] ); ?>"><?php echo esc_html( $search_field['label'] ); ?></label>
55
+	<?php if ( ! gv_empty( $search_field[ 'label' ], false, false ) ) { ?>
56
+		<label for="search-box-<?php echo esc_attr( $search_field[ 'name' ] ); ?>"><?php echo esc_html( $search_field[ 'label' ] ); ?></label>
57 57
 	<?php
58 58
 	}
59 59
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 <script>
68 68
 ( function( $ ) {
69 69
 	$( 'select', '.gv-search-field-chainedselect').on( 'change', function( e ) {
70
-		window.gform.doAction( 'gform_input_change', e.target, <?php echo (int) $form->ID; ?>, <?php echo (int) $field->ID; ?> );
70
+		window.gform.doAction( 'gform_input_change', e.target, <?php echo (int)$form->ID; ?>, <?php echo (int)$field->ID; ?> );
71 71
 	});
72 72
 <?php
73 73
 	echo strtr( 'new GFChainedSelects( {form_id}, {field_id}, {hide_inactive}, "{search_layout}" );', array(
74 74
 			'{form_id}'       => $form->ID,
75 75
 			'{field_id}'      => $field->ID,
76
-			'{hide_inactive}' => (int) $hide_inactive,
76
+			'{hide_inactive}' => (int)$hide_inactive,
77 77
 			'{search_layout}' => $gravityview_view->search_layout,
78 78
 	) );
79 79
 ?>
Please login to merge, or discard this patch.
class-gravityview-plugin-hooks-gravity-forms-chainedselects.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -59,17 +59,17 @@  discard block
 block discarded – undo
59 59
 			return $searchable_fields;
60 60
 		}
61 61
 
62
-		foreach( $searchable_fields as $searchable_field ) {
62
+		foreach ( $searchable_fields as $searchable_field ) {
63 63
 
64 64
 			if ( self::INPUT_TYPE !== \GV\Utils::get( $searchable_field, 'input' ) ) {
65 65
 				continue;
66 66
 			}
67 67
 
68
-			$field = GFAPI::get_field( $searchable_field['form_id'], $searchable_field['field'] );
68
+			$field = GFAPI::get_field( $searchable_field[ 'form_id' ], $searchable_field[ 'field' ] );
69 69
 
70
-			foreach( $field->get_entry_inputs() as $input ) {
71
-				$searchable_fields[] = array(
72
-					'field' => $input['id'],
70
+			foreach ( $field->get_entry_inputs() as $input ) {
71
+				$searchable_fields[ ] = array(
72
+					'field' => $input[ 'id' ],
73 73
 				);
74 74
 			}
75 75
 		}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function print_styles( $search_widget, $search_field ) {
89 89
 
90
-		if( self::INPUT_TYPE !== \GV\Utils::get( $search_field, 'type' ) ) {
90
+		if ( self::INPUT_TYPE !== \GV\Utils::get( $search_field, 'type' ) ) {
91 91
 			return;
92 92
 		}
93 93
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 */
139 139
 	public function print_scripts( $search_widget, $search_field ) {
140 140
 
141
-		if( self::INPUT_TYPE !== \GV\Utils::get( $search_field, 'type' ) ) {
141
+		if ( self::INPUT_TYPE !== \GV\Utils::get( $search_field, 'type' ) ) {
142 142
 			return;
143 143
 		}
144 144
 
@@ -178,9 +178,9 @@  discard block
 block discarded – undo
178 178
 		foreach ( $gf_field->get_entry_inputs() as $input ) {
179 179
 
180 180
 			// Inputs are converted from . to _
181
-			$input_url_arg = 'input_' . str_replace( '.', '_', $input['id'] );
181
+			$input_url_arg = 'input_' . str_replace( '.', '_', $input[ 'id' ] );
182 182
 
183
-			$field_values[ $input['id'] ] = \GV\Utils::_REQUEST( $input_url_arg );
183
+			$field_values[ $input[ 'id' ] ] = \GV\Utils::_REQUEST( $input_url_arg );
184 184
 		}
185 185
 
186 186
 		return $field_values;
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
 	 */
206 206
 	function modify_searchable_fields( $fields, $form_id ) {
207 207
 
208
-		foreach( $fields as $key => $field ) {
209
-			if( 'chainedselect' === $field['type'] && ! empty( $field['parent'] ) ) {
208
+		foreach ( $fields as $key => $field ) {
209
+			if ( 'chainedselect' === $field[ 'type' ] && ! empty( $field[ 'parent' ] ) ) {
210 210
 				unset( $fields[ $key ] );
211 211
 			}
212 212
 		}
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 	 *
236 236
 	 * @return string
237 237
 	 */
238
-	public function set_input_type( $input_type, $field_type, $field_id  ) {
238
+	public function set_input_type( $input_type, $field_type, $field_id ) {
239 239
 
240 240
 		if ( ! in_array( $field_type, array( 'chainedselect' ) ) ) {
241 241
 			return $input_type;
Please login to merge, or discard this patch.
includes/extensions/edit-entry/class-edit-entry.php 2 patches
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::$file = plugin_dir_path( __FILE__ );
38 38
 
39
-        if( is_admin() ) {
39
+        if ( is_admin() ) {
40 40
             $this->load_components( 'admin' );
41 41
         }
42 42
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     static function getInstance() {
58 58
 
59
-        if( empty( self::$instance ) ) {
59
+        if ( empty( self::$instance ) ) {
60 60
             self::$instance = new GravityView_Edit_Entry;
61 61
         }
62 62
 
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
     private function add_hooks() {
83 83
 
84 84
         // Add front-end access to Gravity Forms delete file action
85
-        add_action( 'wp_ajax_nopriv_rg_delete_file', array( $this, 'delete_file') );
85
+        add_action( 'wp_ajax_nopriv_rg_delete_file', array( $this, 'delete_file' ) );
86 86
 
87 87
         // Make sure this hook is run for non-admins
88
-        add_action( 'wp_ajax_rg_delete_file', array( $this, 'delete_file') );
88
+        add_action( 'wp_ajax_rg_delete_file', array( $this, 'delete_file' ) );
89 89
 
90 90
         add_filter( 'gravityview_blocklist_field_types', array( $this, 'modify_field_blocklist' ), 10, 2 );
91 91
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	public function add_reserved_arg( $args ) {
110 110
 
111
-		$args[] = 'edit';
111
+		$args[ ] = 'edit';
112 112
 
113 113
 		return $args;
114 114
 	}
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	private function addon_specific_hooks() {
121 121
 
122
-		if( class_exists( 'GFSignature' ) && is_callable( array( 'GFSignature', 'get_instance' ) ) ) {
123
-			add_filter('gform_admin_pre_render', array( GFSignature::get_instance(), 'edit_lead_script'));
122
+		if ( class_exists( 'GFSignature' ) && is_callable( array( 'GFSignature', 'get_instance' ) ) ) {
123
+			add_filter( 'gform_admin_pre_render', array( GFSignature::get_instance(), 'edit_lead_script' ) );
124 124
 		}
125 125
 
126 126
 	}
@@ -207,15 +207,15 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public static function get_edit_link( $entry, $view_id, $post_id = null, $field_values = '' ) {
209 209
 
210
-        $nonce_key = self::get_nonce_key( $view_id, $entry['form_id'], $entry['id']  );
210
+        $nonce_key = self::get_nonce_key( $view_id, $entry[ 'form_id' ], $entry[ 'id' ] );
211 211
 
212
-        $base = gv_entry_link( $entry, $post_id ? : $view_id  );
212
+        $base = gv_entry_link( $entry, $post_id ?: $view_id );
213 213
 
214 214
         $url = add_query_arg( array(
215 215
             'edit' => wp_create_nonce( $nonce_key )
216 216
         ), $base );
217 217
 
218
-        if( $post_id ) {
218
+        if ( $post_id ) {
219 219
 	        $url = add_query_arg( array( 'gvid' => $view_id ), $url );
220 220
         }
221 221
 
@@ -223,9 +223,9 @@  discard block
 block discarded – undo
223 223
 	     * Allow passing params to dynamically populate entry with values
224 224
 	     * @since 1.9.2
225 225
 	     */
226
-	    if( !empty( $field_values ) ) {
226
+	    if ( ! empty( $field_values ) ) {
227 227
 
228
-		    if( is_array( $field_values ) ) {
228
+		    if ( is_array( $field_values ) ) {
229 229
 			    // If already an array, no parse_str() needed
230 230
 			    $params = $field_values;
231 231
 		    } else {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 		 * @param array $entry The entry.
242 242
 		 * @param \GV\View $view The View.
243 243
 		 */
244
-		return apply_filters( 'gravityview/edit/link', $url, $entry, \GV\View::by_id( $view_id  ) );
244
+		return apply_filters( 'gravityview/edit/link', $url, $entry, \GV\View::by_id( $view_id ) );
245 245
     }
246 246
 
247 247
 	/**
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	 */
270 270
 	public function modify_field_blocklist( $fields = array(), $context = NULL ) {
271 271
 
272
-		if( empty( $context ) || $context !== 'edit' ) {
272
+		if ( empty( $context ) || $context !== 'edit' ) {
273 273
 			return $fields;
274 274
 		}
275 275
 
@@ -366,15 +366,15 @@  discard block
 block discarded – undo
366 366
         // If they can edit any entries (as defined in Gravity Forms)
367 367
         // Or if they can edit other people's entries
368 368
         // Then we're good.
369
-        if( GVCommon::has_cap( array( 'gravityforms_edit_entries', 'gravityview_edit_others_entries' ), $entry['id'] ) ) {
369
+        if ( GVCommon::has_cap( array( 'gravityforms_edit_entries', 'gravityview_edit_others_entries' ), $entry[ 'id' ] ) ) {
370 370
 
371 371
             gravityview()->log->debug( 'User has ability to edit all entries.' );
372 372
 
373 373
             $user_can_edit = true;
374 374
 
375
-        } else if( !isset( $entry['created_by'] ) ) {
375
+        } else if ( ! isset( $entry[ 'created_by' ] ) ) {
376 376
 
377
-            gravityview()->log->error( 'Entry `created_by` doesn\'t exist.');
377
+            gravityview()->log->error( 'Entry `created_by` doesn\'t exist.' );
378 378
 
379 379
             $user_can_edit = false;
380 380
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
             $current_user = wp_get_current_user();
384 384
 
385 385
             // User edit is disabled
386
-            if( empty( $user_edit ) ) {
386
+            if ( empty( $user_edit ) ) {
387 387
 
388 388
                 gravityview()->log->debug( 'User Edit is disabled. Returning false.' );
389 389
 
@@ -391,13 +391,13 @@  discard block
 block discarded – undo
391 391
             }
392 392
 
393 393
             // User edit is enabled and the logged-in user is the same as the user who created the entry. We're good.
394
-            else if( is_user_logged_in() && intval( $current_user->ID ) === intval( $entry['created_by'] ) ) {
394
+            else if ( is_user_logged_in() && intval( $current_user->ID ) === intval( $entry[ 'created_by' ] ) ) {
395 395
 
396 396
                 gravityview()->log->debug( 'User {user_id} created the entry.', array( 'user_id', $current_user->ID ) );
397 397
 
398 398
                 $user_can_edit = true;
399 399
 
400
-            } else if( ! is_user_logged_in() ) {
400
+            } else if ( ! is_user_logged_in() ) {
401 401
 
402 402
                 gravityview()->log->debug( 'No user defined; edit entry requires logged in user' );
403 403
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
          */
416 416
         $user_can_edit = apply_filters( 'gravityview/edit_entry/user_can_edit_entry', $user_can_edit, $entry, $view_id );
417 417
 
418
-        return (bool) $user_can_edit;
418
+        return (bool)$user_can_edit;
419 419
     }
420 420
 
421 421
 	/**
@@ -426,8 +426,8 @@  discard block
 block discarded – undo
426 426
 	 * @uses   GFForms::delete_file()
427 427
 	 */
428 428
 	public function delete_file() {
429
-		add_filter( 'user_has_cap', function ( $caps ) {
430
-			$caps['gravityforms_delete_entries'] = true;
429
+		add_filter( 'user_has_cap', function( $caps ) {
430
+			$caps[ 'gravityforms_delete_entries' ] = true;
431 431
 
432 432
 			return $caps;
433 433
 
Please login to merge, or discard this patch.
Indentation   +157 added lines, -157 removed lines patch added patch discarded remove patch
@@ -18,84 +18,84 @@  discard block
 block discarded – undo
18 18
 
19 19
 class GravityView_Edit_Entry {
20 20
 
21
-    /**
22
-     * @var string
23
-     */
21
+	/**
22
+	 * @var string
23
+	 */
24 24
 	static $file;
25 25
 
26 26
 	static $instance;
27 27
 
28
-    /**
29
-     * Component instances.
30
-     * @var array
31
-     */
32
-    public $instances = array();
28
+	/**
29
+	 * Component instances.
30
+	 * @var array
31
+	 */
32
+	public $instances = array();
33 33
 
34 34
 
35 35
 	function __construct() {
36 36
 
37
-        self::$file = plugin_dir_path( __FILE__ );
37
+		self::$file = plugin_dir_path( __FILE__ );
38 38
 
39
-        if( is_admin() ) {
40
-            $this->load_components( 'admin' );
41
-        }
39
+		if( is_admin() ) {
40
+			$this->load_components( 'admin' );
41
+		}
42 42
 
43 43
 		$this->load_components( 'locking' );
44 44
 
45
-        $this->load_components( 'render' );
45
+		$this->load_components( 'render' );
46 46
 
47
-        // If GF User Registration Add-on exists
48
-        $this->load_components( 'user-registration' );
47
+		// If GF User Registration Add-on exists
48
+		$this->load_components( 'user-registration' );
49 49
 
50
-        $this->add_hooks();
50
+		$this->add_hooks();
51 51
 
52 52
 		// Process hooks for addons that may or may not be present
53 53
 		$this->addon_specific_hooks();
54 54
 	}
55 55
 
56 56
 
57
-    static function getInstance() {
57
+	static function getInstance() {
58 58
 
59
-        if( empty( self::$instance ) ) {
60
-            self::$instance = new GravityView_Edit_Entry;
61
-        }
59
+		if( empty( self::$instance ) ) {
60
+			self::$instance = new GravityView_Edit_Entry;
61
+		}
62 62
 
63
-        return self::$instance;
64
-    }
63
+		return self::$instance;
64
+	}
65 65
 
66 66
 
67
-    private function load_components( $component ) {
67
+	private function load_components( $component ) {
68 68
 
69
-        $dir = trailingslashit( self::$file );
69
+		$dir = trailingslashit( self::$file );
70 70
 
71
-        $filename  = $dir . 'class-edit-entry-' . $component . '.php';
72
-        $classname = 'GravityView_Edit_Entry_' . str_replace( ' ', '_', ucwords( str_replace( '-', ' ', $component ) ) );
71
+		$filename  = $dir . 'class-edit-entry-' . $component . '.php';
72
+		$classname = 'GravityView_Edit_Entry_' . str_replace( ' ', '_', ucwords( str_replace( '-', ' ', $component ) ) );
73 73
 
74
-        // Loads component and pass extension's instance so that component can
75
-        // talk each other.
76
-        require_once $filename;
77
-        $this->instances[ $component ] = new $classname( $this );
78
-        $this->instances[ $component ]->load();
74
+		// Loads component and pass extension's instance so that component can
75
+		// talk each other.
76
+		require_once $filename;
77
+		$this->instances[ $component ] = new $classname( $this );
78
+		$this->instances[ $component ]->load();
79 79
 
80
-    }
80
+	}
81 81
 
82
-    private function add_hooks() {
82
+	private function add_hooks() {
83 83
 
84
-        // Add front-end access to Gravity Forms delete file action
85
-        add_action( 'wp_ajax_nopriv_rg_delete_file', array( $this, 'delete_file') );
84
+		// Add front-end access to Gravity Forms delete file action
85
+		add_action( 'wp_ajax_nopriv_rg_delete_file', array( $this, 'delete_file') );
86 86
 
87
-        // Make sure this hook is run for non-admins
88
-        add_action( 'wp_ajax_rg_delete_file', array( $this, 'delete_file') );
87
+		// Make sure this hook is run for non-admins
88
+		add_action( 'wp_ajax_rg_delete_file', array( $this, 'delete_file') );
89 89
 
90
-        add_filter( 'gravityview_blocklist_field_types', array( $this, 'modify_field_blocklist' ), 10, 2 );
90
+		add_filter( 'gravityview_blocklist_field_types', array( $this, 'modify_field_blocklist' ), 10, 2 );
91 91
 
92
-        // add template path to check for field
93
-        add_filter( 'gravityview_template_paths', array( $this, 'add_template_path' ) );
92
+		// add template path to check for field
93
+		add_filter( 'gravityview_template_paths', array( $this, 'add_template_path' ) );
94 94
 
95 95
 		add_filter( 'gravityview/field/is_visible', array( $this, 'maybe_not_visible' ), 10, 3 );
96 96
 
97 97
 		add_filter( 'gravityview/api/reserved_query_args', array( $this, 'add_reserved_arg' ) );
98
-    }
98
+	}
99 99
 
100 100
 	/**
101 101
 	 * Adds "edit" to the list of internal reserved query args
@@ -166,74 +166,74 @@  discard block
 block discarded – undo
166 166
 		return false;
167 167
 	}
168 168
 
169
-    /**
170
-     * Include this extension templates path
171
-     * @param array $file_paths List of template paths ordered
172
-     */
173
-    public function add_template_path( $file_paths ) {
174
-
175
-        // Index 100 is the default GravityView template path.
176
-        $file_paths[ 110 ] = self::$file;
177
-
178
-        return $file_paths;
179
-    }
180
-
181
-    /**
182
-     *
183
-     * Return a well formatted nonce key according to GravityView Edit Entry protocol
184
-     *
185
-     * @param $view_id int GravityView view id
186
-     * @param $form_id int Gravity Forms form id
187
-     * @param $entry_id int Gravity Forms entry id
188
-     * @return string
189
-     */
190
-    public static function get_nonce_key( $view_id, $form_id, $entry_id ) {
191
-        return sprintf( 'edit_%d_%d_%d', $view_id, $form_id, $entry_id );
192
-    }
193
-
194
-
195
-    /**
196
-     * The edit entry link creates a secure link with a nonce
197
-     *
198
-     * It also mimics the URL structure Gravity Forms expects to have so that
199
-     * it formats the display of the edit form like it does in the backend, like
200
-     * "You can edit this post from the post page" fields, for example.
201
-     *
202
-     * @param $entry array Gravity Forms entry object
203
-     * @param $view_id int GravityView view id
204
-     * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2}
205
-     * @param string|array $field_values Parameters to pass in to the Edit Entry form to prefill data. Uses the same format as Gravity Forms "Allow field to be populated dynamically" {@since 1.9.2} {@see https://www.gravityhelp.com/documentation/article/allow-field-to-be-populated-dynamically/ }
206
-     * @return string
207
-     */
208
-    public static function get_edit_link( $entry, $view_id, $post_id = null, $field_values = '' ) {
209
-
210
-        $nonce_key = self::get_nonce_key( $view_id, $entry['form_id'], $entry['id']  );
211
-
212
-        $base = gv_entry_link( $entry, $post_id ? : $view_id  );
213
-
214
-        $url = add_query_arg( array(
215
-            'edit' => wp_create_nonce( $nonce_key )
216
-        ), $base );
217
-
218
-        if( $post_id ) {
219
-	        $url = add_query_arg( array( 'gvid' => $view_id ), $url );
220
-        }
221
-
222
-	    /**
223
-	     * Allow passing params to dynamically populate entry with values
224
-	     * @since 1.9.2
225
-	     */
226
-	    if( !empty( $field_values ) ) {
227
-
228
-		    if( is_array( $field_values ) ) {
229
-			    // If already an array, no parse_str() needed
230
-			    $params = $field_values;
231
-		    } else {
232
-			    parse_str( $field_values, $params );
233
-		    }
234
-
235
-		    $url = add_query_arg( $params, $url );
236
-	    }
169
+	/**
170
+	 * Include this extension templates path
171
+	 * @param array $file_paths List of template paths ordered
172
+	 */
173
+	public function add_template_path( $file_paths ) {
174
+
175
+		// Index 100 is the default GravityView template path.
176
+		$file_paths[ 110 ] = self::$file;
177
+
178
+		return $file_paths;
179
+	}
180
+
181
+	/**
182
+	 *
183
+	 * Return a well formatted nonce key according to GravityView Edit Entry protocol
184
+	 *
185
+	 * @param $view_id int GravityView view id
186
+	 * @param $form_id int Gravity Forms form id
187
+	 * @param $entry_id int Gravity Forms entry id
188
+	 * @return string
189
+	 */
190
+	public static function get_nonce_key( $view_id, $form_id, $entry_id ) {
191
+		return sprintf( 'edit_%d_%d_%d', $view_id, $form_id, $entry_id );
192
+	}
193
+
194
+
195
+	/**
196
+	 * The edit entry link creates a secure link with a nonce
197
+	 *
198
+	 * It also mimics the URL structure Gravity Forms expects to have so that
199
+	 * it formats the display of the edit form like it does in the backend, like
200
+	 * "You can edit this post from the post page" fields, for example.
201
+	 *
202
+	 * @param $entry array Gravity Forms entry object
203
+	 * @param $view_id int GravityView view id
204
+	 * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2}
205
+	 * @param string|array $field_values Parameters to pass in to the Edit Entry form to prefill data. Uses the same format as Gravity Forms "Allow field to be populated dynamically" {@since 1.9.2} {@see https://www.gravityhelp.com/documentation/article/allow-field-to-be-populated-dynamically/ }
206
+	 * @return string
207
+	 */
208
+	public static function get_edit_link( $entry, $view_id, $post_id = null, $field_values = '' ) {
209
+
210
+		$nonce_key = self::get_nonce_key( $view_id, $entry['form_id'], $entry['id']  );
211
+
212
+		$base = gv_entry_link( $entry, $post_id ? : $view_id  );
213
+
214
+		$url = add_query_arg( array(
215
+			'edit' => wp_create_nonce( $nonce_key )
216
+		), $base );
217
+
218
+		if( $post_id ) {
219
+			$url = add_query_arg( array( 'gvid' => $view_id ), $url );
220
+		}
221
+
222
+		/**
223
+		 * Allow passing params to dynamically populate entry with values
224
+		 * @since 1.9.2
225
+		 */
226
+		if( !empty( $field_values ) ) {
227
+
228
+			if( is_array( $field_values ) ) {
229
+				// If already an array, no parse_str() needed
230
+				$params = $field_values;
231
+			} else {
232
+				parse_str( $field_values, $params );
233
+			}
234
+
235
+			$url = add_query_arg( $params, $url );
236
+		}
237 237
 
238 238
 		/**
239 239
 		 * @filter `gravityview/edit/link` Filter the edit URL link.
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 		 * @param \GV\View $view The View.
243 243
 		 */
244 244
 		return apply_filters( 'gravityview/edit/link', $url, $entry, \GV\View::by_id( $view_id  ) );
245
-    }
245
+	}
246 246
 
247 247
 	/**
248 248
 	 * @depecated 2.14 Use {@see GravityView_Edit_Entry::modify_field_blocklist()}
@@ -333,19 +333,19 @@  discard block
 block discarded – undo
333 333
 	}
334 334
 
335 335
 
336
-    /**
337
-     * checks if user has permissions to edit a specific entry
338
-     *
339
-     * Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!!
340
-     *
341
-     * @param  array $entry Gravity Forms entry array
342
-     * @param \GV\View|int $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0
343
-     * @return bool
344
-     */
345
-    public static function check_user_cap_edit_entry( $entry, $view = 0 ) {
336
+	/**
337
+	 * checks if user has permissions to edit a specific entry
338
+	 *
339
+	 * Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!!
340
+	 *
341
+	 * @param  array $entry Gravity Forms entry array
342
+	 * @param \GV\View|int $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0
343
+	 * @return bool
344
+	 */
345
+	public static function check_user_cap_edit_entry( $entry, $view = 0 ) {
346 346
 
347
-        // No permission by default
348
-        $user_can_edit = false;
347
+		// No permission by default
348
+		$user_can_edit = false;
349 349
 
350 350
 		// get user_edit setting
351 351
 		if ( empty( $view ) ) {
@@ -363,60 +363,60 @@  discard block
 block discarded – undo
363 363
 			$user_edit = GVCommon::get_template_setting( $view_id, 'user_edit' );
364 364
 		}
365 365
 
366
-        // If they can edit any entries (as defined in Gravity Forms)
367
-        // Or if they can edit other people's entries
368
-        // Then we're good.
369
-        if( GVCommon::has_cap( array( 'gravityforms_edit_entries', 'gravityview_edit_others_entries' ), $entry['id'] ) ) {
366
+		// If they can edit any entries (as defined in Gravity Forms)
367
+		// Or if they can edit other people's entries
368
+		// Then we're good.
369
+		if( GVCommon::has_cap( array( 'gravityforms_edit_entries', 'gravityview_edit_others_entries' ), $entry['id'] ) ) {
370 370
 
371
-            gravityview()->log->debug( 'User has ability to edit all entries.' );
371
+			gravityview()->log->debug( 'User has ability to edit all entries.' );
372 372
 
373
-            $user_can_edit = true;
373
+			$user_can_edit = true;
374 374
 
375
-        } else if( !isset( $entry['created_by'] ) ) {
375
+		} else if( !isset( $entry['created_by'] ) ) {
376 376
 
377
-            gravityview()->log->error( 'Entry `created_by` doesn\'t exist.');
377
+			gravityview()->log->error( 'Entry `created_by` doesn\'t exist.');
378 378
 
379
-            $user_can_edit = false;
379
+			$user_can_edit = false;
380 380
 
381
-        } else {
381
+		} else {
382 382
 
383
-            $current_user = wp_get_current_user();
383
+			$current_user = wp_get_current_user();
384 384
 
385
-            // User edit is disabled
386
-            if( empty( $user_edit ) ) {
385
+			// User edit is disabled
386
+			if( empty( $user_edit ) ) {
387 387
 
388
-                gravityview()->log->debug( 'User Edit is disabled. Returning false.' );
388
+				gravityview()->log->debug( 'User Edit is disabled. Returning false.' );
389 389
 
390
-                $user_can_edit = false;
391
-            }
390
+				$user_can_edit = false;
391
+			}
392 392
 
393
-            // User edit is enabled and the logged-in user is the same as the user who created the entry. We're good.
394
-            else if( is_user_logged_in() && intval( $current_user->ID ) === intval( $entry['created_by'] ) ) {
393
+			// User edit is enabled and the logged-in user is the same as the user who created the entry. We're good.
394
+			else if( is_user_logged_in() && intval( $current_user->ID ) === intval( $entry['created_by'] ) ) {
395 395
 
396
-                gravityview()->log->debug( 'User {user_id} created the entry.', array( 'user_id', $current_user->ID ) );
396
+				gravityview()->log->debug( 'User {user_id} created the entry.', array( 'user_id', $current_user->ID ) );
397 397
 
398
-                $user_can_edit = true;
398
+				$user_can_edit = true;
399 399
 
400
-            } else if( ! is_user_logged_in() ) {
400
+			} else if( ! is_user_logged_in() ) {
401 401
 
402
-                gravityview()->log->debug( 'No user defined; edit entry requires logged in user' );
402
+				gravityview()->log->debug( 'No user defined; edit entry requires logged in user' );
403 403
 
404
-	            $user_can_edit = false; // Here just for clarity
405
-            }
404
+				$user_can_edit = false; // Here just for clarity
405
+			}
406 406
 
407
-        }
407
+		}
408 408
 
409
-        /**
410
-         * @filter `gravityview/edit_entry/user_can_edit_entry` Modify whether user can edit an entry.
411
-         * @since 1.15 Added `$entry` and `$view_id` parameters
412
-         * @param boolean $user_can_edit Can the current user edit the current entry? (Default: false)
413
-         * @param array $entry Gravity Forms entry array {@since 1.15}
414
-         * @param int $view_id ID of the view you want to check visibility against {@since 1.15}
415
-         */
416
-        $user_can_edit = apply_filters( 'gravityview/edit_entry/user_can_edit_entry', $user_can_edit, $entry, $view_id );
409
+		/**
410
+		 * @filter `gravityview/edit_entry/user_can_edit_entry` Modify whether user can edit an entry.
411
+		 * @since 1.15 Added `$entry` and `$view_id` parameters
412
+		 * @param boolean $user_can_edit Can the current user edit the current entry? (Default: false)
413
+		 * @param array $entry Gravity Forms entry array {@since 1.15}
414
+		 * @param int $view_id ID of the view you want to check visibility against {@since 1.15}
415
+		 */
416
+		$user_can_edit = apply_filters( 'gravityview/edit_entry/user_can_edit_entry', $user_can_edit, $entry, $view_id );
417 417
 
418
-        return (bool) $user_can_edit;
419
-    }
418
+		return (bool) $user_can_edit;
419
+	}
420 420
 
421 421
 	/**
422 422
 	 * Deletes a file.
Please login to merge, or discard this patch.