Apply fixes from StyleCI
This commit is contained in:
parent
116271ca85
commit
40ad567e65
@ -40,8 +40,17 @@ class DocsBuilder
|
|||||||
|
|
||||||
public $types = [];
|
public $types = [];
|
||||||
public $any = '*';
|
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()
|
public function mk_docs()
|
||||||
{
|
{
|
||||||
\danog\MadelineProto\Logger::log(['Generating documentation index...'], \danog\MadelineProto\Logger::NOTICE);
|
\danog\MadelineProto\Logger::log(['Generating documentation index...'], \danog\MadelineProto\Logger::NOTICE);
|
||||||
|
@ -14,7 +14,8 @@ namespace danog\MadelineProto\DocsBuilder;
|
|||||||
|
|
||||||
trait Constructors
|
trait Constructors
|
||||||
{
|
{
|
||||||
public function mk_constructors() {
|
public function mk_constructors()
|
||||||
|
{
|
||||||
foreach (glob('constructors/'.$this->any) as $unlink) {
|
foreach (glob('constructors/'.$this->any) as $unlink) {
|
||||||
unlink($unlink);
|
unlink($unlink);
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,8 @@ namespace danog\MadelineProto\DocsBuilder;
|
|||||||
|
|
||||||
trait Methods
|
trait Methods
|
||||||
{
|
{
|
||||||
public function mk_methods() {
|
public function mk_methods()
|
||||||
|
{
|
||||||
foreach (glob($this->settings['output_dir'].'methods/'.$this->any) as $unlink) {
|
foreach (glob($this->settings['output_dir'].'methods/'.$this->any) as $unlink) {
|
||||||
unlink($this->settings['output_dir'].$unlink);
|
unlink($this->settings['output_dir'].$unlink);
|
||||||
}
|
}
|
||||||
@ -291,6 +291,5 @@ description: List of methods
|
|||||||
|
|
||||||
|
|
||||||
'.implode('', $this->docs_methods));
|
'.implode('', $this->docs_methods));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user