src/Extensions/SynonymValidator.php
protected function validatePart($part)
    {
        if (strpos($part, '=>') !== false) {
            $subs = explode('=>', $part);
            $subs = array_filter($subs);

            foreach ($subs as $sub) {
                if (!$this->validateNoSpaces($sub)) {
                    return false;
                }
            }

            return true;
        }

        return $this->validateNoSpaces($part);
    }
protected function validatePart($part)
    {
        if (strpos($part, '=>') !== false) {
            $subs = explode('=>', $part);
            $subs = array_filter($subs);

            foreach ($subs as $sub) {
                if (!$this->validateNoSpaces($sub)) {
                    return false;
                }
            }

            return true;
        }

        return $this->validateNoSpaces($part);
    }
protected function validatePart ( $ part ) { if ( strpos ( $ part , '=>' ) !== false ) { $ subs = explode ( '=>' , $ part ) ; $ subs = array_filter ( $ subs ) ; foreach ( $ subs as $ sub ) { if ( ! $ this -> validateNoSpaces ( $ sub ) ) { return false ; } } return true ; } return $ this -> validateNoSpaces ( $ part ) ; }
Check each part of the line doesn't contain spaces between words.

@param string $part

@return bool
Check each part of the line doesn t contain spaces between words .