mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-21 19:41:17 +00:00
Update PHP_CodeSniffer ruleset: PSR2 → PSR12
This commit is contained in:
@@ -7,13 +7,15 @@ $current_version = Curl\Curl::VERSION;
|
||||
list($major, $minor, $patch) = explode('.', $current_version);
|
||||
$new_version = implode('.', [$major, $minor, (string)((int)$patch += 1)]);
|
||||
|
||||
foreach ([
|
||||
foreach (
|
||||
[
|
||||
[
|
||||
__DIR__ . '/../src/Curl/Curl.php',
|
||||
'/const VERSION = \'(?:\d+.\d+.\d+)\';/',
|
||||
'const VERSION = \'' . $new_version . '\';',
|
||||
],
|
||||
] as $info) {
|
||||
] as $info
|
||||
) {
|
||||
list($filepath, $find, $replace) = $info;
|
||||
$data = preg_replace($find, $replace, file_get_contents($filepath));
|
||||
file_put_contents($filepath, $data);
|
||||
|
||||
Reference in New Issue
Block a user