1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 14:16:32 +02:00

PSR-2 reformatting PHPDoc corrections

With minor corrections.

Signed-off-by: Marcus Bointon <marcus@synchromedia.co.uk>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Marcus Bointon
2013-07-16 13:56:14 +02:00
committed by Edward Z. Yang
parent 19eee14899
commit fac747bdbd
433 changed files with 13302 additions and 6690 deletions

View File

@@ -61,12 +61,13 @@ echo "done!\n";
*
* @note This function expects that format $name extends $parent on one line
*
* @param $file
* @param string $file
* File to check dependencies of.
* @return
* @return array
* Lookup array of files the file is dependent on, sorted accordingly.
*/
function get_dependency_lookup($file) {
function get_dependency_lookup($file)
{
static $cache = array();
if (isset($cache[$file])) return $cache[$file];
if (!file_exists($file)) {
@@ -108,7 +109,8 @@ function get_dependency_lookup($file) {
* @return
* Sorted array ($files is not modified by reference!)
*/
function dep_sort($files) {
function dep_sort($files)
{
$ret = array();
$cache = array();
foreach ($files as $file) {