src/Util.php
static function saveIncludedFiles($filename, $fromFile) {
        if (file_exists($filename)) {
            $all_included_files = json_decode(file_get_contents($filename), JSON_OBJECT_AS_ARRAY);
        } else {
            $all_included_files = array();
        }
        foreach (get_included_files() as $includedFile) {
            if (!isset($all_included_files[$includedFile])) {
                $all_included_files[$includedFile] = array();
            }
            if (!in_array($fromFile, $all_included_files[$includedFile])) {
                array_push($all_included_files[$includedFile], $fromFile);
            }
        }
        file_put_contents($filename, json_encode($all_included_files));
    }
static function saveIncludedFiles($filename, $fromFile) {
        if (file_exists($filename)) {
            $all_included_files = json_decode(file_get_contents($filename), JSON_OBJECT_AS_ARRAY);
        } else {
            $all_included_files = array();
        }
        foreach (get_included_files() as $includedFile) {
            if (!isset($all_included_files[$includedFile])) {
                $all_included_files[$includedFile] = array();
            }
            if (!in_array($fromFile, $all_included_files[$includedFile])) {
                array_push($all_included_files[$includedFile], $fromFile);
            }
        }
        file_put_contents($filename, json_encode($all_included_files));
    }
static function saveIncludedFiles ( $ filename , $ fromFile ) { if ( file_exists ( $ filename ) ) { $ all_included_files = json_decode ( file_get_contents ( $ filename ) , JSON_OBJECT_AS_ARRAY ) ; } else { $ all_included_files = array ( ) ; } foreach ( get_included_files ( ) as $ includedFile ) { if ( ! isset ( $ all_included_files [ $ includedFile ] ) ) { $ all_included_files [ $ includedFile ] = array ( ) ; } if ( ! in_array ( $ fromFile , $ all_included_files [ $ includedFile ] ) ) { array_push ( $ all_included_files [ $ includedFile ] , $ fromFile ) ; } } file_put_contents ( $ filename , json_encode ( $ all_included_files ) ) ; }
Used to inspect shit

@param string $filename
Used to inspect shit