public function getAliasParts($name)
    {
        if (strpos($name, '_') !== false) {

            $parts = explode('_', $name);
            $parts = array_filter($parts); // Remove empty elements

            if (count($parts) < 2) {
                return false;
            }

            return [
                $parts[0],
                implode('_', array_slice($parts, 1))
            ];
        }

        return false;
    }
public function getAliasParts($name)
    {
        if (strpos($name, '_') !== false) {

            $parts = explode('_', $name);
            $parts = array_filter($parts); // Remove empty elements

            if (count($parts) < 2) {
                return false;
            }

            return [
                $parts[0],
                implode('_', array_slice($parts, 1))
            ];
        }

        return false;
    }
public function getAliasParts ( $ name ) { if ( strpos ( $ name , '_' ) !== false ) { $ parts = explode ( '_' , $ name ) ; $ parts = array_filter ( $ parts ) ; // Remove empty elements if ( count ( $ parts ) < 2 ) { return false ; } return [ $ parts [ 0 ] , implode ( '_' , array_slice ( $ parts , 1 ) ) ] ; } return false ; }
Gets the class and method from the function name.

For the AliasLoader to handle the undefined function, the function must
be in the format class_method(). This function checks whether the function
meets that format.

@param string $name Function name.

@return array|bool Array containing class and method or FALSE if incorrect format.
Gets the class and method from the function name .