mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Sorting model docs (#424)
This commit is contained in:
committed by
Barry vd. Heuvel
parent
8caca941b3
commit
a7fc2ec489
@@ -377,6 +377,7 @@ class ModelsCommand extends Command
|
||||
{
|
||||
$methods = get_class_methods($model);
|
||||
if ($methods) {
|
||||
sort($methods);
|
||||
foreach ($methods as $method) {
|
||||
if (Str::startsWith($method, 'get') && Str::endsWith(
|
||||
$method,
|
||||
@@ -569,6 +570,8 @@ class ModelsCommand extends Command
|
||||
$phpdoc->appendTag($tag);
|
||||
}
|
||||
|
||||
ksort($this->methods);
|
||||
|
||||
foreach ($this->methods as $name => $method) {
|
||||
if (in_array($name, $methods)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user