Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-08-18 16:11:04 +00:00 committed by StyleCI Bot
parent 116271ca85
commit 40ad567e65
3 changed files with 16 additions and 7 deletions

View File

@ -40,8 +40,17 @@ class DocsBuilder
public $types = [];
public $any = '*';
public function end($what) { return end($what); }
public function escape($hwat) { return str_replace('_', '\_', $hwat); }
public function end($what)
{
return end($what);
}
public function escape($hwat)
{
return str_replace('_', '\_', $hwat);
}
public function mk_docs()
{
\danog\MadelineProto\Logger::log(['Generating documentation index...'], \danog\MadelineProto\Logger::NOTICE);

View File

@ -14,7 +14,8 @@ namespace danog\MadelineProto\DocsBuilder;
trait Constructors
{
public function mk_constructors() {
public function mk_constructors()
{
foreach (glob('constructors/'.$this->any) as $unlink) {
unlink($unlink);
}

View File

@ -14,8 +14,8 @@ namespace danog\MadelineProto\DocsBuilder;
trait Methods
{
public function mk_methods() {
public function mk_methods()
{
foreach (glob($this->settings['output_dir'].'methods/'.$this->any) as $unlink) {
unlink($this->settings['output_dir'].$unlink);
}
@ -291,6 +291,5 @@ description: List of methods
'.implode('', $this->docs_methods));
}
}