File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -378,12 +378,20 @@ public static function getMethodSource($className, $methodName)
378378 public static function getPackageInformation ($ className )
379379 {
380380 $ result = array (
381+ 'namespace ' => '' ,
381382 'fullPackage ' => '' ,
382383 'category ' => '' ,
383384 'package ' => '' ,
384385 'subpackage ' => ''
385386 );
386387
388+ if (strpos ($ className , ': ' ) !== FALSE ) {
389+ $ namespace = explode (':: ' , $ className );
390+ array_pop ($ namespace );
391+
392+ $ result ['namespace ' ] = join (':: ' , $ namespace );
393+ }
394+
387395 $ class = new ReflectionClass ($ className );
388396 $ docComment = $ class ->getDocComment ();
389397
@@ -402,6 +410,8 @@ public static function getPackageInformation($className)
402410 }
403411
404412 if (empty ($ result ['fullPackage ' ])) {
413+ $ className = str_replace (':: ' , '_ ' , $ className );
414+
405415 $ tmp = explode ('_ ' , $ className );
406416
407417 if (count ($ tmp ) > 1 ) {
You can’t perform that action at this time.
0 commit comments