mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 08:34:41 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
6dd180542e
commit
aa817905df
@ -94,18 +94,18 @@ foreach ($orderedfiles as $key => $filename) {
|
||||
}
|
||||
}
|
||||
|
||||
$readme = explode("## ", file_get_contents('README.md'));
|
||||
$readme = explode('## ', file_get_contents('README.md'));
|
||||
foreach ($readme as &$section) {
|
||||
if (explode("\n", $section)[0] === 'Documentation') {
|
||||
$section = "Documentation\n\n".$index."\n";
|
||||
}
|
||||
}
|
||||
$readme = implode("## ", $readme);
|
||||
$readme = implode('## ', $readme);
|
||||
|
||||
file_put_contents('README.md', $readme);
|
||||
file_put_contents('docs/docs/index.md', "---
|
||||
file_put_contents('docs/docs/index.md', '---
|
||||
title: MadelineProto documentation
|
||||
description: PHP client/server for the telegram MTProto protocol (a better tg-cli)
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
".$readme);
|
||||
'.$readme);
|
||||
|
Loading…
Reference in New Issue
Block a user