src/Classes/OnuList.php
/**
     * recibe a array and clean for make a Name
     * @return string
     */
recibe a array and clean for make a Name
@return string
recibe a array and clean for make a Name @return string
private function makeName(array $split): string
    {
        $split_names = explode(':', $split[1]);
        $first = substr($split_names[1], 0, -2);
        $first = substr($first, 1);
        $second = substr($split_names[2], 0, -2);
        $second = substr($second, 1);
        $third = substr($split_names[3], 0, -2);
        $third = substr($third, 1);
        $third = rtrim($third, 'na ');
        $fourth = rtrim($split_names[4], 'Name (original script)');
        $fourth = rtrim($fourth, 'na Title');
        $fourth = substr($fourth, 1);
        $fourth = substr($fourth, 0, -1);
        $name = $first . ' ' . $second;
        if ($third !== '')
            $name .= ' ' . $third;
        if ($fourth !== '')
            $name .= ' ' . $fourth;
        return str_replace(' ', '', strtolower($name));
    }
private function makeName ( array $ split ) : string { $ split_names = explode ( ':' , $ split [ 1 ] ) ; $ first = substr ( $ split_names [ 1 ] , 0 , - 2 ) ; $ first = substr ( $ first , 1 ) ; $ second = substr ( $ split_names [ 2 ] , 0 , - 2 ) ; $ second = substr ( $ second , 1 ) ; $ third = substr ( $ split_names [ 3 ] , 0 , - 2 ) ; $ third = substr ( $ third , 1 ) ; $ third = rtrim ( $ third , 'na ' ) ; $ fourth = rtrim ( $ split_names [ 4 ] , 'Name (original script)' ) ; $ fourth = rtrim ( $ fourth , 'na Title' ) ; $ fourth = substr ( $ fourth , 1 ) ; $ fourth = substr ( $ fourth , 0 , - 1 ) ; $ name = $ first . ' ' . $ second ; if ( $ third !== '' ) $ name .= ' ' . $ third ; if ( $ fourth !== '' ) $ name .= ' ' . $ fourth ; return str_replace ( ' ' , '' , strtolower ( $ name ) ) ; }
recibe a array and clean for make a Name
 @return string
recibe a array and clean for make a Name @return string