File tree Expand file tree Collapse file tree
user_guide_src/source/libraries/curlrequest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 __DIR__ . '/spark ' ,
4141 ]);
4242
43- $ overrides = [];
43+ $ overrides = [
44+ // for updating to coding-standard
45+ 'modernize_strpos ' => true ,
46+ ];
4447
4548$ options = [
4649 'cacheFile ' => 'build/.php-cs-fixer.cache ' ,
Original file line number Diff line number Diff line change 2929 __DIR__ . '/admin/starter/builds ' ,
3030 ]);
3131
32- $ overrides = [];
32+ $ overrides = [
33+ // for updating to coding-standard
34+ 'modernize_strpos ' => true ,
35+ ];
3336
3437$ options = [
3538 'cacheFile ' => 'build/.php-cs-fixer.no-header.cache ' ,
Original file line number Diff line number Diff line change 3535
3636$ overrides = [
3737 'void_return ' => true ,
38+ // for updating to coding-standard
39+ 'modernize_strpos ' => true ,
3840];
3941
4042$ options = [
Original file line number Diff line number Diff line change 3939 'import_symbols ' => false ,
4040 'leading_backslash_in_global_namespace ' => true ,
4141 ],
42+ // for updating to coding-standard
43+ 'modernize_strpos ' => true ,
4244];
4345
4446$ options = [
Original file line number Diff line number Diff line change 2525 */
2626
2727// Refuse to run when called from php-cgi
28- if (strpos (PHP_SAPI , 'cgi ' ) === 0 ) {
28+ if (str_starts_with (PHP_SAPI , 'cgi ' )) {
2929 exit ("The cli tool is not supported when running php-cgi. It needs php-cli to function! \n\n" );
3030}
3131
Original file line number Diff line number Diff line change 11<?php
22
3- if (strpos ($ response ->header ('content-type ' ), 'application/json ' ) !== false ) {
3+ if (str_contains ($ response ->header ('content-type ' ), 'application/json ' )) {
44 $ body = json_decode ($ body );
55}
You can’t perform that action at this time.
0 commit comments