hoaproject / Devtools

The Hoa\Devtools library.
https://hoa-project.net/
6 stars 6 forks source link

Only compute the documentation once #19

Closed Hywan closed 9 years ago

Hywan commented 9 years ago

Fix #18.

If we find twice the same library, it was computed twice. This caused an issue. For instance, if we are inside a library that has a documentation, it will be scanned twice: First time because we scan the current library and second time because we scan hoa://Library.

This patch fixes this issue by using the hashmap unicity property of PHP arrays and by reformatting the $vendors array for XYL.