script/todo.php
private function getLanguages()
    {
        $directories = glob($this->basePath.'/*', GLOB_ONLYDIR);

        $languages = array_map(function ($dir) {
            $name = basename($dir);

            return in_array($name, $this->excluded, true) ? null : $name;
        }, $directories);

        return array_filter($languages);
    }
private function getLanguages()
    {
        $directories = glob($this->basePath.'/*', GLOB_ONLYDIR);

        $languages = array_map(function ($dir) {
            $name = basename($dir);

            return in_array($name, $this->excluded, true) ? null : $name;
        }, $directories);

        return array_filter($languages);
    }
private function getLanguages ( ) { $ directories = glob ( $ this -> basePath . '/*' , GLOB_ONLYDIR ) ; $ languages = array_map ( function ( $ dir ) { $ name = basename ( $ dir ) ; return in_array ( $ name , $ this -> excluded , true ) ? null : $ name ; } , $ directories ) ; return array_filter ( $ languages ) ; }
Returns list of languages.

@return array
Returns list of languages .