mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 05:42:40 +01:00
Fix a reset() thingie.
This commit is contained in:
parent
94dd5c6917
commit
a35ae4c2a0
1 changed files with 2 additions and 1 deletions
|
@ -126,9 +126,10 @@ class PhabricatorConduitConsoleController
|
||||||
foreach ($classes as $method_class) {
|
foreach ($classes as $method_class) {
|
||||||
$method_name = ConduitAPIMethod::getAPIMethodNameFromClassName(
|
$method_name = ConduitAPIMethod::getAPIMethodNameFromClassName(
|
||||||
$method_class);
|
$method_class);
|
||||||
|
$parts = explode('.', $method_name);
|
||||||
$method_names[] = array(
|
$method_names[] = array(
|
||||||
'full_name' => $method_name,
|
'full_name' => $method_name,
|
||||||
'group_name' => reset(explode('.', $method_name)),
|
'group_name' => reset($parts),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$method_names = igroup($method_names, 'group_name');
|
$method_names = igroup($method_names, 'group_name');
|
||||||
|
|
Loading…
Reference in a new issue