Sorting model docs (#424)

This commit is contained in:
Django Eijgensteijn
2017-01-05 22:20:42 +01:00
committed by Barry vd. Heuvel
parent 8caca941b3
commit a7fc2ec489
+3
View File
@@ -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;