mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 06:59:01 +01:00
18 lines
554 B
PHP
18 lines
554 B
PHP
|
<?php
|
||
|
|
||
|
$input = \file_get_contents('vendor/league/uri-interfaces/src/Contracts/UriInterface.php');
|
||
|
\preg_match_all("/public function (\w+)[(].*/", $input, $matches);
|
||
|
$search = $matches[1];
|
||
|
$replace = $matches[0];
|
||
|
|
||
|
foreach ($search as &$method) {
|
||
|
$method = "/public function $method".'[(].*/';
|
||
|
}
|
||
|
foreach ($replace as &$method) {
|
||
|
$method= \str_replace(';', '', $method);
|
||
|
}
|
||
|
|
||
|
$input = \file_get_contents('vendor/league/uri/src/Uri.php');
|
||
|
$input = \preg_replace($search, $replace, $input);
|
||
|
\file_put_contents('vendor/league/uri/src/Uri.php', $input);
|