Apply fixes from StyleCI
This commit is contained in:
parent
963fe6445d
commit
fa4bc8a9e5
@ -39,7 +39,7 @@ $docs = [
|
|||||||
$layer_list = '';
|
$layer_list = '';
|
||||||
foreach (array_slice(glob(__DIR__.'/src/danog/MadelineProto/TL_telegram_*'), 0, -1) as $file) {
|
foreach (array_slice(glob(__DIR__.'/src/danog/MadelineProto/TL_telegram_*'), 0, -1) as $file) {
|
||||||
$layer = preg_replace(['/.*telegram_/', '/\..+/'], '', $file);
|
$layer = preg_replace(['/.*telegram_/', '/\..+/'], '', $file);
|
||||||
$docs []= [
|
$docs[] = [
|
||||||
'tl_schema' => ['telegram' => $file],
|
'tl_schema' => ['telegram' => $file],
|
||||||
'title' => 'MadelineProto API documentation (layer '.$layer.')',
|
'title' => 'MadelineProto API documentation (layer '.$layer.')',
|
||||||
'description' => 'MadelineProto API documentation (layer '.$layer.')',
|
'description' => 'MadelineProto API documentation (layer '.$layer.')',
|
||||||
|
@ -331,7 +331,7 @@ $'.$constructor." = 'user#44700'; // tg-cli style id (users)
|
|||||||
$".$constructor." = 'chat#492772765'; // tg-cli style id (chats)
|
$".$constructor." = 'chat#492772765'; // tg-cli style id (chats)
|
||||||
$".$constructor." = 'channel#38575794'; // tg-cli style id (channels)
|
$".$constructor." = 'channel#38575794'; // tg-cli style id (channels)
|
||||||
```";
|
```";
|
||||||
}
|
}
|
||||||
file_put_contents('constructors/'.$constructor.'.md', $header.$table.$type.$example);
|
file_put_contents('constructors/'.$constructor.'.md', $header.$table.$type.$example);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user