src/Extensions/SynonymValidator.php
protected function validateLine($line)
    {
        $line = trim($line);

        $parts = explode(',', $line);
        $parts = array_filter($parts);

        foreach ($parts as $part) {
            if (!$this->validatePart($part)) {
                return false;
            }
        }

        return true;
    }
protected function validateLine($line)
    {
        $line = trim($line);

        $parts = explode(',', $line);
        $parts = array_filter($parts);

        foreach ($parts as $part) {
            if (!$this->validatePart($part)) {
                return false;
            }
        }

        return true;
    }
protected function validateLine ( $ line ) { $ line = trim ( $ line ) ; $ parts = explode ( ',' , $ line ) ; $ parts = array_filter ( $ parts ) ; foreach ( $ parts as $ part ) { if ( ! $ this -> validatePart ( $ part ) ) { return false ; } } return true ; }
Check each line to see that it doesn't contain spaces between words.

@param string $line

@return bool
Check each line to see that it doesn t contain spaces between words .