Sistema de documentación y gestión de páginas Web para un entorno o proyecto Web.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
WMarkDown/PHP/ScriptsAnalyzer/WMarkDown.ScriptsAnalyzer.P...

19 lines
614 B

<?php
namespace WMarkDown\ScriptsAnalyzer;
class Python extends \WMarkDown\Abstracts\ScriptsAnalyzer{
public function analyze($file, $path = null, &$languages = [], $level = 0){
if(!($content = \WMarkDown\ScriptsAnalyzer::get_content($file, $path)))
return;
$wmd_path = $this->parent->get_wmd_path($file, $path);
!isset($languages["python"]) && ($languages["python"] = []);
$languages["python"][$i = count($languages["python"])] = ["path" => $wmd_path, "level" => $level, "methods" => []];
}
};