HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //proc/self/cwd/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/.php_cs.dist
<?php

return PhpCsFixer\Config::create()
    ->setRiskyAllowed(true)
    ->setRules([
        // Rulesets
        '@PSR2' => true,
        '@PhpCsFixer' => true,
        '@PhpCsFixer:risky' => true,
        '@PHP56Migration:risky' => true,
        '@PHPUnit57Migration:risky' => true,

        // Additional rules
        'fopen_flags' => true,
        'linebreak_after_opening_tag' => true,
        'native_constant_invocation' => true,
        'native_function_invocation' => true,

        // --- Diffs from @PhpCsFixer / @PhpCsFixer:risky ---

        // This is the same as the default for the @PhpCsFixer ruleset, minus
        // the following values: ['include', 'include_once', 'require',
        // 'require_once']. We could enable them and remove this line after
        // updating codegen for the `init.php` file to be compliant.
        'blank_line_before_statement' => ['statements' => ['break', 'case', 'continue', 'declare', 'default', 'exit', 'goto', 'return', 'switch', 'throw', 'try']],

        // This is just prettier / easier to read.
        'concat_space' => ['spacing' => 'one'],

        // This causes strange ordering with codegen'd classes. We might be
        // able to enable this if we update codegen to output class elements
        // in the correct order.
        'ordered_class_elements' => false,

        // Keep this disabled to avoid unnecessary diffs in PHPDoc comments of
        // codegen'd classes.
        'phpdoc_align' => false,

        // This is a "risky" rule that causes a bug in our codebase.
        // Specifically, in `StripeObject.updateAttributes` we construct new
        // `StripeObject`s for metadata. We can't use `self` there because it
        // needs to be a raw `StripeObject`.
        'self_accessor' => false,
    ])
;