Update PHP_CodeSniffer ruleset: PSR2 → PSR12

This commit is contained in:
Zach Borboa
2023-06-30 01:23:37 -07:00
parent 9bd4776b73
commit cd924d10c3
115 changed files with 269 additions and 80 deletions
+8 -3
View File
@@ -1,9 +1,14 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
$server_start = microtime(true);
// Prevent direct access unless testing.
if (getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') !== 'yes' &&
@$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
if (
getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') !== 'yes' &&
@$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes'
) {
exit;
}