src/Luminous/Scanners.php
public function getScanner($languageName, $default = true, $instance = true)
    {
        $g = $this->getScannerArray($languageName, $default);

        if ($g !== false) {
            return $instance ? new $g['scanner'] : $g['scanner'];
        }
        return null;
    }
public function getScanner($languageName, $default = true, $instance = true)
    {
        $g = $this->getScannerArray($languageName, $default);

        if ($g !== false) {
            return $instance ? new $g['scanner'] : $g['scanner'];
        }
        return null;
    }
public function getScanner ( $ languageName , $ default = true , $ instance = true ) { $ g = $ this -> getScannerArray ( $ languageName , $ default ) ; if ( $ g !== false ) { return $ instance ? new $ g [ 'scanner' ] : $ g [ 'scanner' ] ; } return null ; }
Returns a scanner for a language
@param language_name the name under which the gramar was originally indexed
@param default if true: if the scanner doesn't exist, return the default
scanner. If false, return false
@return The scanner, the default scanner, or null.
Returns a scanner for a language