Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-01-02 20:19:06 +00:00 committed by StyleCI Bot
parent 963fe6445d
commit fa4bc8a9e5
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ $docs = [
$layer_list = '';
foreach (array_slice(glob(__DIR__.'/src/danog/MadelineProto/TL_telegram_*'), 0, -1) as $file) {
$layer = preg_replace(['/.*telegram_/', '/\..+/'], '', $file);
$docs []= [
$docs[] = [
'tl_schema' => ['telegram' => $file],
'title' => 'MadelineProto API documentation (layer '.$layer.')',
'description' => 'MadelineProto API documentation (layer '.$layer.')',

View File

@ -331,7 +331,7 @@ $'.$constructor." = 'user#44700'; // tg-cli style id (users)
$".$constructor." = 'chat#492772765'; // tg-cli style id (chats)
$".$constructor." = 'channel#38575794'; // tg-cli style id (channels)
```";
}
}
file_put_contents('constructors/'.$constructor.'.md', $header.$table.$type.$example);
}