@@ -130,12 +130,12 @@ public function main(/** @scrutinizer ignore-unused */ Request $request): Respon
130130 'links ' => [
131131 [
132132 'href ' => Module::getModuleURL ('admin/diagnostics ' ),
133- 'text ' => Translate::noop ('Diagnostics on hostname, port and protocol ' )
133+ 'text ' => Translate::noop ('Diagnostics on hostname, port and protocol ' ),
134134 ],
135135 [
136136 'href ' => Module::getModuleURL ('admin/phpinfo ' ),
137- 'text ' => Translate::noop ('Information on your PHP installation ' )
138- ]
137+ 'text ' => Translate::noop ('Information on your PHP installation ' ),
138+ ],
139139 ],
140140 'enablematrix ' => [
141141 'saml20idp ' => $ this ->config ->getOptionalBoolean ('enable.saml20-idp ' , false ),
@@ -211,11 +211,11 @@ protected function getPrerequisiteChecks(): array
211211 Translate::noop ('PHP %minimum% or newer is needed. You are running: %current% ' ),
212212 [
213213 '%minimum% ' => '8.1 ' ,
214- '%current% ' => explode ('- ' , phpversion ())[0 ]
215- ]
214+ '%current% ' => explode ('- ' , phpversion ())[0 ],
215+ ],
216216 ],
217- 'enabled ' => version_compare (phpversion (), '8.1 ' , '>= ' )
218- ]
217+ 'enabled ' => version_compare (phpversion (), '8.1 ' , '>= ' ),
218+ ],
219219 ];
220220 $ store = $ this ->config ->getOptionalString ('store.type ' , null );
221221 $ checkforupdates = $ this ->config ->getOptionalBoolean ('admin.checkforupdates ' , true );
@@ -226,93 +226,93 @@ protected function getPrerequisiteChecks(): array
226226 'required ' => 'required ' ,
227227 'descr ' => [
228228 'required ' => Translate::noop ('Date/Time Extension ' ),
229- ]
229+ ],
230230 ],
231231 'hash ' => [
232232 'required ' => 'required ' ,
233233 'descr ' => [
234234 'required ' => Translate::noop ('Hashing function ' ),
235- ]
235+ ],
236236 ],
237237 'gzinflate ' => [
238238 'required ' => 'required ' ,
239239 'descr ' => [
240240 'required ' => Translate::noop ('ZLib ' ),
241- ]
241+ ],
242242 ],
243243 'openssl_sign ' => [
244244 'required ' => 'required ' ,
245245 'descr ' => [
246246 'required ' => Translate::noop ('OpenSSL ' ),
247- ]
247+ ],
248248 ],
249249 'dom_import_simplexml ' => [
250250 'required ' => 'required ' ,
251251 'descr ' => [
252252 'required ' => Translate::noop ('XML DOM ' ),
253- ]
253+ ],
254254 ],
255255 'preg_match ' => [
256256 'required ' => 'required ' ,
257257 'descr ' => [
258258 'required ' => Translate::noop ('Regular expression support ' ),
259- ]
259+ ],
260260 ],
261261 'intl_get_error_code ' => [
262262 'required ' => 'optional ' ,
263263 'descr ' => [
264264 'optional ' => Translate::noop ('PHP intl extension ' ),
265- ]
265+ ],
266266 ],
267267 'json_decode ' => [
268268 'required ' => 'required ' ,
269269 'descr ' => [
270270 'required ' => Translate::noop ('JSON support ' ),
271- ]
271+ ],
272272 ],
273273 'class_implements ' => [
274274 'required ' => 'required ' ,
275275 'descr ' => [
276276 'required ' => Translate::noop ('Standard PHP library (SPL) ' ),
277- ]
277+ ],
278278 ],
279279 'mb_strlen ' => [
280280 'required ' => 'required ' ,
281281 'descr ' => [
282282 'required ' => Translate::noop ('Multibyte String extension ' ),
283- ]
283+ ],
284284 ],
285285 'curl_init ' => [
286286 'required ' => ($ checkforupdates === true ) ? 'required ' : 'optional ' ,
287287 'descr ' => [
288288 'optional ' => Translate::noop (
289- 'cURL (might be required by some modules) '
289+ 'cURL (might be required by some modules) ' ,
290290 ),
291291 'required ' => Translate::noop (
292- 'cURL (required if automatic version checks are used, also by some modules) '
292+ 'cURL (required if automatic version checks are used, also by some modules) ' ,
293293 ),
294- ]
294+ ],
295295 ],
296296 'session_start ' => [
297297 'required ' => $ store === 'phpsession ' ? 'required ' : 'optional ' ,
298298 'descr ' => [
299299 'optional ' => Translate::noop ('Session extension (required if PHP sessions are used) ' ),
300300 'required ' => Translate::noop ('Session extension ' ),
301- ]
301+ ],
302302 ],
303303 'pdo_drivers ' => [
304304 'required ' => $ store === 'sql ' ? 'required ' : 'optional ' ,
305305 'descr ' => [
306306 'optional ' => Translate::noop ('PDO Extension (required if a database backend is used) ' ),
307307 'required ' => Translate::noop ('PDO extension ' ),
308- ]
308+ ],
309309 ],
310310 'ldap_bind ' => [
311311 'required ' => Module::isModuleEnabled ('ldap ' ) ? 'required ' : 'optional ' ,
312312 'descr ' => [
313313 'optional ' => Translate::noop ('LDAP extension (required if an LDAP backend is used) ' ),
314314 'required ' => Translate::noop ('LDAP extension ' ),
315- ]
315+ ],
316316 ],
317317 ];
318318
@@ -332,18 +332,18 @@ protected function getPrerequisiteChecks(): array
332332 'descr ' => [
333333 'optional ' => Translate::noop ('predis/predis (required if the redis data store is used) ' ),
334334 'required ' => Translate::noop ('predis/predis library ' ),
335- ]
335+ ],
336336 ],
337337 [
338338 'classes ' => ['\Memcache ' , '\Memcached ' ],
339339 'required ' => $ store === 'memcache ' ? 'required ' : 'optional ' ,
340340 'descr ' => [
341341 'optional ' => Translate::noop (
342- 'Memcache or Memcached extension (required if the memcache backend is used) '
342+ 'Memcache or Memcached extension (required if the memcache backend is used) ' ,
343343 ),
344344 'required ' => Translate::noop ('Memcache or Memcached extension ' ),
345- ]
346- ]
345+ ],
346+ ],
347347 ];
348348
349349 foreach ($ libs as $ lib ) {
@@ -413,7 +413,7 @@ protected function getWarnings(): array
413413 '<strong>You are not using HTTPS</strong> to protect communications with your users. HTTP works fine ' .
414414 'for testing purposes, but in a production environment you should use HTTPS. <a ' .
415415 'href="https://simplesamlphp.org/docs/stable/simplesamlphp-maintenance">Read more about the ' .
416- 'maintenance of SimpleSAMLphp</a>. '
416+ 'maintenance of SimpleSAMLphp</a>. ' ,
417417 );
418418 }
419419
@@ -424,7 +424,7 @@ protected function getWarnings(): array
424424 '<strong>The configuration uses the default secret salt</strong>. Make sure to modify the <code> ' .
425425 'secretsalt</code> option in the SimpleSAMLphp configuration in production environments. <a ' .
426426 'href="https://simplesamlphp.org/docs/stable/simplesamlphp-install">Read more about the ' .
427- 'maintenance of SimpleSAMLphp</a>. '
427+ 'maintenance of SimpleSAMLphp</a>. ' ,
428428 );
429429 } elseif (str_contains ($ secretSalt , '% ' )) {
430430 $ warnings [] = Translate::noop (
@@ -440,7 +440,7 @@ protected function getWarnings(): array
440440 if (($ checkforupdates === true ) && $ this ->config ->getVersion () !== 'dev-master ' ) {
441441 if (!function_exists ('curl_init ' )) {
442442 $ warnings [] = Translate::noop (
443- 'The cURL PHP extension is missing. Cannot check for SimpleSAMLphp updates. '
443+ 'The cURL PHP extension is missing. Cannot check for SimpleSAMLphp updates. ' ,
444444 );
445445 } else {
446446 $ latest = $ this ->session ->getData (self ::LATEST_VERSION_STATE_KEY , "version " );
0 commit comments